39#ifndef _dods_datatypes_h
40#include "dods-datatypes.h"
47#ifndef constraint_evaluator_h
48#include "ConstraintEvaluator.h"
61 UInt16(
const string &n,
const string &d);
70 unsigned int width(
bool =
false)
const override {
return sizeof(dods_uint16); }
72 int64_t width_ll(
bool =
false)
const override {
return sizeof(dods_uint16); }
75 bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m,
bool ce_eval =
true)
override;
76 bool deserialize(UnMarshaller &um, DDS *dds,
bool reuse =
false)
override;
80 void serialize(D4StreamMarshaller &m, DMR &dmr,
bool filter =
false)
override;
81 void deserialize(D4StreamUnMarshaller &um, DMR &dmr)
override;
83 unsigned int val2buf(
void *val,
bool reuse =
false)
override;
84 unsigned int buf2val(
void **val)
override;
86 virtual dods_uint16 value()
const;
87 virtual bool set_value(dods_uint16 val);
89 void print_val(FILE *out,
string space =
"",
bool print_decl_p =
true)
override;
90 void print_val(ostream &out,
string space =
"",
bool print_decl_p =
true)
override;
94 void dump(ostream &strm)
const override;
BaseType(const string &n, const Type &t, bool is_dap4=false)
The BaseType constructor.
BaseType * ptr_duplicate() override
void dump(ostream &strm) const override
dumps information about this object
void print_val(FILE *out, string space="", bool print_decl_p=true) override
Prints the value of the variable.
unsigned int buf2val(void **val) override
Reads the class data.
void compute_checksum(Crc32 &checksum) override
include the data for this variable in the checksum DAP4 includes a checksum with every data response....
bool ops(BaseType *b, int op) override
Evaluate relational operators.
unsigned int width(bool=false) const override
How many bytes does this variable use Return the number of bytes of storage this variable uses....
bool deserialize(UnMarshaller &um, DDS *dds, bool reuse=false) override
Receive data from the net.
unsigned int val2buf(void *val, bool reuse=false) override
Loads class data.
bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true) override
Move data to the net, then remove them from the object.
top level DAP object to house generic methods