00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef OPENMS_CONCEPT_TYPES_H
00028 #define OPENMS_CONCEPT_TYPES_H
00029
00030 #include <OpenMS/config.h>
00031
00032 #include <limits.h>
00033 #include <time.h>
00034
00035 #ifdef OPENMS_HAS_BASETSD_H
00036 #include <basetsd.h>
00037 #endif
00038
00039
00040
00041 #ifdef OPENMS_HAS_STDINT_H
00042 #include <stdint.h>
00043 #endif
00044
00045
00046 #ifdef OPENMS_COMPILER_MSVC
00047 # pragma warning( disable : 4290 )
00048 #endif
00049
00050 namespace OpenMS
00051 {
00052 #ifndef OPENMS_HAS_STDINT_H
00053
00059 typedef OPENMS_INDEX_TYPE Int;
00060
00066 typedef OPENMS_SIZE_TYPE UInt;
00067
00075 typedef time_t Time;
00076
00084 typedef float Real;
00085
00093 typedef double DoubleReal;
00094
00102 typedef unsigned char Byte;
00103
00112 typedef OPENMS_ULONG64_TYPE PointerSizeUInt;
00113
00122 typedef OPENMS_LONG64_TYPE PointerSizeInt;
00123
00131 typedef OPENMS_ULONG64_TYPE UID;
00132
00140 typedef OPENMS_LONG64_TYPE Offset64Int;
00141
00142
00143 #else
00144
00145 typedef int32_t Int;
00146 typedef uint32_t UInt;
00147 typedef time_t Time;
00148 typedef unsigned int UInt;
00149 typedef float Real;
00150 typedef double DoubleReal;
00151 typedef uint8_t Byte;
00152 typedef int64_t PointerSizeInt;
00153 typedef uint64_t PointerSizeUInt;
00154 typedef uint64_t UID;
00155 typedef int64_t Offset64Int;
00156
00157 #endif
00158
00159
00160
00162
00163 enum ASCII
00164 {
00165 ASCII__BACKSPACE = '\b',
00166 ASCII__BELL = '\a',
00167 ASCII__CARRIAGE_RETURN = '\r',
00168 ASCII__HORIZONTAL_TAB = '\t',
00169 ASCII__NEWLINE = '\n',
00170 ASCII__RETURN = ASCII__NEWLINE,
00171 ASCII__SPACE = ' ',
00172 ASCII__TAB = ASCII__HORIZONTAL_TAB,
00173 ASCII__VERTICAL_TAB = '\v',
00174
00175 ASCII__COLON = ':',
00176 ASCII__COMMA = ',',
00177 ASCII__EXCLAMATION_MARK = '!',
00178 ASCII__POINT = '.',
00179 ASCII__QUESTION_MARK = '?',
00180 ASCII__SEMICOLON = ';'
00181 };
00182
00183 }
00184
00185 #endif // OPENMS_CONCEPT_TYPES_H