33 #include "BESDelDefResponseHandler.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 BESDelDefResponseHandler::BESDelDefResponseHandler(
const string &name )
50 BESDelDefResponseHandler::~BESDelDefResponseHandler( )
77 dhi.action_name = DELETE_DEFINITION_STR ;
81 string def_name = dhi.
data[DEF_NAME] ;
82 string store_name = dhi.
data[STORE_NAME] ;
85 if( store_name ==
"" )
86 store_name = PERSISTENCE_VOLATILE ;
94 string line = (string)
"Definition \"" 96 +
"\" does not exist. Unable to delete." ;
102 string line = (string)
"Definition store \"" 104 +
"\" does not exist. Unable to delete." ;
110 string line = (string)
"No definition specified. " 111 +
"Unable to complete request." ;
134 BESInfo *info = dynamic_cast<BESInfo *>(_response) ;
137 info->
transmit( transmitter, dhi ) ;
150 strm << BESIndent::LMarg <<
"BESDelDefResponseHandler::dump - (" 151 << (
void *)
this <<
")" << endl ;
152 BESIndent::Indent() ;
154 BESIndent::UnIndent() ;
158 BESDelDefResponseHandler::DelDefResponseBuilder(
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
virtual void execute(BESDataHandlerInterface &dhi)
executes the command to delete a definition
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
handler object that knows how to create a specific response object
informational response object
response handler that deletes a definition from a specified definition store
virtual bool del_definition(const string &def_name)=0
deletes a defintion with the given name
virtual void dump(ostream &strm) const
dumps information about this object
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter 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 dump(ostream &strm) const
dumps information about this object