39#ifndef _dods_datatypes_h
40#include "dods-datatypes.h"
47#ifndef constraint_evaluator_h
64 Byte(
const string &n);
65 Byte(
const string &n,
const string &d);
73 unsigned int width(
bool =
false)
const override {
return sizeof(
dods_byte); }
88 unsigned int val2buf(
void *val,
bool reuse =
false)
override;
89 unsigned int buf2val(
void **val)
override;
94 void print_val(FILE *out,
string space =
"",
bool print_decl_p =
true)
override;
95 void print_val(ostream &out,
string space =
"",
bool print_decl_p =
true)
override;
101 void dump(ostream &strm)
const override;
Contains the attributes for a dataset.
The basic data type for the DODS DAP types.
BaseType(const string &n, const Type &t, bool is_dap4=false)
The BaseType constructor.
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
Byte & operator=(const Byte &rhs)
BaseType * ptr_duplicate() override
Byte(const string &n)
The Byte constructor.
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
bool ops(BaseType *b, int op) override
Evaluate relational operators.
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)
int64_t width_ll(bool=false) const override
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
Evaluate a constraint expression.
Marshaller that knows how to marshal/serialize dap data objects to a C++ iostream using DAP4's receiv...
Read data from the stream made by D4StreamMarshaller.
abstract base class used to marshal/serialize dap data objects
abstract base class used to unmarshall/deserialize dap data objects
top level DAP object to house generic methods