33 #ifndef BESContainer_h_
34 #define BESContainer_h_ 1
62 string _symbolic_name;
64 string _container_type;
79 BESContainer(
const string &sym_name,
const string &real_name,
const string &type) :
80 _symbolic_name(sym_name), _real_name(real_name), _container_type(type)
114 _real_name = real_name;
124 _container_type = type;
161 return _symbolic_name;
172 return _container_type;
195 virtual string access() = 0;
198 virtual void dump(ostream &strm)
const;
201 #endif // BESContainer_h_
string get_constraint() const
retrieve the constraint expression for this container
void set_real_name(const string &real_name)
set the real name for this container, such as a file name if reading a data file. ...
string get_symbolic_name() const
retrieve the symbolic name for this container
BESContainer(const string &sym_name, const string &real_name, const string &type)
construct a container with the given symbolic name, real name and container type. ...
string get_container_type() const
retrieve the type of data this container holds, such as cedar or netcdf.
virtual string access()=0
returns the true name of this container
Base object for bes objects.
void set_container_type(const string &type)
set the type of data that this container represents, such as cedar or netcdf.
void set_constraint(const string &s)
set the constraint for this container
string get_real_name() const
retrieve the real name for this container, such as a file name.
string get_attributes() const
retrieve the attributes desired from this container
void _duplicate(BESContainer ©_to)
duplicate this instance into the passed container
void set_attributes(const string &attrs)
set desired attributes for this container
virtual void dump(ostream &strm) const
dumps information about this object
A container is something that holds data.
virtual BESContainer * ptr_duplicate()=0
pure abstract method to duplicate this instances of BESContainer