30 #ifndef _dods_datatypes_h 31 #include "dods-datatypes.h" 38 #ifndef constraint_evaluator_h 39 #include "ConstraintEvaluator.h" 51 virtual unsigned int val2buf(
void *val,
bool) {
52 set_value(*reinterpret_cast<dods_uint64*>(val));
53 return sizeof(dods_uint64);
55 virtual unsigned int buf2val(
void **) {
throw InternalErr(__FILE__, __LINE__,
"Not implemented for UInt64"); }
56 virtual void print_val(FILE *,
string,
bool) {
throw InternalErr(__FILE__, __LINE__,
"Not implemented for UInt64"); }
63 UInt64(
const string &n,
const string &d);
73 virtual unsigned int width(
bool constrained =
false)
const;
80 virtual dods_uint64 value()
const;
81 virtual bool set_value(dods_uint64 val);
83 virtual void print_val(ostream &out,
string space =
"",
bool print_decl_p =
true);
87 virtual void dump(ostream &strm)
const ;
virtual unsigned int width(bool constrained=false) const
How many bytes does this use Return the number of bytes of storage this variable uses. For scalar types, this is pretty simple (an int32 uses 4 bytes, etc.). For arrays and Constructors, it is a bit more complex. Note that a scalar String variable uses sizeof(String*) bytes, not the length of the string. In other words, the value returned is independent of the type. Also note width() of a String array returns the number of elements in the array times sizeof(String*). That is, each different array size is a different data type.
virtual bool ops(BaseType *b, int op)
Evaluate relational operators.
Read data from the stream made by D4StreamMarshaller.
virtual BaseType * ptr_duplicate()
A class for software fault reporting.
Marshaller that knows how to marshal/serialize dap data objects to a C++ iostream using DAP4's receiv...
virtual void serialize(D4StreamMarshaller &m, DMR &dmr, bool filter=false)
Serialize an Int8.
virtual void compute_checksum(Crc32 &checksum)
include the data for this variable in the checksum DAP4 includes a checksum with every data response...
virtual void deserialize(D4StreamUnMarshaller &um, DMR &dmr)
Holds a 64-bit unsigned integer.
The basic data type for the DODS DAP types.
virtual void dump(ostream &strm) const
dumps information about this object