33 #include "BESDelDefsResponseHandler.h" 34 #include "BESSilentInfo.h" 35 #include "BESDefinitionStorageList.h" 36 #include "BESDefinitionStorage.h" 37 #include "BESDefine.h" 38 #include "BESContainerStorageList.h" 39 #include "BESContainerStorage.h" 40 #include "BESContainer.h" 41 #include "BESDataNames.h" 42 #include "BESSyntaxUserError.h" 43 #include "BESResponseNames.h" 45 BESDelDefsResponseHandler::BESDelDefsResponseHandler(
const string &name )
50 BESDelDefsResponseHandler::~BESDelDefsResponseHandler( )
77 dhi.action_name = DELETE_DEFINITIONS_STR ;
81 string store_name = dhi.
data[STORE_NAME] ;
82 if( store_name ==
"" )
83 store_name = PERSISTENCE_VOLATILE ;
91 string line = (string)
"Unable to delete all definitions " 92 +
"from definition store \"" + store_name +
"\"" ;
98 string line = (string)
"Definition store \"" 100 +
"\" does not exist. Unable to delete." ;
126 info->
transmit( transmitter, dhi ) ;
139 strm << BESIndent::LMarg <<
"BESDelDefsResponseHandler::dump - (" 140 << (
void *)
this <<
")" << endl ;
141 BESIndent::Indent() ;
143 BESIndent::UnIndent() ;
147 BESDelDefsResponseHandler::DelDefsResponseBuilder(
const string &name )
silent informational response object
provides persistent storage for a specific view of different containers including contraints and aggr...
exception thrown if inernal error encountered
response handler that deletes all definitions from a specified definition store.
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
virtual BESDefinitionStorage * find_persistence(const string &persist_name)
find the persistence store with the given name
error thrown if there is a user syntax error in the request or any other user error ...
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object ...
handler object that knows how to create a specific response object
informational response object
virtual void dump(ostream &strm) const
dumps information about this object
virtual bool del_definitions()=0
deletes all defintions from the definition store
virtual void dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.
map< string, string > data
the map of string data that will be required for the current request.
virtual void execute(BESDataHandlerInterface &dhi)
executes the command to delete a container, a definition, or all definitions.