26#define _d4sequence_h 1
28#include "Constructor.h"
32#define INDEX_SUBSETTING 0
39class D4FilterClauseList;
157 int d_starting_row_number;
159 int d_ending_row_number;
168 friend class D4SequenceTest;
193 virtual int length()
const {
return (
int)d_length; }
199 virtual void set_length(
int count) { d_length = (int64_t)count; }
204 throw InternalErr(__FILE__, __LINE__,
"Not implemented for DAP4");
207 throw InternalErr(__FILE__, __LINE__,
"Not implemented for DAP4");
210 throw InternalErr(__FILE__, __LINE__,
"Not implemented for DAP4");
232 virtual int get_starting_row_number()
const {
return d_starting_row_number; }
244 virtual int get_row_stride()
const {
return d_row_stride; }
257 virtual int get_ending_row_number()
const {
return d_ending_row_number; }
259 virtual void set_row_number_constraint(
int start,
int stop,
int stride = 1);
297 virtual void print_one_row(ostream &out,
int row,
string space,
298 bool print_row_num =
false);
299 virtual void print_val_by_rows(ostream &out,
string space =
"",
300 bool print_decl_p =
true,
301 bool print_row_numbers =
true);
302 virtual void print_val(ostream &out,
string space =
"",
303 bool print_decl_p =
true);
305 virtual void dump(ostream &strm)
const ;
The basic data type for the DODS DAP types.
virtual string name() const
Returns the name of the class instance.
Evaluate a constraint expression.
List of DAP4 Filter Clauses.
virtual D4SeqRow * row_value(size_t row)
Get a whole row from the sequence.
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...
virtual void print_val(ostream &out, string space="", bool print_decl_p=true)
Prints the value of the variable.
virtual void set_value(D4SeqValues &values)
Set the internal value. The 'values' of a D4Sequence is a vector of vectors of BaseType* objects....
D4Sequence(const string &n)
The Sequence constructor.
virtual bool serialize(ConstraintEvaluator &, DDS &, Marshaller &, bool)
Move data to the net, then remove them from the object.
D4FilterClauseList & clauses()
Access the filter clauses for this D4Sequence.
virtual D4SeqValues value() const
Get the values for this D4Sequence This method returns a reference to the values held by the instance...
virtual D4SeqValues & value_ref()
Get the sequence values by reference This method returns a reference to the D4Sequence's values,...
virtual void intern_data()
Read data into this variable.
virtual BaseType * ptr_duplicate()
virtual bool deserialize(UnMarshaller &, DDS *, bool)
Receive data from the net.
void read_sequence_values(bool filter)
Read a Sequence's value into memory.
virtual void set_length(int count)
virtual BaseType * var_value(size_t row, const string &name)
Get the BaseType pointer to the named variable of a given row.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void intern_data(ConstraintEvaluator &, DDS &)
virtual void clear_local_data()
virtual int length() const
The number of elements in a Sequence object.
Marshaller that knows how to marshal/serialize dap data objects to a C++ iostream using DAP4's receiv...
Read data from the stream made by D4StreamMarshaller.
A class for software fault reporting.
abstract base class used to marshal/serialize dap data objects
abstract base class used to unmarshall/deserialize dap data objects
top level DAP object to house generic methods
vector< BaseType * > BaseTypeRow
vector< BaseType * > D4SeqRow
vector< BaseTypeRow * > SequenceValues
vector< D4SeqRow * > D4SeqValues