EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Macros | Typedefs | Enumerations | Variables
epicsTypes.h File Reference

The core data types used by epics. More...

#include "libComAPI.h"
#include "compilerDependencies.h"
Include dependency graph for epicsTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  epicsString
 !! Don't use this - it may vanish in the future !! More...
 
union  epicsAny
 Union of all types. More...
 

Macros

#define stringOf(TOKEN)   #TOKEN
 
#define MAX_STRING_SIZE   40
 
#define firstEpicsType   epicsInt8T
 
#define lastEpicsType   epicsOldStringT
 
#define validEpicsType(x)   ((x>=firstEpicsType) && (x<=lastEpicsType))
 
#define invalidEpicsType(x)   ((x<firstEpicsType) || (x>lastEpicsType))
 

Typedefs

typedef char epicsOldString [MAX_STRING_SIZE]
 !! Don't use this - it may vanish in the future !! More...
 
epicsTypes

Architecture Independent Data Types

These are sufficient for all our current archs

typedef char epicsInt8
 
typedef unsigned char epicsUInt8
 
typedef short epicsInt16
 
typedef unsigned short epicsUInt16
 
typedef int epicsInt32
 
typedef unsigned int epicsUInt32
 
typedef long long epicsInt64
 
typedef unsigned long long epicsUInt64
 
typedef epicsUInt16 epicsEnum16
 
typedef float epicsFloat32
 
typedef double epicsFloat64
 
typedef epicsInt32 epicsStatus
 

Enumerations

enum  epicsBoolean { epicsFalse = 0, epicsTrue = 1 }
 
enum  epicsType {
  epicsInt8T, epicsUInt8T, epicsInt16T, epicsUInt16T,
  epicsEnum16T, epicsInt32T, epicsUInt32T, epicsFloat32T,
  epicsFloat64T, epicsStringT, epicsOldStringT
}
 Corresponding Type Codes (this enum must start at zero) More...
 
enum  epicsTypeClass {
  epicsIntC, epicsUIntC, epicsEnumC, epicsFloatC,
  epicsStringC, epicsOldStringC
}
 

Variables

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 type name strings.
 
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 of type code name strings.
 
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 type code name strings.
 
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 class identifiers.
 
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 of type code name strings.
 

Detailed Description

Author
: Jeff Hill

Definition in file epicsTypes.h.

Typedef Documentation

typedef char epicsOldString[MAX_STRING_SIZE]

Provided only for backwards compatibility with db_access.h

Definition at line 75 of file epicsTypes.h.

Enumeration Type Documentation

enum epicsType
Note
Update epicsTypeToDBR_XXXX[] and DBR_XXXXToEpicsType in db_access.h if you edit this enum

Definition at line 108 of file epicsTypes.h.