29 #ifndef _dods_datatypes_h 30 #include "dods-datatypes.h" 45 virtual unsigned int val2buf(
void *val,
bool) {
46 set_value(*reinterpret_cast<dods_int8*>(val));
47 return sizeof(dods_int8);
49 virtual unsigned int buf2val(
void **) {
throw InternalErr(__FILE__, __LINE__,
"buf2val: Not implemented for Int8"); }
50 virtual void print_val(FILE *,
string ,
bool) {
throw InternalErr(__FILE__, __LINE__,
"print_val: Not implemented for Int8"); }
56 Int8(
const string &n);
57 Int8(
const string &n,
const string &d);
67 virtual unsigned int width(
bool constrained =
false)
const;
74 virtual dods_int8 value()
const;
75 virtual bool set_value(dods_int8 val);
77 virtual void print_val(ostream &out,
string space =
"",
bool print_decl_p =
true);
83 virtual void dump(ostream &strm)
const ;
virtual bool ops(BaseType *b, int op)
Evaluate relational operators.
Holds an 8-bit signed integer value.
virtual std::vector< BaseType * > * transform_to_dap2(AttrTable *parent_attr_table)
DAP4 to DAP2 transform.
Contains the attributes for a dataset.
Read data from the stream made by D4StreamMarshaller.
virtual void compute_checksum(Crc32 &checksum)
include the data for this variable in the checksum DAP4 includes a checksum with every data response...
top level DAP object to house generic methods
virtual BaseType * ptr_duplicate()
A class for software fault reporting.
virtual unsigned int width(bool constrained=false) const
How many bytes does this variable use Return the number of bytes of storage this variable uses...
Marshaller that knows how to marshal/serialize dap data objects to a C++ iostream using DAP4's receiv...
virtual void dump(ostream &strm) const
dumps information about this object
virtual void deserialize(D4StreamUnMarshaller &um, DMR &dmr)
The basic data type for the DODS DAP types.
virtual bool d4_ops(BaseType *b, int op)
virtual void serialize(D4StreamMarshaller &m, DMR &dmr, bool filter=false)
Serialize an Int8.