46 #ifndef constraint_evaluator_h
87 vector<BaseType *> _vec;
92 unsigned int _capacity;
122 virtual unsigned int width();
124 virtual int length()
const;
133 virtual unsigned int val2buf(
void *val,
bool reuse =
false);
134 virtual unsigned int buf2val(
void **val);
147 (
const Vector& rowMajorData,
unsigned int startElement);
150 virtual bool set_value(vector<dods_byte> &val,
int sz);
152 virtual bool set_value(vector<dods_int16> &val,
int sz);
154 virtual bool set_value(vector<dods_uint16> &val,
int sz);
156 virtual bool set_value(vector<dods_int32> &val,
int sz);
158 virtual bool set_value(vector<dods_uint32> &val,
int sz);
160 virtual bool set_value(vector<dods_float32> &val,
int sz);
162 virtual bool set_value(vector<dods_float64> &val,
int sz);
163 virtual bool set_value(
string *val,
int sz);
164 virtual bool set_value(vector<string> &val,
int sz);
173 virtual void value(vector<string> &b)
const;
175 virtual void *
value();
177 virtual BaseType *
var(
const string &name =
"",
bool exact_match =
true,
186 virtual void dump(ostream &strm)
const ;
bool is_cardinal_type() const
abstract base class used to unmarshall/deserialize dap data objects
virtual void add_var_nocopy(BaseType *v, Part p=nil)
virtual unsigned int get_value_capacity() const
void set_vec(unsigned int i, BaseType *val)
Sets element i to value val.
Part
Names the parts of multi-section constructor data types.
void _duplicate(const Vector &v)
Holds a one-dimensional collection of DAP2 data types.
virtual void dump(ostream &strm) const
dumps information about this object
virtual int length() const
virtual void set_read_p(bool state)
Indicates that the data is ready to send.
virtual void add_var(BaseType *v, Part p=nil)
Add the BaseType pointer to this constructor type instance.
void delete_cardinal_data_buffer()
virtual int element_count(bool leaves)
Count the members of constructor types.
virtual unsigned int set_value_slice_from_row_major_vector(const Vector &rowMajorData, unsigned int startElement)
Type
Identifies the data type.
stack< BaseType * > btp_stack
virtual bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true)
Serialize a Vector.
virtual BaseType * var(const string &name="", bool exact_match=true, btp_stack *s=0)
virtual bool deserialize(UnMarshaller &um, DDS *dds, bool reuse=false)
Receive data from the net.
virtual void reserve_value_capacity()
Vector & operator=(const Vector &rhs)
unsigned int create_cardinal_data_buffer_for_type(unsigned int numEltsOfType)
void set_cardinal_values_internal(const CardType *fromArray, int numElts)
virtual unsigned int val2buf(void *val, bool reuse=false)
Reads data into the Vector buffer. Thrown if called for Structure, Sequence or Grid.
virtual bool check_semantics(string &msg, bool all=false)
Compare an object's current state with the semantics of its type.
string name() const
Returns the name of the class instance.
Vector(const string &n, BaseType *v, const Type &t)
The Vector constructor.
Evaluate a constraint expression.
virtual BaseType * ptr_duplicate()=0
virtual void set_send_p(bool state)
Indicates that the data is ready to send.
The basic data type for the DODS DAP types.
abstract base class used to marshal/serialize dap data objects
virtual void set_name(const std::string &name)
virtual unsigned int buf2val(void **val)
virtual void set_length(int l)
virtual unsigned int width()
Returns the width of the data, in bytes.
virtual bool set_value(dods_byte *val, int sz)
set the value of a byte array
virtual void intern_data(ConstraintEvaluator &eval, DDS &dds)
read data into a variable for later use