18 #ifndef INC_epicsTypes_H
19 #define INC_epicsTypes_H
21 #include "libComAPI.h"
25 # if defined (__STDC__ ) || defined (__cplusplus)
26 # define stringOf(TOKEN) #TOKEN
28 # define stringOf(TOKEN) "TOKEN"
35 } epicsBoolean EPICS_DEPRECATED;
44 typedef char epicsInt8;
45 typedef unsigned char epicsUInt8;
46 typedef short epicsInt16;
47 typedef unsigned short epicsUInt16;
48 typedef int epicsInt32;
49 typedef unsigned int epicsUInt32;
50 typedef long long epicsInt64;
51 typedef unsigned long long epicsUInt64;
53 typedef epicsUInt16 epicsEnum16;
54 typedef float epicsFloat32;
55 typedef double epicsFloat64;
56 typedef epicsInt32 epicsStatus;
59 #define MAX_STRING_SIZE 40
86 typedef union epics_any {
121 #define firstEpicsType epicsInt8T
122 #define lastEpicsType epicsOldStringT
123 #define validEpicsType(x) ((x>=firstEpicsType) && (x<=lastEpicsType))
124 #define invalidEpicsType(x) ((x<firstEpicsType) || (x>lastEpicsType))
132 #ifdef epicsTypesGLOBAL
155 #ifdef epicsTypesGLOBAL
178 #ifdef epicsTypesGLOBAL
183 sizeof (epicsUInt16),
184 sizeof (epicsEnum16),
186 sizeof (epicsUInt32),
187 sizeof (epicsFloat32),
188 sizeof (epicsFloat64),
193 LIBCOM_API
extern const unsigned epicsTypeSizes [lastEpicsType+1];
210 #ifdef epicsTypesGLOBAL
225 LIBCOM_API
extern const epicsTypeClass epicsTypeClasses [lastEpicsType+1];
233 #ifdef epicsTypesGLOBAL
248 LIBCOM_API
extern const char *epicsTypeAnyFieldName [lastEpicsType+1];
Compiler specific declarations.
LIBCOM_API const char * epicsTypeNames[lastEpicsType+1]
An array providing the names for each type The enumeration epicsType is an index to this array of typ...
LIBCOM_API const char * epicsTypeAnyFieldName[lastEpicsType+1]
An array providing the field name for each type The enumeration epicsType is an index to this array o...
LIBCOM_API const epicsTypeClass epicsTypeClasses[lastEpicsType+1]
An array providing the class of each type The enumeration epicsType is an index to this array of type...
LIBCOM_API const char * epicsTypeCodeNames[lastEpicsType+1]
An array providing the names for each type code The enumeration epicsType is an index to this array o...
LIBCOM_API const unsigned epicsTypeSizes[lastEpicsType+1]
An array providing the sizes for each type The enumeration epicsType is an index to this array of typ...
epicsType
Corresponding Type Codes (this enum must start at zero)
!! Don't use this - it may vanish in the future !!
char epicsOldString[MAX_STRING_SIZE]
!! Don't use this - it may vanish in the future !!