libdap
Updated for version 3.20.6
libdap4 is an implementation of OPeNDAP's DAP protocol.
|
26 #define _d4_opaque_h 1
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 ;
109 #endif // _d4_opaque_h
Evaluate a constraint expression.
virtual bool deserialize(UnMarshaller &, DDS *, bool=false)
Receive data from the net.
abstract base class used to unmarshall/deserialize dap data objects
virtual int length() const
How many elements are in this variable.
A class for software fault reporting.
abstract base class used to marshal/serialize dap data objects
virtual std::vector< BaseType * > * transform_to_dap2(AttrTable *parent_attr_table)
DAP4 to DAP2 transform.
virtual unsigned int buf2val(void **val)
Reads the class data.
BaseType(const string &n, const Type &t, bool is_dap4=false)
The BaseType constructor.
virtual bool set_value(const dods_opaque &value)
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 width(bool=false) const
How many bytes does this variable use Return the number of bytes of storage this variable uses....
top level DAP object to house generic methods
Read data from the stream made by D4StreamMarshaller.
Contains the attributes for a dataset.
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 void clear_local_data()
virtual dods_opaque value() const
virtual bool ops(BaseType *, int)
Evaluate relational operators.
virtual unsigned int val2buf(void *val, bool reuse=false)
Loads class data.
virtual BaseType * ptr_duplicate()
The basic data type for the DODS DAP types.
virtual void print_val(FILE *, std::string="", bool=true)
Prints the value of the variable.
Marshaller that knows how to marshal/serialize dap data objects to a C++ iostream using DAP4's receiv...