bes Updated for version 3.20.13
|
Container representing a remote request. More...
#include <CmrContainer.h>
Public Member Functions | |
virtual std::string | access () |
access the remote target response by making the remote request | |
CmrContainer (const CmrContainer ©_from) | |
CmrContainer (const std::string &sym_name, const std::string &real_name, const std::string &type) | |
Creates an instances of CmrContainer with symbolic name and real name, which is the remote request. | |
virtual void | dump (std::ostream &strm) const |
dumps information about this object | |
std::string | get_attributes () const |
retrieve the attributes desired from this container | |
std::string | get_constraint () const |
retrieve the constraint expression for this container | |
std::string | get_container_type () const |
retrieve the type of data this container holds, such as cedar or netcdf. | |
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 | |
std::string | get_real_name () const |
retrieve the real name for this container, such as a file name. | |
std::string | get_relative_name () const |
Get the relative name of the object in this container. | |
std::string | get_symbolic_name () const |
retrieve the symbolic name for this container | |
virtual BESContainer * | ptr_duplicate () |
pure abstract method to duplicate this instances of BESContainer | |
virtual bool | release () |
release the resources | |
void | set_attributes (const std::string &attrs) |
set desired attributes for this container | |
void | set_constraint (const std::string &s) |
set the constraint for this container | |
void | set_container_type (const std::string &type) |
set the type of data that this container represents, such as cedar or netcdf. | |
void | set_dap4_constraint (const std::string &s) |
set the constraint for this container | |
void | set_dap4_function (const std::string &s) |
set the constraint 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. | |
void | set_relative_name (const std::string &relative) |
Set the relative name of the object in this container. | |
Static Public Member Functions | |
static Granule * | getTemporalFacetGranule (const std::string granule_path) |
Protected Member Functions | |
void | _duplicate (BESContainer ©_to) |
duplicate this instance into the passed container | |
void | _duplicate (CmrContainer ©_to) |
Container representing a remote request.
The real name of a CmrContainer is the actual remote request. When the access method is called the remote request is made, the response saved to file if successful, and the target response returned as the real container that a data handler would then open.
Definition at line 53 of file CmrContainer.h.
cmr::CmrContainer::CmrContainer | ( | const std::string & | sym_name, |
const std::string & | real_name, | ||
const std::string & | type | ||
) |
Creates an instances of CmrContainer with symbolic name and real name, which is the remote request.
The real_name is the remote request URL.
sym_name | symbolic name representing this remote container |
real_name | the virtual CMR path to a dataset or file. |
BESSyntaxUserError | if the path does not validate |
Definition at line 60 of file CmrContainer.cc.
cmr::CmrContainer::CmrContainer | ( | const CmrContainer & | copy_from | ) |
TODO: I think this implementation of the copy constructor is incomplete/inadequate. Review and fix as needed.
Definition at line 112 of file CmrContainer.cc.
|
virtual |
Definition at line 140 of file CmrContainer.cc.
|
protectedinherited |
duplicate this instance into the passed container
copy_to | The container to copy this instance into |
Definition at line 54 of file BESContainer.cc.
|
protected |
Definition at line 123 of file CmrContainer.cc.
|
virtual |
access the remote target response by making the remote request
BESError | if there is a problem making the remote request |
Implements BESContainer.
Definition at line 151 of file CmrContainer.cc.
|
virtual |
dumps information about this object
Displays the pointer value of this instance along with information about this container.
strm | C++ i/o stream to dump the information to |
Reimplemented from BESContainer.
Definition at line 221 of file CmrContainer.cc.
|
inlineinherited |
retrieve the attributes desired from this container
Definition at line 242 of file BESContainer.h.
|
inlineinherited |
retrieve the constraint expression for this container
Definition at line 194 of file BESContainer.h.
|
inlineinherited |
retrieve the type of data this container holds, such as cedar or netcdf.
Definition at line 232 of file BESContainer.h.
|
inlineinherited |
retrieve the constraint expression for this container
Definition at line 203 of file BESContainer.h.
|
inlineinherited |
retrieve the constraint expression for this container
Definition at line 212 of file BESContainer.h.
|
inlineinherited |
retrieve the real name for this container, such as a file name.
Definition at line 180 of file BESContainer.h.
|
inlineinherited |
Get the relative name of the object in this container.
Definition at line 186 of file BESContainer.h.
|
inlineinherited |
retrieve the symbolic name for this container
Definition at line 221 of file BESContainer.h.
|
static |
Definition at line 251 of file CmrContainer.cc.
|
virtual |
pure abstract method to duplicate this instances of BESContainer
Implements BESContainer.
Definition at line 134 of file CmrContainer.cc.
|
virtual |
release the resources
Release the resource
Implements BESContainer.
Definition at line 203 of file CmrContainer.cc.
|
inlineinherited |
set desired attributes for this container
attrs | attributes desired to access for this container |
Definition at line 170 of file BESContainer.h.
|
inlineinherited |
set the constraint for this container
s | constraint |
Definition at line 118 of file BESContainer.h.
|
inlineinherited |
set the type of data that this container represents, such as cedar or netcdf.
type | type of data, such as cedar or netcdf |
Definition at line 161 of file BESContainer.h.
|
inlineinherited |
set the constraint for this container
s | constraint |
Definition at line 127 of file BESContainer.h.
|
inlineinherited |
set the constraint for this container
s | constraint |
Definition at line 136 of file BESContainer.h.
|
inlineinherited |
set the real name for this container, such as a file name if reading a data file.
real_name | real name, such as the file name |
Definition at line 146 of file BESContainer.h.
|
inlineinherited |
Set the relative name of the object in this container.
Definition at line 152 of file BESContainer.h.