3 #ifndef GCP_UTIL_DATATYPE_H
4 #define GCP_UTIL_DATATYPE_H
15 #include "gcp/control/code/unix/libunix_src/common/regmap.h"
17 #include "gcp/util/common/Complex.h"
18 #include "gcp/util/common/RegDate.h"
45 COMPLEX_FLOAT = 0x1000,
70 static unsigned sizeOf(Type type);
76 static unsigned sizeOf(RegMapBlock* blk);
81 static Type
typeOf(RegMapBlock* blk);
86 void convertToTypeOf(RegMapBlock* blk);
87 double getValAsDouble();
126 void operator-=(
DataType& dataType);
128 bool operator==(
DataType& dataType);
130 bool operator>=(
DataType& dataType);
132 bool operator<=(
DataType& dataType);
138 friend std::ostream& operator<<(std::ostream& os,
DataType& dataType);
139 friend std::ostream& operator<<(std::ostream& os, DataType::Type& type);
178 static Type
typeOf(
bool* obj);
179 static Type
typeOf(
unsigned char* obj);
180 static Type
typeOf(
char* obj);
181 static Type
typeOf(
unsigned short* obj);
182 static Type
typeOf(
short* obj);
183 static Type
typeOf(
unsigned int* obj);
184 static Type
typeOf(
int* obj);
185 static Type
typeOf(
unsigned long* obj);
186 static Type
typeOf(
long* obj);
187 static Type
typeOf(
float* obj);
188 static Type
typeOf(
double* obj);
202 #endif // End #ifndef GCP_UTIL_DATATYPE_H
static Type typeOf(RegMapBlock *blk)
Definition: DataType.cc:223
static unsigned sizeOf(Type type)
Definition: DataType.cc:145
virtual ~DataType()
Definition: DataType.cc:17
Definition: DataType.h:27
DataType()
Definition: DataType.cc:12
void operator=(bool b)
Definition: DataType.cc:267
void * data()
Definition: DataType.cc:906
void operator++()
Definition: DataType.cc:958