40 #define _structure_h 1
53 class ConstraintEvaluator;
100 Structure(
const string &n,
const string &d);
122 virtual unsigned int width(
bool constrained =
false);
123 virtual unsigned int width(
bool constrained);
135 virtual unsigned int val2buf(
void *val,
bool reuse =
false);
136 virtual unsigned int buf2val(
void **val);
147 virtual void del_var(
const string &name);
150 virtual bool read() ;
153 virtual void print_val(FILE *out,
string space =
"",
154 bool print_decl_p =
true);
155 virtual void print_val(ostream &out,
string space =
"",
156 bool print_decl_p =
true);
161 virtual void dump(ostream &strm)
const ;
166 #endif // _structure_h
virtual void set_in_selection(bool state)
Set the in_selection property.
abstract base class used to unmarshall/deserialize dap data objects
Structure & operator=(const Structure &rhs)
void m_duplicate(const Constructor &s)
virtual BaseType * ptr_duplicate()
virtual BaseType * var(const string &name, bool exact_match=true, btp_stack *s=0)
btp_stack no longer needed; use back pointers (BaseType::get_parent())
Part
Names the parts of multi-section constructor data types.
virtual void intern_data(ConstraintEvaluator &eval, DDS &dds)
Structure(const string &n)
virtual void add_var_nocopy(BaseType *bt, Part part=nil)
Holds a structure (aggregate) type.
virtual void add_var(BaseType *bt, Part part=nil)
virtual int element_count(bool leaves=false)
Count the members of constructor types.
stack< BaseType * > btp_stack
virtual void set_leaf_sequence(int level=1)
Traverse Structure, set Sequence leaf nodes.
virtual bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true)
Move data to the net.
virtual bool read()
simple implementation of read that iterates through vars and calls read on them
virtual bool check_semantics(string &msg, bool all=false)
Compare an object's current state with the semantics of its type.
virtual bool deserialize(UnMarshaller &um, DDS *dds, bool reuse=false)
Receive data from the net.
virtual void print_val(FILE *out, string space="", bool print_decl_p=true)
Prints the value of the variable.
virtual unsigned int val2buf(void *, bool)
Loads class data.
string name() const
Returns the name of the class instance.
BaseType * m_leaf_match(const string &name, btp_stack *s=0)
virtual unsigned int width(bool constrained=false)
Evaluate a constraint expression.
virtual unsigned int buf2val(void **)
Reads the class data.
The basic data type for the DODS DAP types.
abstract base class used to marshal/serialize dap data objects
virtual bool is_linear()
Check to see whether this variable can be printed simply.
BaseType * m_exact_match(const string &name, btp_stack *s=0)
virtual void del_var(const string &name)
virtual void set_send_p(bool state)
virtual void dump(ostream &strm) const
dumps information about this object
virtual void set_read_p(bool state)
Sets the value of the read_p property.