26 #define _d4sequence_h 1
32 #define INDEX_SUBSETTING 0
138 int d_starting_row_number;
140 int d_ending_row_number;
174 virtual void set_length(
int count) { d_length = (int64_t)count; }
179 throw InternalErr(__FILE__, __LINE__,
"Not implemented for DAP4");
182 throw InternalErr(__FILE__, __LINE__,
"Not implemented for DAP4");
185 throw InternalErr(__FILE__, __LINE__,
"Not implemented for DAP4");
205 virtual int get_starting_row_number()
const {
return d_starting_row_number; }
217 virtual int get_row_stride()
const {
return d_row_stride; }
230 virtual int get_ending_row_number()
const {
return d_ending_row_number; }
232 virtual void set_row_number_constraint(
int start,
int stop,
int stride = 1);
244 virtual void set_value(D4SeqValues &values) { d_values = values; d_length = d_values.size(); }
259 virtual void print_one_row(ostream &out,
int row,
string space,
260 bool print_row_num =
false);
262 bool print_decl_p =
true,
263 bool print_row_numbers =
true);
264 virtual void print_val(ostream &out,
string space =
"",
265 bool print_decl_p =
true);
267 virtual void dump(ostream &strm)
const ;
virtual void print_one_row(ostream &out, int row, string space, bool print_row_num=false)
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 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 D4SeqValues value() const
Get the values for this D4Sequence This method does not perform a deep copy of the values so the call...
friend class D4SequenceTest
D4Sequence & operator=(const D4Sequence &rhs)
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.
virtual void print_val_by_rows(ostream &out, string space="", bool print_decl_p=true, bool print_row_numbers=true)
vector< D4SeqRow * > D4SeqValues
virtual bool serialize(ConstraintEvaluator &, DDS &, Marshaller &, bool)
Move data to the net.
void m_duplicate(const D4Sequence &s)