CMS 3D CMS Logo

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

#include <ModuleWeb.h>

Inheritance diagram for evf::ModuleWeb:
EcalBarrelMonitorXdaqClient EcalEndcapMonitorXdaqClient edm::DaqSource evf::ExceptionGenerator SiPixelEDAClient SiStripAnalyser

Public Member Functions

virtual void defaultWebPage (xgi::Input *in, xgi::Output *out)
 
 ModuleWeb (const std::string &)
 
virtual void publish (xdata::InfoSpace *)=0
 
virtual void publishToXmas (xdata::InfoSpace *)
 
virtual ~ModuleWeb ()
 

Protected Attributes

std::string moduleName_
 

Private Member Functions

virtual void closeBackDoor ()
 
virtual void openBackDoor (unsigned int timeout_sec=0, bool *started=0)
 
virtual void publishForkInfo (moduleweb::ForkInfoObj *forkInfoObj)
 

Friends

class ModuleWebRegistry
 

Detailed Description

Definition at line 54 of file ModuleWeb.h.

Constructor & Destructor Documentation

evf::ModuleWeb::ModuleWeb ( const std::string &  moduleName)

Definition at line 15 of file ModuleWeb.cc.

References moduleName_.

15  : moduleName_(moduleName)
16 {
18  edm::Service<ModuleWebRegistry>()->registerWeb(moduleName_, this);
19 }
std::string moduleName_
Definition: ModuleWeb.h:61
virtual evf::ModuleWeb::~ModuleWeb ( )
inlinevirtual

Definition at line 58 of file ModuleWeb.h.

58 {}

Member Function Documentation

virtual void evf::ModuleWeb::closeBackDoor ( )
inlineprivatevirtual

Reimplemented in edm::DaqSource.

Definition at line 66 of file ModuleWeb.h.

66 {};
void evf::ModuleWeb::defaultWebPage ( xgi::Input in,
xgi::Output out 
)
virtual

Reimplemented in edm::DaqSource, EcalBarrelMonitorXdaqClient, EcalEndcapMonitorXdaqClient, SiStripAnalyser, evf::ExceptionGenerator, and SiPixelEDAClient.

Definition at line 27 of file ModuleWeb.cc.

References alignCSCRings::e, cppFunctionSkipper::exception, moduleName_, getHLTPrescaleColumns::path, and AlCaHLTBitMon_QueryRunRegistry::string.

28 {
29  using std::endl;
31  std::string urn;
32  std::string mname;
33  try
34  {
35  cgicc::Cgicc cgi(in);
36  if ( xgi::Utils::hasFormElement(cgi,"module") )
37  mname = xgi::Utils::getFormElement(cgi, "module")->getValue();
38  cgicc::CgiEnvironment cgie(in);
39  urn = cgie.getReferrer();
40  path = cgie.getPathInfo() + "?" + cgie.getQueryString();
41 
42  }
43  catch (const std::exception & e)
44  {
45  // don't care if it did not work
46  }
47 
48 
49  *out << "<html>" << endl;
50  *out << "<head>" << endl;
51 
52  *out << "<STYLE type=\"text/css\"> #T1 {border-width: 2px; border: solid blue; text-align: center} </STYLE> "
53  << endl;
54  *out << "<link type=\"text/css\" rel=\"stylesheet\"";
55  *out << " href=\"/" << urn
56  << "/styles.css\"/>" << endl;
57 
58  *out << "<title>" << moduleName_
59  << " MAIN</title>" << endl;
60 
61  *out << "</head>" << endl;
62  *out << "<body onload=\"loadXMLDoc()\">" << endl;
63  *out << "<table border=\"0\" width=\"100%\">" << endl;
64  *out << "<tr>" << endl;
65  *out << " <td align=\"left\">" << endl;
66  *out << " <img" << endl;
67  *out << " align=\"middle\"" << endl;
68  *out << " src=\"/evf/images/epicon.jpg\"" << endl;
69  *out << " alt=\"main\"" << endl;
70  *out << " width=\"64\"" << endl;
71  *out << " height=\"64\"" << endl;
72  *out << " border=\"\"/>" << endl;
73  *out << " <b>" << endl;
74  *out << "<title>" << moduleName_
75  << " MAIN</title>" << endl;
76  *out << " </b>" << endl;
77  *out << " </td>" << endl;
78  *out << " <td width=\"32\">" << endl;
79  *out << " <a href=\"/urn:xdaq-application:lid=3\">" << endl;
80  *out << " <img" << endl;
81  *out << " align=\"middle\"" << endl;
82  *out << " src=\"/hyperdaq/images/HyperDAQ.jpg\"" << endl;
83  *out << " alt=\"HyperDAQ\"" << endl;
84  *out << " width=\"32\"" << endl;
85  *out << " height=\"32\"" << endl;
86  *out << " border=\"\"/>" << endl;
87  *out << " </a>" << endl;
88  *out << " </td>" << endl;
89  *out << " <td width=\"32\">" << endl;
90  *out << " </td>" << endl;
91  *out << " <td width=\"32\">" << endl;
92  *out << " <a href=\"/" << urn
93  << "\">" << endl;
94  *out << " <img" << endl;
95  *out << " align=\"middle\"" << endl;
96  *out << " src=\"/evf/images/epicon.jpg\"" << endl;
97  *out << " alt=\"main\"" << endl;
98  *out << " width=\"32\"" << endl;
99  *out << " height=\"32\"" << endl;
100  *out << " border=\"\"/>" << endl;
101  *out << " </a>" << endl;
102  *out << " </td>" << endl;
103  *out << "</tr>" << endl;
104  *out << "</table>" << endl;
105 
106  *out << "<hr/>" << endl;
107 
108  *out << "</body>" << endl;
109  *out << "</html>" << endl;
110 }
std::string moduleName_
Definition: ModuleWeb.h:61
tuple out
Definition: dbtoconf.py:99
virtual void evf::ModuleWeb::openBackDoor ( unsigned int  timeout_sec = 0,
bool *  started = 0 
)
inlineprivatevirtual

Reimplemented in edm::DaqSource.

Definition at line 65 of file ModuleWeb.h.

65 {};
virtual void evf::ModuleWeb::publish ( xdata::InfoSpace *  )
pure virtual
void evf::ModuleWeb::publishForkInfo ( moduleweb::ForkInfoObj forkInfoObj)
privatevirtual

Reimplemented in edm::DaqSource, and evf::ExceptionGenerator.

Definition at line 21 of file ModuleWeb.cc.

22 {
23  return;
24 }
virtual void evf::ModuleWeb::publishToXmas ( xdata::InfoSpace *  )
inlinevirtual

Reimplemented in edm::DaqSource.

Definition at line 61 of file ModuleWeb.h.

61 {};

Friends And Related Function Documentation

friend class ModuleWebRegistry
friend

Definition at line 68 of file ModuleWeb.h.

Member Data Documentation

std::string evf::ModuleWeb::moduleName_
protected