class gdsDatum Class to store a basic data field.
| | encodingtype Type describing the encoding scheme used to put and get the data value(s) to and from a stream
|
| | dimension_t Type describing the dimensions of an array |
| | datatype Describes the type of the data field. |
| | dimension Contains the information of the dimensions of the data field. |
| | value Pointer to the data field. |
| | encoding encoding type for stream operations |
| | operator >> (std::istream&, gdsDatum&) Input operator. |
| | operator << (std::ostream&, const gdsDatum&) Output operator. |
| | gdsDatum () Default constructor. |
| | gdsDatum (gdsDataType DataType, const void* Value, int dim1 = 1, int dim2 = 0, int dim3 = 0, int dim4 = 0) Constructor. |
| | ~gdsDatum () Destructor. |
| | gdsDatum (const gdsDatum& dat) Copy constructor. |
| | assignDatum (const gdsDatum& dat) Assignment. |
| | encode (std::ostream& os, const char* val, int len, encodingtype ctype = base64, int indent = 0) Encode method. |
| | decode (std::istream& is, char* val, int len, encodingtype ctype = base64) Decode method. |
| | decode (const char* code, int codelen, char* val, int len, encodingtype ctype = base64) Decode method. |
| | codeName (encodingtype ctype) Code name method. |
| | code (std::string name) Code name method. |
| | operator= (const gdsDatum& dat) Assignment oparator. |
| | resize (int dim1, int dim2 = 0, int dim3 = 0, int dim4 = 0) Returns the size of an element (in bytes). |
| | elSize () const Returns the size of an element (in bytes). |
| | elNumber () const Returns the number of elements. |
| | size () const Returns the total size (in bytes) of the data field. |
| | readValues (const string& txt) Reads value(s) from input stream. |
| | lock (bool writeaccess = false) const Lock object. |
| | trylock (bool writeaccess = false) const Try lock object. |
| | unlock () const Unlock object. |
| | rwlock read wrote lock for datum |
This class is used to store data fields. It is self describing and contains the data type, the number of elements (array dimensions) and a pointer to the data.
friend std::ostream& operator << (std::ostream&, const gdsDatum&)
gdsDatum - class
enum encodingtype
typedef std::vector <int> dimension_t
gdsDataType datatype
dimension_t dimension
void* value
encodingtype encoding
gdsDatum()
gdsDatum(gdsDataType DataType, const void* Value, int dim1 = 1, int dim2 = 0, int dim3 = 0, int dim4 = 0)
Value - pointer to data field
dim1 - first dimension
dim2 - second dimension
dim3 - third dimension
dim4 - fourth dimension
virtual ~gdsDatum()
gdsDatum(const gdsDatum& dat)
virtual bool assignDatum(const gdsDatum& dat)
static bool encode(std::ostream& os, const char* val, int len, encodingtype ctype = base64, int indent = 0)
val - pointer to value(s)
len - length of value array (in bytes)
ctype - encoding type
indent - indent use at each newline
static bool decode(std::istream& is, char* val, int len, encodingtype ctype = base64)
val - pointer to value(s) (return)
len - length of value array (in bytes)
ctype - encoding type
static bool decode(const char* code, int codelen, char* val, int len, encodingtype ctype = base64)
codelen - Length of input array
val - pointer to value(s) (return)
len - length of value array (in bytes)
ctype - encoding type
static std::string codeName(encodingtype ctype)
static encodingtype code(std::string name)
gdsDatum& operator= (const gdsDatum& dat)
bool resize(int dim1, int dim2 = 0, int dim3 = 0, int dim4 = 0)
int elSize() const
int elNumber() const
int size() const
int readValues(const string& txt)
void lock(bool writeaccess = false) const
bool trylock(bool writeaccess = false) const
void unlock() const
alphabetic index hierarchy of classes
Please send questions and comments to sigg_d@ligo-wa.caltech.edu
generated by doc++