26 #define _d4sequence_h 1 28 #include "Constructor.h" 32 #define INDEX_SUBSETTING 0 133 D4SeqValues d_values;
138 int d_starting_row_number;
140 int d_ending_row_number;
145 friend class D4SequenceTest;
170 virtual int length()
const {
return (
int)d_length; }
176 virtual void set_length(
int count) { d_length = (int64_t)count; }
181 throw InternalErr(__FILE__, __LINE__,
"Not implemented for DAP4");
184 throw InternalErr(__FILE__, __LINE__,
"Not implemented for DAP4");
187 throw InternalErr(__FILE__, __LINE__,
"Not implemented for DAP4");
210 virtual int get_starting_row_number()
const {
return d_starting_row_number; }
222 virtual int get_row_stride()
const {
return d_row_stride; }
235 virtual int get_ending_row_number()
const {
return d_ending_row_number; }
237 virtual void set_row_number_constraint(
int start,
int stop,
int stride = 1);
249 virtual void set_value(D4SeqValues &values) { d_values = values; d_length = d_values.size(); }
258 virtual D4SeqValues
value()
const {
return d_values; }
264 virtual void print_one_row(ostream &out,
int row,
string space,
265 bool print_row_num =
false);
266 virtual void print_val_by_rows(ostream &out,
string space =
"",
267 bool print_decl_p =
true,
268 bool print_row_numbers =
true);
269 virtual void print_val(ostream &out,
string space =
"",
270 bool print_decl_p =
true);
272 virtual void dump(ostream &strm)
const ;
virtual BaseType * ptr_duplicate()
abstract base class used to unmarshall/deserialize dap data objects
D4Sequence(const string &n)
The Sequence constructor.
virtual bool read_next_instance(bool filter)
Read the next instance of the sequence While the rest of the variables' read() methods are assumed to...
Read data from the stream made by D4StreamMarshaller.
virtual void clear_local_data()
virtual BaseType * var_value(size_t row, const string &name)
Get the BaseType pointer to the named variable of a given row.
virtual void set_value(D4SeqValues &values)
Set the internal value. The 'values' of a D4Sequence is a vector of vectors of BaseType* objects...
vector< BaseType * > D4SeqRow
A class for software fault reporting.
Marshaller that knows how to marshal/serialize dap data objects to a C++ iostream using DAP4's receiv...
virtual void set_length(int count)
virtual void dump(ostream &strm) const
dumps information about this object
virtual int length() const
The number of elements in a Sequence object.
virtual void intern_data()
Read data into this variable.
virtual D4SeqValues value() const
Get the values for this D4Sequence This method does not perform a deep copy of the values so the call...
virtual string name() const
Returns the name of the class instance.
virtual void intern_data(ConstraintEvaluator &, DDS &)
virtual void print_val(ostream &out, string space="", bool print_decl_p=true)
Prints the value of the variable.
Evaluate a constraint expression.
virtual bool deserialize(UnMarshaller &, DDS *, bool)
Receive data from the net.
The basic data type for the DODS DAP types.
abstract base class used to marshal/serialize dap data objects
virtual D4SeqRow * row_value(size_t row)
Get a whole row from the sequence.
vector< D4SeqRow * > D4SeqValues
virtual bool serialize(ConstraintEvaluator &, DDS &, Marshaller &, bool)
Move data to the net, then remove them from the object.