00001 // OPENDAP_CLASSModule.cc 00002 00003 #include <iostream> 00004 00005 using std::endl ; 00006 00007 #include "OPENDAP_CLASSModule.h" 00008 #include "BESRequestHandlerList.h" 00009 #include "OPENDAP_CLASSRequestHandler.h" 00010 #include "BESDebug.h" 00011 #include "BESResponseHandlerList.h" 00012 #include "BESResponseNames.h" 00013 #include "BESCommand.h" 00014 #include "OPENDAP_CLASSResponseNames.h" 00015 00016 void 00017 OPENDAP_CLASSModule::initialize( const string &modname ) 00018 { 00019 BESDEBUG( "Initializing OPENDAP_CLASS Handler:" << endl ) 00020 00021 BESDEBUG( " adding " << modname << " request handler" << endl ) 00022 BESRequestHandlerList::TheList()->add_handler( modname, new OPENDAP_CLASSRequestHandler( modname ) ) ; 00023 00024 // If new commands are needed, then let's declare this once here. If 00025 // not, then you can remove this line. 00026 string cmd_name ; 00027 00028 // INIT_END 00029 } 00030 00031 void 00032 OPENDAP_CLASSModule::terminate( const string &modname ) 00033 { 00034 BESDEBUG( "Removing OPENDAP_CLASS Handlers" << endl ) 00035 BESRequestHandler *rh = BESRequestHandlerList::TheList()->remove_handler( modname ) ; 00036 if( rh ) delete rh ; 00037 } 00038 00039 extern "C" 00040 { 00041 BESAbstractModule *maker() 00042 { 00043 return new OPENDAP_CLASSModule ; 00044 } 00045 } 00046 00047 void 00048 OPENDAP_CLASSModule::dump( ostream &strm ) const 00049 { 00050 strm << BESIndent::LMarg << "OPENDAP_CLASSModule::dump - (" 00051 << (void *)this << ")" << endl ; 00052 } 00053