33#ifndef BESContainer_h_
34#define BESContainer_h_ 1
67 std::string d_symbolic_name;
68 std::string d_real_name;
69 std::string d_relative_name;
70 std::string d_container_type;
72 std::string d_constraint;
73 std::string d_dap4_constraint;
74 std::string d_dap4_function;
76 std::string d_attributes;
94 BESContainer(
const std::string &sym_name,
const std::string &real_name,
const std::string &type) :
95 d_symbolic_name(sym_name), d_real_name(real_name), d_relative_name(
""), d_container_type(type),
96 d_constraint(
""), d_dap4_constraint(
""), d_dap4_function(
""), d_attributes(
"")
129 d_dap4_constraint = s;
148 d_real_name = real_name;
153 d_relative_name = relative;
163 d_container_type = type;
172 d_attributes = attrs;
187 return d_relative_name;
205 return d_dap4_constraint;
214 return d_dap4_function;
223 return d_symbolic_name;
234 return d_container_type;
259 virtual bool release() = 0;
261 virtual void dump(std::ostream &strm)
const;
A container is something that holds data. E.G., a netcdf file or a database entry.
void set_container_type(const std::string &type)
set the type of data that this container represents, such as cedar or netcdf.
void set_constraint(const std::string &s)
set the constraint for this container
std::string get_attributes() const
retrieve the attributes desired from this container
std::string get_symbolic_name() const
retrieve the symbolic name for this container
virtual BESContainer * ptr_duplicate()=0
pure abstract method to duplicate this instances of BESContainer
virtual void dump(std::ostream &strm) const
dumps information about this object
std::string get_relative_name() const
Get the relative name of the object in this container.
BESContainer(const std::string &sym_name, const std::string &real_name, const std::string &type)
construct a container with the given symbolic name, real name and container type.
void set_dap4_function(const std::string &s)
set the constraint for this container
void set_attributes(const std::string &attrs)
set desired attributes for this container
std::string get_dap4_constraint() const
retrieve the constraint expression for this container
std::string get_dap4_function() const
retrieve the constraint expression for this container
void set_real_name(const std::string &real_name)
set the real name for this container, such as a file name if reading a data file.
virtual std::string access()=0
returns the true name of this container
std::string get_container_type() const
retrieve the type of data this container holds, such as cedar or netcdf.
void set_dap4_constraint(const std::string &s)
set the constraint for this container
void set_relative_name(const std::string &relative)
Set the relative name of the object in this container.
void _duplicate(BESContainer ©_to)
duplicate this instance into the passed container
std::string get_real_name() const
retrieve the real name for this container, such as a file name.
std::string get_constraint() const
retrieve the constraint expression for this container
top level BES object to house generic methods