33#ifndef BESContainer_h_
34#define BESContainer_h_ 1
68 std::string d_symbolic_name;
69 std::string d_real_name;
70 std::string d_relative_name;
71 std::string d_container_type;
73 std::string d_constraint;
74 std::string d_dap4_constraint;
75 std::string d_dap4_function;
77 std::string d_attributes;
80 BESContainer() =
default;
93 BESContainer(std::string sym_name, std::string real_name, std::string type) :
94 d_symbolic_name(std::move(sym_name)), d_real_name(std::move(real_name)), d_container_type(std::move(type))
130 d_dap4_constraint = s;
149 d_real_name = real_name;
154 d_relative_name = relative;
164 d_container_type = type;
173 d_attributes = attrs;
188 return d_relative_name;
206 return d_dap4_constraint;
215 return d_dap4_function;
224 return d_symbolic_name;
235 return d_container_type;
260 virtual bool release() = 0;
262 void dump(std::ostream &strm)
const override;
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
BESContainer(std::string sym_name, std::string real_name, std::string type)
construct a container with the given symbolic name, real name and container type.
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
std::string get_relative_name() const
Get the relative name of the object in this container.
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
void dump(std::ostream &strm) const override
dumps information about this object
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