CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ServiceWebRegistry.cc
Go to the documentation of this file.
3 
4 #include <iostream>
5 
6 namespace evf{
8  std::cout << "Service registry constructor at " << std::hex << (unsigned long) this << std::dec << std::endl;
9 }
10 
11 
12 
13 std::vector<ServiceWeb*> ServiceWebRegistry::getWebs()
14 {
15  std::cout << " service web registry " << std::hex << (unsigned long) this << std::dec
16  << " has " << clm_.size() << " services registered " << std::endl;
17  std::vector<ServiceWeb*> retval;
18  for(idct i = clm_.begin(); i != clm_.end(); i++)
19  {
20  std::cout << "service " << (*i).first << " has web " << std::endl;
21  retval.push_back((*i).second);
22  }
23  return retval;
24 }
25 
26 
28 {
29  idct i = clm_.find(name);
30  if(i != clm_.end())
31  {
32  try{
33  (*i).second->defaultWebPage(in,out);
34  }
35  catch(...)
36  {
37  std::cout << "exception caught when calling serviceweb page for " << name << std::endl;
38  }
39  }
40 }
41 
42 
43 void ServiceWebRegistry::publish(xdata::InfoSpace *is)
44 {
45  idct i = clm_.begin();
46  while (i != clm_.end())
47  {
48  (*i).second->publish(is);
49  i++;
50  }
51 
52 }
53 
55 {
56  std::cout << "Service registry clear for " << std::hex << (unsigned long) this << std::dec << std::endl;
57  clm_.clear();
58 }
59 
60 
61 } //end namespace evf
std::vector< ServiceWeb * > getWebs()
int i
Definition: DBlmapReader.cc:9
#define Input(cl)
Definition: vmac.h:189
ServiceWebRegistry(const edm::ParameterSet &)
void publish(xdata::InfoSpace *)
tuple out
Definition: dbtoconf.py:99
#define Output(cl)
Definition: vmac.h:193
tuple cout
Definition: gather_cfg.py:41
void invoke(xgi::Input *, xgi::Output *, const std::string &)