CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
evf::ModuleWebRegistry Class Reference

#include <ModuleWebRegistry.h>

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.

7  {
8 }

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().

void evf::ModuleWebRegistry::clear ( void  )
private
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().

45 {
46  idct i = clm_.find(name);
47  if(i != clm_.end())
48  {
49  try{
50  (*i).second->closeBackDoor();
51  }
52  catch(...)
53  {
54  std::cout << "exception caught when calling close backdoor for " << name << std::endl;
55  }
56  }
57 }
int i
Definition: DBlmapReader.cc:9
tuple cout
Definition: gather_cfg.py:121
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.

15 {
16  idct i = clm_.find(name);
17  if(i != clm_.end())
18  {
19  try{
20  (*i).second->defaultWebPage(in,out);
21  }
22  catch(...)
23  {
24  std::cout << "exception caught when calling moduleweb page for " << name << std::endl;
25  }
26  }
27 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
tuple cout
Definition: gather_cfg.py:121
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().

30 {
31  idct i = clm_.find(name);
32  if(i != clm_.end())
33  {
34  try{
35  (*i).second->openBackDoor(timeout_sec,started);
36  }
37  catch(...)
38  {
39  std::cout << "exception caught when calling open backdoor for " << name << std::endl;
40  }
41  }
42 }
int i
Definition: DBlmapReader.cc:9
tuple cout
Definition: gather_cfg.py:121
void evf::ModuleWebRegistry::publish ( xdata::InfoSpace *  is)

Definition at line 69 of file ModuleWebRegistry.cc.

References clm_, and i.

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

70 {
71  idct i = clm_.begin();
72  while (i != clm_.end())
73  {
74  (*i).second->publish(is);
75  i++;
76  }
77 
78 }
int i
Definition: DBlmapReader.cc:9
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().

60 {
61  idct i = clm_.find(name);
62  if(i != clm_.end())
63  {
64  (*i).second->publishForkInfo(forkInfoObj);
65  }
66 
67 }
int i
Definition: DBlmapReader.cc:9
void evf::ModuleWebRegistry::publishToXmas ( xdata::InfoSpace *  is)

Definition at line 79 of file ModuleWebRegistry.cc.

References clm_, and i.

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

80 {
81  idct i = clm_.begin();
82  while (i != clm_.end())
83  {
84  (*i).second->publishToXmas(is);
85  i++;
86  }
87 
88 }
int i
Definition: DBlmapReader.cc:9
void evf::ModuleWebRegistry::registerWeb ( std::string &  name,
ModuleWeb cl 
)
inline

Definition at line 34 of file ModuleWebRegistry.h.

References clm_.

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

Friends And Related Function Documentation

friend class FWEPWrapper
friend

Definition at line 53 of file ModuleWebRegistry.h.

Member Data Documentation

dct evf::ModuleWebRegistry::clm_
private