3 #ifndef SZA_UTIL_DATATYPE_H
4 #define SZA_UTIL_DATATYPE_H
15 #include "carma/szaarrayutils/regmap.h"
16 #include "carma/szaarrayutils/regtemplate.h"
46 COMPLEX_FLOAT = 0x1000,
51 COMPLEX_DOUBLE= 0x2000,
71 DataType(sza::util::Complex<float> cf);
78 static unsigned sizeOf(Type type);
84 static unsigned sizeOf(RegMapBlock* blk);
89 static Type
typeOf(RegMapBlock* blk);
90 static Type
typeOf(RegBlockTemp* blk);
101 void convertToTypeOf(RegMapBlock* blk);
102 double getValAsDouble();
119 void operator=(sza::util::Complex<float> cf);
135 void operator=(sza::util::RegDate* date);
136 void operator=(sza::util::Complex<float>* cf);
141 void operator-=(
DataType& dataType);
143 bool operator==(
DataType& dataType);
145 bool operator>=(
DataType& dataType);
147 bool operator<=(
DataType& dataType);
153 friend std::ostream& operator<<(std::ostream& os,
DataType& dataType);
154 friend std::ostream& operator<<(std::ostream& os, DataType::Type type);
175 sza::util::RegDate::Data date;
176 sza::util::Complex<float>::Data cf;
193 static Type
typeOf(
bool* obj);
194 static Type
typeOf(
unsigned char* obj);
195 static Type
typeOf(
char* obj);
196 static Type
typeOf(
unsigned short* obj);
197 static Type
typeOf(
short* obj);
198 static Type
typeOf(
unsigned int* obj);
199 static Type
typeOf(
int* obj);
200 static Type
typeOf(
unsigned long* obj);
201 static Type
typeOf(
long* obj);
202 static Type
typeOf(
float* obj);
203 static Type
typeOf(
double* obj);
204 static Type
typeOf(sza::util::RegDate* obj);
205 static Type
typeOf(sza::util::Complex<float>* obj);
206 static Type
typeOf(sza::util::RegDate::Data* obj);
207 static Type
typeOf(sza::util::Complex<float>::Data* obj);
217 #endif // End #ifndef SZA_UTIL_DATATYPE_H
static Type typeOf(RegMapBlock *blk)
Return the data type of a block.
static unsigned sizeOf(Type type)
Return the size, in bytes, of the requested type.
static std::string carmaTypeString(RegMapBlock *blk)
Return the data type of a block as a string appropriate for the CARMA monitor system.
Tagged: Tue Oct 12 09:13:47 PDT 2004.
void * data()
Return a void ptr to the data for this data type.
void operator=(bool b)
Assignment operators.
Tagged: Tue Oct 12 10:25:49 PDT 2004.