29 #ifndef __NCML_MODULE_DDSLOADER_H__
30 #define __NCML_MODULE_DDSLOADER_H__
76 std::string _filename;
82 std::string _containerSymbol;
83 std::string _origAction;
84 std::string _origActionName;
90 static long _gensymID;
140 std::auto_ptr<BESDapResponse>
load(
const std::string& location,
ResponseType type);
215 void removeContainerFromStorage() throw();
220 void ensureClean() throw();
225 static
std::
string getNextContainerName();
static std::auto_ptr< BESDapResponse > makeResponseForType(ResponseType type)
Make a new response object for the requested type.
provides persistent storage for data storage information represented by a container.
ResponseType
For telling the loader what type of BESDapResponse to load and return.
static std::string getActionNameForType(ResponseType type)
Convert the type in the action name in BESResponseNames.h.
static bool checkResponseIsValidType(ResponseType type, BESDapResponse *pResponse)
Return whether the given response's type matches the given ResposneType.
Helper class for temporarily hijacking an existing dhi to load a DDX response for one particular file...
static std::string getActionForType(ResponseType type)
Convert the type into the action in BESResponseNames.h for the type.
BESDataHandlerInterface & getDHI() const
Return a reference to the dhi we are using.
DDSLoader & operator=(const DDSLoader &)
void loadInto(const std::string &location, ResponseType type, BESDapResponse *pResponse)
Load a DDX or DataDDS response into the given pResponse object, which must be non-null.
virtual ~DDSLoader()
Dtor restores the state of dhi Restores the state of the dhi to what it was when object if it is stil...
Represents an OPeNDAP DAP response object within the BES.
Structure storing information used by the BES to handle the request.
A container is something that holds data.
DDSLoader(BESDataHandlerInterface &dhi)
Create a loader that will hijack dhi on a load call, then restore it's state.
Abstract base class representing a specific set of information in response to a request to the BES...
std::auto_ptr< BESDapResponse > load(const std::string &location, ResponseType type)
Load and return a new DDX or DataDDS structure for the local dataset referred to by location...
void cleanup()
restore dhi to clean state