55 #ifndef _internalerr_h
59 #ifndef __DODS_DATATYPES_
70 #define FILE_METHODS 1
78 class ConstraintEvaluator;
211 void _duplicate(
const BaseType &bt);
217 BaseType(
const string &n,
const string &d,
const Type &t);
222 virtual string toString();
224 virtual void dump(ostream &strm)
const ;
234 virtual BaseType *ptr_duplicate() = 0;
237 virtual void set_name(
const string &n);
240 void set_type(
const Type &t);
241 string type_name()
const;
243 string dataset()
const ;
245 virtual bool is_simple_type();
246 virtual bool is_vector_type();
247 virtual bool is_constructor_type();
249 virtual bool synthesized_p();
250 virtual void set_synthesized_p(
bool state);
252 virtual int element_count(
bool leaves =
false);
254 virtual bool read_p();
255 virtual void set_read_p(
bool state);
257 virtual bool send_p();
258 virtual void set_send_p(
bool state);
261 virtual void set_attr_table(
const AttrTable &at);
263 virtual bool is_in_selection();
264 virtual void set_in_selection(
bool state);
266 virtual void set_parent(
BaseType *parent);
269 virtual void transfer_attributes(
AttrTable *at);
305 virtual BaseType *var(
const string &name =
"",
bool exact_match =
true,
313 virtual bool check_semantics(
string &msg,
bool all =
false);
315 virtual bool ops(
BaseType *b,
int op);
317 virtual void print_decl(FILE *out,
string space =
" ",
318 bool print_semi =
true,
319 bool constraint_info =
false,
320 bool constrained =
false);
322 virtual void print_xml(FILE *out,
string space =
" ",
323 bool constrained =
false);
325 virtual void print_decl(ostream &out,
string space =
" ",
326 bool print_semi =
true,
327 bool constraint_info =
false,
328 bool constrained =
false);
330 virtual void print_xml(ostream &out,
string space =
" ",
331 bool constrained =
false);
347 virtual unsigned int width() = 0;
369 virtual unsigned int buf2val(
void **val) = 0;
400 virtual unsigned int val2buf(
void *val,
bool reuse =
false) = 0;
470 virtual bool deserialize(
UnMarshaller &um,
DDS *dds,
bool reuse =
false) = 0;
488 virtual void print_val(FILE *out,
string space =
"",
489 bool print_decl_p =
true) = 0;
506 virtual void print_val(ostream &out,
string space =
"",
507 bool print_decl_p =
true) = 0;
513 #endif // _basetype_h
abstract base class used to unmarshall/deserialize dap data objects
Part
Names the parts of multi-section constructor data types.
Contains the attributes for a dataset.
Type
Identifies the data type.
stack< BaseType * > btp_stack
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