66 class ConstraintEvaluator;
78 class D4StreamMarshaller;
79 class D4StreamUnMarshaller;
146 void m_duplicate(
const BaseType &bt);
152 BaseType(
const string &n,
const Type &t,
bool is_dap4 =
false);
153 BaseType(
const string &n,
const string &d,
const Type &t,
bool is_dap4 =
false);
158 virtual string toString();
162 virtual void dump(ostream &strm)
const ;
175 virtual BaseType *ptr_duplicate() = 0;
178 virtual void set_name(
const string &n);
179 virtual std::string FQN()
const;
182 void set_type(
const Type &t);
185 string dataset()
const ;
205 virtual bool synthesized_p();
206 virtual void set_synthesized_p(
bool state);
208 virtual int element_count(
bool leaves =
false);
210 virtual bool read_p();
211 virtual void set_read_p(
bool state);
213 virtual bool send_p();
214 virtual void set_send_p(
bool state);
217 virtual void set_attr_table(
const AttrTable &at);
224 virtual bool is_in_selection();
225 virtual void set_in_selection(
bool state);
227 virtual void set_parent(
BaseType *parent);
228 virtual BaseType *get_parent()
const;
230 virtual void transfer_attributes(
AttrTable *at);
266 virtual BaseType *var(
const string &name =
"",
bool exact_match =
true, btp_stack *s = 0);
267 virtual BaseType *var(
const string &name, btp_stack &s);
274 virtual bool check_semantics(
string &msg,
bool all =
false);
276 virtual bool ops(
BaseType *b,
int op);
278 virtual unsigned int width(
bool constrained =
false)
const;
280 virtual void print_decl(FILE *out,
string space =
" ",
281 bool print_semi =
true,
282 bool constraint_info =
false,
283 bool constrained =
false);
285 virtual void print_xml(FILE *out,
string space =
" ",
286 bool constrained =
false);
288 virtual void print_decl(ostream &out,
string space =
" ",
289 bool print_semi =
true,
290 bool constraint_info =
false,
291 bool constrained =
false);
293 virtual void print_xml(ostream &out,
string space =
" ",
294 bool constrained =
false);
296 virtual void print_xml_writer(
XMLWriter &xml,
bool constrained =
false);
298 virtual void print_dap4(
XMLWriter &xml,
bool constrained =
false);
314 virtual unsigned int width(
bool constrained =
false) = 0;
336 virtual unsigned int buf2val(
void **val) = 0;
367 virtual unsigned int val2buf(
void *val,
bool reuse =
false) = 0;
418 virtual void compute_checksum(
Crc32 &checksum) = 0;
420 virtual void intern_data(
Crc32 &checksum);
459 virtual bool deserialize(
UnMarshaller &um,
DDS *dds,
bool reuse =
false);
484 virtual void print_val(FILE *out,
string space =
"",
485 bool print_decl_p =
true);
501 virtual void print_val(ostream &out,
string space =
"",
502 bool print_decl_p =
true) = 0;
508 #endif // _basetype_h
void set_is_dap4(const bool v)
abstract base class used to unmarshall/deserialize dap data objects
Part
Names the parts of multi-section constructor data types.
bool is_constructor_type(Type t)
Returns true if the instance is a constructor (i.e., Structure, Sequence or Grid) type variable...
Contains the attributes for a dataset.
Read data from the stream made by D4StreamMarshaller.
bool is_vector_type(Type t)
Returns true if the instance is a vector (i.e., array) type variable.
Type
Identifies the data type.
stack< BaseType * > btp_stack
Marshaller that knows how to marshal/serialize dap data objects to a C++ iostream using DAP4's receiv...
virtual int length() const
How many elements are in this variable.
bool is_simple_type(Type t)
Returns true if the instance is a numeric, string or URL type variable.
virtual void set_length(int)
Set the number of elements for this variable.
Evaluate a constraint expression.
The basic data type for the DODS DAP types.
libdap base object for common functionality of libdap objects
abstract base class used to marshal/serialize dap data objects