67 Str(
const string &n,
const string &d);
77 unsigned int width(
bool =
false)
const override {
return sizeof(string); }
79 int64_t
width_ll(
bool =
false)
const override {
return sizeof(string); }
83 int length()
const override;
95 unsigned int val2buf(
void *val,
bool reuse =
false)
override;
96 unsigned int buf2val(
void **val)
override;
99 virtual string 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;
109 void dump(ostream &strm)
const override;
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.
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
Holds character string data.
Str & operator=(const Str &rhs)
int64_t width_ll(bool=false) const override
unsigned int buf2val(void **val) override
void compute_checksum(Crc32 &checksum) override
include the data for this variable in the checksum DAP4 includes a checksum with every data response....
int64_t length_ll() const override
Get the number of elements in this variable This version of the function deprecates length() which is...
bool d4_ops(BaseType *b, int op) override
int length() const override
How many elements are in this variable? Uses -1 in places.
bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true) override
Move data to the net, then remove them from the object.
bool deserialize(UnMarshaller &um, DDS *dds, bool reuse=false) override
Receive data from the net.
virtual string 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....
void dump(ostream &strm) const override
dumps information about this object
bool ops(BaseType *b, int op) override
Evaluate relational operators.
BaseType * ptr_duplicate() override
unsigned int val2buf(void *val, bool reuse=false) override
virtual bool set_value(const string &value)
void print_val(FILE *out, string space="", bool print_decl_p=true) override
Prints the value of the variable.
virtual string esc_string_variable_value(const string &s)
Escape non-printable characters and quotes from a Str variable value. The value printed is used mostl...
abstract base class used to unmarshall/deserialize dap data objects
top level DAP object to house generic methods
const unsigned int max_str_len