CMS 3D CMS Logo

Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends

evf::ModuleWebRegistry Class Reference

#include <ModuleWebRegistry.h>

List of all members.

Public Member Functions

bool checkWeb (const std::string &)
void invoke (xgi::Input *, xgi::Output *, const std::string &)
 ModuleWebRegistry (const edm::ParameterSet &)
void publish (xdata::InfoSpace *)
void publishForkInfo (std::string name, moduleweb::ForkInfoObj *forkInfoObj)
void publishToXmas (xdata::InfoSpace *)
void registerWeb (std::string &name, ModuleWeb *cl)

Private Types

typedef std::map< std::string,
ModuleWeb * > 
dct
typedef dct::iterator idct

Private Member Functions

void clear ()
void closeBackDoor (const std::string &)
void openBackDoor (const std::string &, unsigned int timeout_sec=0, bool *started=0)

Private Attributes

dct clm_

Friends

class FWEPWrapper

Detailed Description

Definition at line 29 of file ModuleWebRegistry.h.


Member Typedef Documentation

typedef std::map<std::string, ModuleWeb*> evf::ModuleWebRegistry::dct [private]

Definition at line 47 of file ModuleWebRegistry.h.

typedef dct::iterator evf::ModuleWebRegistry::idct [private]

Definition at line 48 of file ModuleWebRegistry.h.


Constructor & Destructor Documentation

evf::ModuleWebRegistry::ModuleWebRegistry ( const edm::ParameterSet ps)

Definition at line 7 of file ModuleWebRegistry.cc.

                                                             {
}

Member Function Documentation

bool evf::ModuleWebRegistry::checkWeb ( const std::string &  name)

Definition at line 12 of file ModuleWebRegistry.cc.

References clm_.

Referenced by evf::FWEPWrapper::taskWebPage().

{return clm_.find(name) != clm_.end();}
void evf::ModuleWebRegistry::clear ( void  ) [private]

Definition at line 89 of file ModuleWebRegistry.cc.

References clm_.

Referenced by evf::FWEPWrapper::init(), and evf::FWEPWrapper::stopAndHalt().

{clm_.clear();}
void evf::ModuleWebRegistry::closeBackDoor ( const std::string &  name) [private]

Definition at line 44 of file ModuleWebRegistry.cc.

References clm_, gather_cfg::cout, and i.

Referenced by evf::FWEPWrapper::getTriggerReport().

{
  idct i = clm_.find(name);
  if(i != clm_.end())
    {
      try{
        (*i).second->closeBackDoor();
      }
      catch(...)
        {
          std::cout << "exception caught when calling close backdoor for " << name << std::endl;
        }
    }
}
void evf::ModuleWebRegistry::invoke ( xgi::Input *  in,
xgi::Output *  out,
const std::string &  name 
)

Definition at line 14 of file ModuleWebRegistry.cc.

References clm_, gather_cfg::cout, and i.

{
  idct i = clm_.find(name);
  if(i != clm_.end())
    {
      try{
        (*i).second->defaultWebPage(in,out);
      }
      catch(...)
        {
          std::cout << "exception caught when calling moduleweb page for " << name << std::endl;
        }
    }
}
void evf::ModuleWebRegistry::openBackDoor ( const std::string &  name,
unsigned int  timeout_sec = 0,
bool *  started = 0 
) [private]

Definition at line 29 of file ModuleWebRegistry.cc.

References clm_, gather_cfg::cout, and i.

Referenced by evf::FWEPWrapper::getTriggerReport().

{
  idct i = clm_.find(name);
  if(i != clm_.end())
    {
      try{
        (*i).second->openBackDoor(timeout_sec,started);
      }
      catch(...)
        {
          std::cout << "exception caught when calling open backdoor for " << name << std::endl;
        }
    }
}
void evf::ModuleWebRegistry::publish ( xdata::InfoSpace *  is)

Definition at line 69 of file ModuleWebRegistry.cc.

References clm_, and i.

Referenced by evf::FWEPWrapper::init().

{
    idct i = clm_.begin();
    while (i != clm_.end())
      {
        (*i).second->publish(is);
        i++;
      }

}
void evf::ModuleWebRegistry::publishForkInfo ( std::string  name,
moduleweb::ForkInfoObj forkInfoObj 
)

Definition at line 59 of file ModuleWebRegistry.cc.

References clm_, and i.

Referenced by evf::FUEventProcessor::enableForkInEDM().

{
    idct i = clm_.find(name);
    if(i != clm_.end())
    {
        (*i).second->publishForkInfo(forkInfoObj);
    }

}
void evf::ModuleWebRegistry::publishToXmas ( xdata::InfoSpace *  is)

Definition at line 79 of file ModuleWebRegistry.cc.

References clm_, and i.

Referenced by evf::FWEPWrapper::init().

{
    idct i = clm_.begin();
    while (i != clm_.end())
      {
        (*i).second->publishToXmas(is);
        i++;
      }

}
void evf::ModuleWebRegistry::registerWeb ( std::string &  name,
ModuleWeb cl 
) [inline]

Definition at line 34 of file ModuleWebRegistry.h.

References clm_.

        {
          clm_.insert(std::pair<std::string, ModuleWeb*>(name,cl));
          // CAN ONLY BIND TO xdaq::Application methods...
          //      xgi::bind(cl, func, name);  
        } 

Friends And Related Function Documentation

friend class FWEPWrapper [friend]

Definition at line 53 of file ModuleWebRegistry.h.


Member Data Documentation