31#include "InternalErr.h"
41 typedef std::vector<uint8_t> dods_opaque;
47 D4Opaque(
const std::string &n) :
BaseType(n, dods_opaque_c,
true ), d_buf(0) { }
48 D4Opaque(
const std::string &n,
const std::string &d) :
BaseType(n, d, dods_opaque_c,
true ), d_buf(0) { }
53 d_buf = copy_from.d_buf;
62 virtual unsigned int width(
bool =
false)
const {
return sizeof(vector<uint8_t>); }
66 virtual int length()
const {
return d_buf.size(); }
70 throw InternalErr(__FILE__, __LINE__,
"Unimplemented method");
73 throw InternalErr(__FILE__, __LINE__,
"Unimplemented method");
84 virtual unsigned int val2buf(
void *val,
bool reuse =
false);
85 virtual unsigned int buf2val(
void **val);
88 virtual dods_opaque
value()
const;
90 virtual void print_val(FILE *, std::string =
"",
bool =
true) {
91 throw InternalErr(__FILE__, __LINE__,
"Unimplemented method");
93 virtual void print_val(std::ostream &out, std::string space =
"",
bool print_decl_p =
true);
98 throw InternalErr(__FILE__, __LINE__,
"Unimplemented method");
103 virtual void dump(std::ostream &strm)
const ;
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.
Evaluate a constraint expression.
virtual std::vector< BaseType * > * transform_to_dap2(AttrTable *parent_attr_table)
DAP4 to DAP2 transform.
virtual bool deserialize(UnMarshaller &, DDS *, bool=false)
Receive data from the net.
virtual void compute_checksum(Crc32 &checksum)
include the data for this variable in the checksum DAP4 includes a checksum with every data response....
virtual unsigned int buf2val(void **val)
Reads the class data.
virtual void clear_local_data()
virtual unsigned int width(bool=false) const
How many bytes does this variable use Return the number of bytes of storage this variable uses....
virtual int length() const
How many elements are in this variable.
virtual bool serialize(ConstraintEvaluator &, DDS &, Marshaller &, bool=true)
Move data to the net, then remove them from the object.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual dods_opaque value() const
virtual unsigned int val2buf(void *val, bool reuse=false)
Loads class data.
virtual bool set_value(const dods_opaque &value)
virtual void print_val(FILE *, std::string="", bool=true)
Prints the value of the variable.
virtual BaseType * ptr_duplicate()
virtual bool ops(BaseType *, int)
Evaluate relational operators.
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.
A class for software fault reporting.
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