_module.cc

Go to the documentation of this file.
00001 // OPENDAP_TYPE_module.cc
00002 
00003 #include <iostream>
00004 
00005 using std::endl ;
00006 
00007 #include "BESInitList.h"
00008 #include "BESRequestHandlerList.h"
00009 #include "OPENDAP_CLASSRequestHandler.h"
00010 #include "BESLog.h"
00011 #include "BESResponseHandlerList.h"
00012 #include "OPENDAP_CLASSResponseNames.h"
00013 
00014 static bool
00015 OPENDAP_CLASSInit(int, char**)
00016 {
00017     if( BESLog::TheLog()->is_verbose() )
00018         (*BESLog::TheLog()) << "Initializing OPENDAP_CLASS Handler:" << endl ;
00019 
00020     if( BESLog::TheLog()->is_verbose() )
00021         (*BESLog::TheLog()) << "    adding " << OPENDAP_CLASS_NAME << " request handler" << endl ;
00022     BESRequestHandlerList::TheList()->add_handler( OPENDAP_CLASS_NAME, new OPENDAP_CLASSRequestHandler( OPENDAP_CLASS_NAME ) ) ;
00023 
00024     return true ;
00025 }
00026 
00027 static bool
00028 OPENDAP_CLASSTerm(void)
00029 {
00030     if( BESLog::TheLog()->is_verbose() )
00031         (*BESLog::TheLog()) << "Removing OPENDAP_CLASS Handlers" << endl;
00032     BESRequestHandler *rh = BESRequestHandlerList::TheList()->remove_handler( OPENDAP_CLASS_NAME ) ;
00033     if( rh ) delete rh ;
00034     return true ;
00035 }
00036 
00037 FUNINITQUIT( OPENDAP_CLASSInit, OPENDAP_CLASSTerm, 3 ) ;
00038 

Generated on Wed Aug 29 02:59:01 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.5.2