26 #define _d4sequence_h 1 28 #include "Constructor.h" 32 #define INDEX_SUBSETTING 0 152 D4SeqValues d_values;
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);
271 virtual void set_value(D4SeqValues &values) { d_values = values; d_length = d_values.size(); }
281 virtual D4SeqValues
value()
const {
return d_values; }
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 ;
virtual string name() const
Returns the name of the class instance.
virtual BaseType * ptr_duplicate()
abstract base class used to unmarshall/deserialize dap data objects
virtual D4SeqValues value() const
Get the values for this D4Sequence This method returns a reference to the values held by the instance...
void read_sequence_values(bool filter)
Read a Sequence's value into memory.
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.
vector< BaseTypeRow * > SequenceValues
D4FilterClauseList & clauses()
Access the filter clauses for this D4Sequence.
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
top level DAP object to house generic methods
A class for software fault reporting.
List of DAP4 Filter Clauses.
Marshaller that knows how to marshal/serialize dap data objects to a C++ iostream using DAP4's receiv...
virtual void dump(ostream &strm) const
dumps information about this object
virtual void set_length(int count)
virtual void intern_data()
Read data into this variable.
virtual D4SeqValues & value_ref()
Get the sequence values by reference This method returns a reference to the D4Sequence's values...
virtual int length() const
The number of elements in a Sequence object.
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.
vector< BaseType * > BaseTypeRow