CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ModuleWebRegistry.cc
Go to the documentation of this file.
3 
4 #include <iostream>
5 
6 namespace evf{
8 }
9 
10 
11 
12 bool ModuleWebRegistry::checkWeb(const std::string &name){return clm_.find(name) != clm_.end();}
13 
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 }
28 
29 void ModuleWebRegistry::openBackDoor(const std::string &name, unsigned int timeout_sec, bool * started)
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 }
43 
44 void ModuleWebRegistry::closeBackDoor(const std::string &name)
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 }
58 
60 {
61  idct i = clm_.find(name);
62  if(i != clm_.end())
63  {
64  (*i).second->publishForkInfo(forkInfoObj);
65  }
66 
67 }
68 
69 void ModuleWebRegistry::publish(xdata::InfoSpace *is)
70 {
71  idct i = clm_.begin();
72  while (i != clm_.end())
73  {
74  (*i).second->publish(is);
75  i++;
76  }
77 
78 }
79 void ModuleWebRegistry::publishToXmas(xdata::InfoSpace *is)
80 {
81  idct i = clm_.begin();
82  while (i != clm_.end())
83  {
84  (*i).second->publishToXmas(is);
85  i++;
86  }
87 
88 }
90 
91 
92 } //end namespace evf
int i
Definition: DBlmapReader.cc:9
#define Input(cl)
Definition: vmac.h:189
bool checkWeb(const std::string &)
void publishForkInfo(std::string name, moduleweb::ForkInfoObj *forkInfoObj)
void openBackDoor(const std::string &, unsigned int timeout_sec=0, bool *started=0)
void publish(xdata::InfoSpace *)
tuple out
Definition: dbtoconf.py:99
ModuleWebRegistry(const edm::ParameterSet &)
void closeBackDoor(const std::string &)
#define Output(cl)
Definition: vmac.h:193
tuple cout
Definition: gather_cfg.py:121
void invoke(xgi::Input *, xgi::Output *, const std::string &)
void publishToXmas(xdata::InfoSpace *)