39#ifndef _dods_datatypes_h
40#include "dods-datatypes.h"
47#ifndef constraint_evaluator_h
48#include "ConstraintEvaluator.h"
66 Byte(
const string &n);
67 Byte(
const string &n,
const string &d);
76 unsigned int width(
bool =
false)
const override
78 return sizeof(dods_byte);
81 int64_t width_ll(
bool =
false)
const override
83 return sizeof(dods_byte);
89 bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m,
bool ce_eval)
override;
90 bool deserialize(UnMarshaller &um, DDS *,
bool)
override;
94 void serialize(D4StreamMarshaller &m, DMR &dmr,
bool filter =
false)
override;
95 void deserialize(D4StreamUnMarshaller &um, DMR &dmr)
override;
97 unsigned int val2buf(
void *val,
bool reuse =
false)
override;
98 unsigned int buf2val(
void **val)
override;
101 virtual dods_byte
value()
const;
103 void print_val(FILE *out,
string space =
"",
bool print_decl_p =
true)
override;
104 void print_val(ostream &out,
string space =
"",
bool print_decl_p =
true)
override;
106 bool ops(BaseType *b,
int op)
override;
107 bool d4_ops(BaseType *b,
int op)
override;
108 std::vector<BaseType *> *
transform_to_dap2(AttrTable *parent_attr_table)
override;
110 void dump(ostream &strm)
const override;
The basic data type for the DODS DAP types.
void print_val(FILE *out, string space="", bool print_decl_p=true) override
Prints the value of the variable.
bool d4_ops(BaseType *b, int op) override
BaseType * ptr_duplicate() override
void compute_checksum(Crc32 &checksum) override
include the data for this variable in the checksum DAP4 includes a checksum with every data response....
bool deserialize(UnMarshaller &um, DDS *, bool) override
Deserialize the char on stdin and put the result in _BUF.
void dump(ostream &strm) const override
dumps information about this object
virtual dods_byte value() const
unsigned int width(bool=false) const override
How many bytes does this variable use Return the number of bytes of storage this variable uses....
unsigned int val2buf(void *val, bool reuse=false) override
virtual bool set_value(const dods_byte value)
std::vector< BaseType * > * transform_to_dap2(AttrTable *parent_attr_table) override
DAP4 to DAP2 transform.
unsigned int buf2val(void **val) override
Reads the class data.
bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval) override
top level DAP object to house generic methods