46 #ifndef constraint_evaluator_h
87 vector<BaseType *> _vec;
92 unsigned int _capacity;
124 virtual unsigned int width(
bool constrained =
false);
126 virtual int length()
const;
135 virtual unsigned int val2buf(
void *val,
bool reuse =
false);
136 virtual unsigned int buf2val(
void **val);
149 (
const Vector& rowMajorData,
unsigned int startElement);
152 virtual bool set_value(vector<dods_byte> &val,
int sz);
154 virtual bool set_value(vector<dods_int16> &val,
int sz);
156 virtual bool set_value(vector<dods_uint16> &val,
int sz);
158 virtual bool set_value(vector<dods_int32> &val,
int sz);
160 virtual bool set_value(vector<dods_uint32> &val,
int sz);
162 virtual bool set_value(vector<dods_float32> &val,
int sz);
164 virtual bool set_value(vector<dods_float64> &val,
int sz);
165 virtual bool set_value(
string *val,
int sz);
166 virtual bool set_value(vector<string> &val,
int sz);
175 virtual void value(vector<string> &b)
const;
184 void value(vector<unsigned int> *index, vector<string> &b)
const;
186 virtual void *
value();
188 virtual BaseType *
var(
const string &name =
"",
bool exact_match =
true,
198 virtual void dump(ostream &strm)
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 bool is_dap2_only_type()
virtual void dump(ostream &strm) const
dumps information about this object
virtual unsigned int width(bool constrained=false)
Returns the width of the data, in bytes.
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.
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.
bool m_is_cardinal_type() const
virtual void reserve_value_capacity()
Vector & operator=(const Vector &rhs)
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.
void m_delete_cardinal_data_buffer()
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.
unsigned int m_create_cardinal_data_buffer_for_type(unsigned int numEltsOfType)
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 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