libdap++ Updated for version 3.8.2
|
00001 /* dods-datatypes.h. Generated from dods-datatypes.h.in by configure. */ 00002 00003 /* 00004 Determine at compile-time the sizes of various datatypes. This uses symbols 00005 defined by configure (See configure.in). 00006 jhrg 10/24/94 00007 00008 This header is included by all of the DODS DAP library header files which 00009 make use of the dods_* typedefs. C or C++ files can either include 00010 config_dap.h, use their own configure script which defines SIZEOF_LONG, 00011 _INT, _CHAR and _DOUBLE or set these preprocessor symbols themselves in a 00012 Makefile, etc. 00013 00014 This used to be part of the config_dap.h header, but including that in the 00015 DAP library headers introduced problems when the DAP was used in conjunction 00016 with other libraries. 8/1/2000 jhrg 00017 */ 00018 00019 #ifndef __DODS_DATATYPES__ 00020 #define __DODS_DATATYPES__ 00021 00022 #include <inttypes.h> 00023 00024 namespace libdap 00025 { 00026 00027 /* The typedefs are done using a preprocessor symbol so that autoconf's 00028 `CONFIG_HEADER' can be used. The configure script will then only modify 00029 the dods-datatypes.h header when its contents change. This saves on 00030 compilation since the header is used by many files in the dap++ library. 00031 The downside is that the typedefs are so ugly... 2/14/2001 jhrg */ 00032 00033 typedef int32_t dods_int32; 00034 00035 typedef uint32_t dods_uint32; 00036 00037 typedef int16_t dods_int16; 00038 00039 typedef uint16_t dods_uint16; 00040 00041 typedef uint8_t dods_byte; 00042 00043 typedef double dods_float64; 00044 00045 typedef float dods_float32; 00046 00047 } // namespace libdap 00048 00049 #endif /* __DODS_DATATYPES__ */