BESXMLDapCommandModule.cc
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #include <iostream>
00034
00035 using std::endl ;
00036 using std::cout ;
00037
00038 #include "BESXMLDapCommandModule.h"
00039 #include "BESResponseNames.h"
00040 #include "BESDebug.h"
00041 #include "BESXMLCatalogCommand.h"
00042
00043 void
00044 BESXMLDapCommandModule::initialize( const string &modname )
00045 {
00046 BESDEBUG( "dap", "Initializing DAP Commands:" << endl )
00047
00048 BESDEBUG( "besxml", " adding " << CATALOG_RESPONSE_STR
00049 << " command" << endl )
00050 BESXMLCommand::add_command( CATALOG_RESPONSE_STR,
00051 BESXMLCatalogCommand::CommandBuilder ) ;
00052
00053 BESDEBUG( "besxml", " adding " << SHOW_INFO_RESPONSE_STR
00054 << " command" << endl )
00055 BESXMLCommand::add_command( SHOW_INFO_RESPONSE_STR,
00056 BESXMLCatalogCommand::CommandBuilder ) ;
00057
00058 BESDEBUG( "dap", "Done Initializing DAP Commands:" << endl )
00059 }
00060
00061 void
00062 BESXMLDapCommandModule::terminate( const string &modname )
00063 {
00064 BESDEBUG( "dap", "Removing DAP Commands" << endl )
00065
00066 BESXMLCommand::del_command( CATALOG_RESPONSE_STR ) ;
00067 BESXMLCommand::del_command( SHOW_INFO_RESPONSE_STR ) ;
00068
00069 BESDEBUG( "dap", "Done Removing DAP Commands" << endl )
00070 }
00071
00078 void
00079 BESXMLDapCommandModule::dump( ostream &strm ) const
00080 {
00081 strm << BESIndent::LMarg << "BESXMLDapCommandModule::dump - ("
00082 << (void *)this << ")" << endl ;
00083 }
00084
00085 extern "C"
00086 {
00087 BESAbstractModule *maker()
00088 {
00089 return new BESXMLDapCommandModule ;
00090 }
00091 }
00092