47 #include "Constructor.h" 56 class ConstraintEvaluator;
167 SequenceValues d_values;
180 int d_starting_row_number;
182 int d_ending_row_number;
193 bool d_leaf_sequence;
198 bool is_end_of_rows(
int i);
200 friend class SequenceTest;
203 void m_duplicate(
const Sequence &s);
204 typedef stack<SequenceValues*> sequence_values_stack_t;
211 sequence_values_stack_t &sequence_values_stack);
213 sequence_values_stack_t &sequence_values_stack);
216 sequence_values_stack_t &sequence_values_stack);
219 sequence_values_stack_t &sequence_values_stack);
224 Sequence(
const string &n,
const string &d);
244 virtual int length()
const;
246 virtual int number_of_rows()
const;
259 void increment_row_number(
unsigned int i) { d_row_number += i; }
260 int get_row_number()
const {
return d_row_number; }
273 return d_unsent_data;
282 virtual void set_value(SequenceValues &values);
283 virtual SequenceValues
value();
290 virtual BaseTypeRow *
row_value(
size_t row);
291 virtual void print_one_row(ostream &out,
int row,
string space,
bool print_row_num =
false);
292 virtual void print_val_by_rows(ostream &out,
string space =
"",
bool print_decl_p =
true,
bool print_row_numbers =
294 virtual void print_val(ostream &out,
string space =
"",
bool print_decl_p =
true);
296 virtual void print_one_row(FILE *out,
int row,
string space,
bool print_row_num =
false);
297 virtual void print_val_by_rows(FILE *out,
string space =
"",
bool print_decl_p =
true,
298 bool print_row_numbers =
true);
299 virtual void print_val(FILE *out,
string space =
"",
bool print_decl_p =
true);
301 virtual void set_leaf_p(
bool state);
303 virtual bool is_leaf_sequence();
307 virtual void dump(ostream &strm)
const;
virtual void clear_local_data()
virtual string name() const
Returns the name of the class instance.
abstract base class used to unmarshall/deserialize dap data objects
bool get_unsent_data() const
Get the unsent data property.
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()
virtual bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true)
virtual BaseTypeRow * row_value(size_t row)
Get a whole row from the sequence.
vector< BaseTypeRow * > SequenceValues
virtual void set_row_number_constraint(int start, int stop, int stride=1)
top level DAP object to house generic methods
virtual bool is_linear()
Check to see whether this variable can be printed simply.
Sequence(const string &n)
The Sequence constructor.
virtual void set_leaf_sequence(int lvl=1)
Mark the Sequence which holds the leaf elements.
virtual string toString()
int get_starting_row_number()
Get the starting row number.
Evaluate a constraint expression.
virtual SequenceValues & value_ref()
virtual SequenceValues value()
void reset_row_number()
Rest the row number counter.
virtual int length() const
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_val(ostream &out, string space="", bool print_decl_p=true)
Prints the value of the variable.
virtual void intern_data()
Read data into this variable.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void transform_to_dap4(D4Group *root, Constructor *container)
virtual int get_ending_row_number()
Get the ending row number.
virtual BaseType * ptr_duplicate()
virtual int get_row_stride()
Get the row stride.
virtual void set_value(SequenceValues &values)
vector< BaseType * > BaseTypeRow