52 #ifndef _constructor_h
56 #ifndef constraint_evaluator_h
190 int d_starting_row_number;
192 int d_ending_row_number;
203 bool d_leaf_sequence;
211 bool is_end_of_rows(
int i);
247 Sequence(
const string &n,
const string &d);
272 virtual unsigned int width(
bool constrained =
false);
273 virtual unsigned int width(
bool constrained);
301 return d_unsent_data;
312 virtual unsigned int val2buf(
void *val,
bool reuse =
false);
313 virtual unsigned int buf2val(
void **val);
332 virtual void print_one_row(ostream &out,
int row,
string space,
333 bool print_row_num =
false);
335 bool print_decl_p =
true,
336 bool print_row_numbers =
true);
337 virtual void print_val(ostream &out,
string space =
"",
338 bool print_decl_p =
true);
341 bool print_row_num =
false);
343 bool print_decl_p =
true,
344 bool print_row_numbers =
true);
345 virtual void print_val(FILE *out,
string space =
"",
346 bool print_decl_p =
true);
356 virtual void dump(ostream &strm)
const ;
virtual void intern_data(ConstraintEvaluator &eval, DDS &dds)
virtual void set_in_selection(bool state)
Set the in_selection property.
abstract base class used to unmarshall/deserialize dap data objects
virtual void dump(ostream &strm) const
dumps information about this object
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.
void set_unsent_data(bool usd)
Set the unsent data property.
virtual bool read_row(int row, DDS &dds, ConstraintEvaluator &eval, bool ce_eval=true)
virtual bool deserialize(UnMarshaller &um, DDS *dds, bool reuse=false)
Deserialize (read from the network) the entire Sequence.
virtual bool is_dap2_only_type()
vector< BaseTypeRow * > SequenceValues
virtual bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true)
virtual bool serialize_leaf(DDS &dds, ConstraintEvaluator &eval, Marshaller &m, bool ce_eval)
virtual void add_var_nocopy(BaseType *bt, Part part=nil)
virtual BaseTypeRow * row_value(size_t row)
Get a whole row from the sequence.
virtual void set_row_number_constraint(int start, int stop, int stride=1)
virtual void add_var(BaseType *bt, Part part=nil)
virtual int element_count(bool leaves=false)
Count the members of constructor types.
virtual void print_val_by_rows(ostream &out, string space="", bool print_decl_p=true, bool print_row_numbers=true)
stack< BaseType * > btp_stack
virtual void intern_data_private(ConstraintEvaluator &eval, DDS &dds, sequence_values_stack_t &sequence_values_stack)
virtual bool is_linear()
Check to see whether this variable can be printed simply.
virtual void intern_data_for_leaf(DDS &dds, ConstraintEvaluator &eval, sequence_values_stack_t &sequence_values_stack)
bool get_unsent_data()
Get the unsent data property.
Sequence(const string &n)
The Sequence constructor.
virtual void set_leaf_sequence(int lvl=1)
Mark the Sequence which holds the leaf elements.
Sequence & operator=(const Sequence &rhs)
virtual bool check_semantics(string &msg, bool all=false)
Compare an object's current state with the semantics of its type.
virtual unsigned int val2buf(void *, bool)
Loads class data.
vector< BaseType * > BaseTypeRow
virtual void serialize_parent_part_two(DDS &dds, ConstraintEvaluator &eval, Marshaller &m)
virtual bool is_leaf_sequence()
string name() const
Returns the name of the class instance.
virtual string toString()
BaseType * m_leaf_match(const string &name, btp_stack *s=0)
int get_starting_row_number()
Get the starting row number.
virtual unsigned int width(bool constrained=false)
Evaluate a constraint expression.
virtual SequenceValues value()
friend class SequenceTest
virtual int number_of_rows()
void reset_row_number()
Rest the row number counter.
virtual unsigned int buf2val(void **)
Reads the class data.
virtual void intern_data_parent_part_two(DDS &dds, ConstraintEvaluator &eval, sequence_values_stack_t &sequence_values_stack)
The basic data type for the DODS DAP types.
abstract base class used to marshal/serialize dap data objects
virtual BaseType * var_value(size_t row, const string &name)
Get the BaseType pointer to the named variable of a given row.
virtual void print_one_row(ostream &out, int row, string space, bool print_row_num=false)
virtual void intern_data_parent_part_one(DDS &dds, ConstraintEvaluator &eval, sequence_values_stack_t &sequence_values_stack)
BaseType * m_exact_match(const string &name, btp_stack *s=0)
virtual void print_val(ostream &out, string space="", bool print_decl_p=true)
Prints the value of the variable.
virtual bool serialize_parent_part_one(DDS &dds, ConstraintEvaluator &eval, Marshaller &m)
virtual void set_leaf_p(bool state)
stack< SequenceValues * > sequence_values_stack_t
void m_duplicate(const Sequence &s)
virtual int get_ending_row_number()
Get the ending row number.
virtual void set_send_p(bool state)
virtual BaseType * ptr_duplicate()
virtual int get_row_stride()
Get the row stride.
virtual void set_value(SequenceValues &values)
virtual void set_read_p(bool state)
Sets the value of the read_p property.