44#undef CLEAR_LOCAL_DATA
75#ifdef CLEAR_LOCAL_DATA
89 *val =
new vector<uint8_t>;
91 *
static_cast<vector<uint8_t> *
>(*val) =
d_buf;
93 return sizeof(vector<uint8_t> *);
120 DBG(cerr << __func__ <<
"() - Transform not implemented DAP4 Opaque type." << endl;);
130 std::ostream_iterator<unsigned int> out_it(out,
",");
131 std::copy(
d_buf.begin(),
d_buf.end() - 1, out_it);
132 out << (
unsigned int)
d_buf.back();
140 strm <<
DapIndent::LMarg <<
"D4Opaque::dump - (" << (
void *)
this <<
")" << endl;
144 ostream_iterator<uint8_t> out_it(strm,
" ");
145 std::copy(
d_buf.begin(),
d_buf.end(), out_it);
void AddData(const uint8_t *pData, const uint32_t length)
Contains the attributes for a dataset.
BaseType & operator=(const BaseType &rhs)
virtual bool read()
Read data into a local buffer.
virtual void print_decl(FILE *out, string space=" ", bool print_semi=true, bool constraint_info=false, bool constrained=false)
Print an ASCII representation of the variable structure.
virtual bool read_p()
Has this variable been read?
virtual void set_read_p(bool state)
Sets the value of the read_p property.
void dump(ostream &strm) const override
dumps information about this object
std::vector< BaseType * > * transform_to_dap2(AttrTable *parent_attr_table) override
DAP4 to DAP2 transform.
void print_val(FILE *, std::string="", bool=true) override
Prints the value of the variable.
std::vector< uint8_t > dods_opaque
void dump(std::ostream &strm) const override
dumps information about this object
D4Opaque(const std::string &n)
void compute_checksum(Crc32 &checksum) override
include the data for this variable in the checksum DAP4 includes a checksum with every data response....
void clear_local_data() override
virtual dods_opaque value() const
unsigned int buf2val(void **val) override
Reads the class data.
unsigned int val2buf(void *val, bool reuse=false) override
Loads class data.
bool deserialize(UnMarshaller &, DDS *, bool=false) override
Receive data from the net.
D4Opaque & operator=(const D4Opaque &rhs)
virtual bool set_value(const dods_opaque &value)
bool serialize(ConstraintEvaluator &, DDS &, Marshaller &, bool=true) override
Move data to the net, then remove them from the object.
Marshaller that knows how to marshal/serialize dap data objects to a C++ iostream using DAP4's receiv...
virtual void put_opaque_dap4(const char *val, int64_t len)
Read data from the stream made by D4StreamMarshaller.
virtual void get_opaque_dap4(char **val, int64_t &len)
static ostream & LMarg(ostream &strm)
top level DAP object to house generic methods