27#define _constructor_h 1
59 typedef std::vector<BaseType *>::const_iterator
Vars_citer;
60 typedef std::vector<BaseType *>::iterator
Vars_iter;
61 typedef std::vector<BaseType *>::reverse_iterator
Vars_riter;
80 std::string
FQN()
const override;
87 unsigned int width(
bool constrained =
false)
const override;
88 int64_t
width_ll(
bool constrained =
false)
const override;
120 bool read()
override;
135 throw InternalErr(__FILE__, __LINE__,
"Never use this method; see the programmer's guide documentation.");
138 throw InternalErr(__FILE__, __LINE__,
"Never use this method; see the programmer's guide documentation.");
145 void print_decl(ostream &out,
string space =
" ",
bool print_semi =
true,
bool constraint_info =
false,
146 bool constrained =
false)
override;
148 void print_xml(ostream &out,
string space =
" ",
bool constrained =
false)
override;
154 void print_decl(FILE *out,
string space =
" ",
bool print_semi =
true,
bool constraint_info =
false,
155 bool constrained =
false)
override;
156 void print_xml(FILE *out,
string space =
" ",
bool constrained =
false)
override;
158 void print_val(FILE *out,
string space =
"",
bool print_decl_p =
true)
override;
159 void print_val(ostream &out,
string space =
"",
bool print_decl_p =
true)
override;
166 void dump(ostream &strm)
const override;
Contains the attributes for a dataset.
The basic data type for the DODS DAP types.
BaseType & operator=(const BaseType &rhs)
virtual string name() const
Returns the name of the class instance.
virtual string dataset() const
Returns the name of the dataset used to create this instance.
virtual bool is_dap4() const
stack< BaseType * > btp_stack
BaseType(const string &n, const Type &t, bool is_dap4=false)
The BaseType constructor.
virtual Type type() const
Returns the type of the class instance.
Evaluate a constraint expression.
std::vector< BaseType * >::reverse_iterator Vars_riter
int element_count(bool leaves=false) override
Count the members of constructor types.
Constructor(const string &name, const string &dataset, const Type &type, bool is_dap4=false)
void compute_checksum(Crc32 &checksum) override
include the data for this variable in the checksum DAP4 includes a checksum with every data response....
void transform_to_dap4(D4Group *root, Constructor *dest) override
DAP2 to DAP4 transform.
Vars_iter get_vars_iter(int i)
BaseType * var(const string &name, bool exact_match=true, btp_stack *s=nullptr) override
btp_stack no longer needed; use back pointers (BaseType::get_parent())
void set_var_index(BaseType *bt, int i)
Set the ith element of d_vars to a variable object.
void add_var(BaseType *bt, Part part=nil) override
void transfer_attributes(AttrTable *at) override
void print_xml_writer(XMLWriter &xml, bool constrained=false) override
std::vector< BaseType * >::const_iterator Vars_citer
Constructor(const Constructor ©_from)
void print_decl(ostream &out, string space=" ", bool print_semi=true, bool constraint_info=false, bool constrained=false) override
Print an ASCII representation of the variable structure.
unsigned int buf2val(void **) override
Reads the class data.
void print_xml(ostream &out, string space=" ", bool constrained=false) override
bool deserialize(UnMarshaller &um, DDS *dds, bool reuse=false) override
Receive data from the net.
void intern_data() override
Read data into this variable.
void set_read_p(bool state) override
Set the 'read_p' property for the Constructor and its members.
void print_val(FILE *out, string space="", bool print_decl_p=true) override
Prints the value of the variable.
static AttrTable * make_dropped_vars_attr_table(vector< BaseType * > *dropped_vars)
std::vector< BaseType * >::iterator Vars_iter
std::vector< BaseType * > d_vars
void set_send_p(bool state) override
bool is_dap4_projected(std::vector< std::string > &inventory) override
bool read() override
Read the elements of Constructor marked for transmission.
void set_in_selection(bool state) override
Set the in_selection property.
bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true) override
Move data to the net, then remove them from the object.
BaseType * m_exact_match(const string &name, btp_stack *s=nullptr)
void add_var_nocopy(BaseType *bt, Part part=nil) override
const vector< BaseType * > & variables() const
unsigned int width(bool constrained=false) const override
BaseType * get_var_index(int i)
BaseType * m_leaf_match(const string &name, btp_stack *s=nullptr)
bool check_semantics(string &msg, bool all=false) override
Compare an object's current state with the semantics of its type.
Constructor & operator=(const Constructor &rhs)
void print_dap4(XMLWriter &xml, bool constrained=false) override
std::string FQN() const override
unsigned int val2buf(void *, bool) override
Loads class data.
virtual bool is_linear()
Check to see whether this variable can be printed simply.
Constructor(const string &name, const Type &type, bool is_dap4=false)
virtual void del_var(const string &name)
Remove an element from a Constructor.
void dump(ostream &strm) const override
dumps information about this object
int64_t width_ll(bool constrained=false) const override
Get the width of the Constructor's fields.
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
Type
Identifies the data type.
Part
Names the parts of multi-section constructor data types.