52 #ifndef _constructor_h
56 #ifndef constraint_evaluator_h
63 #define FILE_METHODS 1
191 int d_starting_row_number;
193 int d_ending_row_number;
204 bool d_leaf_sequence;
213 bool is_end_of_rows(
int i);
249 Sequence(
const string &n,
const string &d);
269 virtual unsigned int width();
297 return d_unsent_data;
307 virtual unsigned int val2buf(
void *val,
bool reuse =
false);
308 virtual unsigned int buf2val(
void **val);
313 virtual BaseType *
var(
const string &name,
bool exact_match =
true,
324 virtual void print_one_row(ostream &out,
int row,
string space,
325 bool print_row_num =
false);
327 bool print_decl_p =
true,
328 bool print_row_numbers =
true);
329 virtual void print_val(ostream &out,
string space =
"",
330 bool print_decl_p =
true);
334 bool print_row_num =
false);
336 bool print_decl_p =
true,
337 bool print_row_numbers =
true);
338 virtual void print_val(FILE *out,
string space =
"",
339 bool print_decl_p =
true);
350 virtual void dump(ostream &strm)
const ;
virtual void intern_data(ConstraintEvaluator &eval, DDS &dds)
abstract base class used to unmarshall/deserialize dap data objects
virtual void dump(ostream &strm) const
dumps information about this object
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 int element_count(bool leaves=false)
Count the members of constructor types.
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 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 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 unsigned int buf2val(void **val)
virtual void set_in_selection(bool state)
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()
int get_starting_row_number()
Get the starting row number.
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 void intern_data_parent_part_two(DDS &dds, ConstraintEvaluator &eval, sequence_values_stack_t &sequence_values_stack)
virtual void set_read_p(bool state)
Sets the value of the read_p property.
virtual bool check_semantics(string &msg, bool all=false)
Compare an object's current state with the semantics of its type.
The basic data type for the DODS DAP types.
abstract base class used to marshal/serialize dap data objects
virtual unsigned int val2buf(void *val, bool reuse=false)
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 add_var(BaseType *, Part part=nil)
Adds a variable to the Sequence.
virtual void intern_data_parent_part_one(DDS &dds, ConstraintEvaluator &eval, sequence_values_stack_t &sequence_values_stack)
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
virtual int get_ending_row_number()
Get the ending row number.
virtual unsigned int width()
Returns the size of the class instance data.
virtual void set_send_p(bool state)
virtual BaseType * ptr_duplicate()
virtual int get_row_stride()
Get the row stride.
virtual BaseType * var(const string &name, bool exact_match=true, btp_stack *s=0)
Returns a pointer to a member of a constructor class.
virtual void set_value(SequenceValues &values)