26 #ifndef _constructor_h
27 #define _constructor_h 1
55 typedef std::vector<BaseType *>::const_iterator
Vars_citer ;
56 typedef std::vector<BaseType *>::iterator
Vars_iter ;
57 typedef std::vector<BaseType *>::reverse_iterator
Vars_riter ;
71 virtual unsigned int width(
bool constrained =
false);
73 virtual unsigned int width(
bool constrained);
99 virtual unsigned int val2buf(
void *,
bool) {
100 throw InternalErr(__FILE__, __LINE__,
"Never use this method; see the programmer's guide documentation.");
103 throw InternalErr(__FILE__, __LINE__,
"Never use this method; see the programmer's guide documentation.");
109 virtual void print_decl(ostream &out,
string space =
" ",
110 bool print_semi =
true,
111 bool constraint_info =
false,
112 bool constrained =
false);
114 virtual void print_xml(ostream &out,
string space =
" ",
115 bool constrained =
false);
119 virtual void print_decl(FILE *out,
string space =
" ",
120 bool print_semi =
true,
121 bool constraint_info =
false,
122 bool constrained =
false);
123 virtual void print_xml(FILE *out,
string space =
" ",
124 bool constrained =
false);
126 virtual void print_val(FILE *out,
string space =
"",
127 bool print_decl_p =
true);
128 virtual void print_val(ostream &out,
string space =
"",
129 bool print_decl_p =
true);
133 virtual void dump(ostream &strm)
const ;
138 #endif // _constructor_h
virtual void set_in_selection(bool state)
Set the in_selection property.
abstract base class used to unmarshall/deserialize dap data objects
void m_duplicate(const Constructor &s)
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.
std::vector< BaseType * >::reverse_iterator Vars_riter
std::vector< BaseType * > d_vars
virtual void intern_data(ConstraintEvaluator &eval, DDS &dds)
std::vector< BaseType * >::iterator Vars_iter
virtual void add_var_nocopy(BaseType *bt, Part part=nil)
virtual void add_var(BaseType *bt, Part part=nil)
Type
Identifies the data type.
Constructor & operator=(const Constructor &rhs)
virtual int element_count(bool leaves=false)
Count the members of constructor types.
stack< BaseType * > btp_stack
A class for software fault reporting.
virtual void print_xml(ostream &out, string space=" ", bool constrained=false)
virtual bool is_linear()
Check to see whether this variable can be printed simply.
virtual bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true)
Move data to the net.
BaseType * get_var_index(int i)
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 void dump(ostream &strm) const
dumps information about this object
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)
std::vector< BaseType * >::const_iterator Vars_citer
virtual void print_xml_writer(XMLWriter &xml, bool constrained=false)
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 void print_decl(ostream &out, string space=" ", bool print_semi=true, bool constraint_info=false, bool constrained=false)
Print an ASCII representation of the variable structure.
BaseType * m_exact_match(const string &name, btp_stack *s=0)
Vars_iter get_vars_iter(int i)
virtual void del_var(const string &name)
virtual void set_send_p(bool state)
virtual void set_read_p(bool state)
Sets the value of the read_p property.