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 | Friends
evf::ServiceWeb Class Referenceabstract

#include <ServiceWeb.h>

Inheritance diagram for evf::ServiceWeb:
evf::Stepper FUShmDQMOutputService

Public Member Functions

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

Protected Attributes

std::string serviceName_
 

Friends

class ServiceWebRegistry
 

Detailed Description

Definition at line 16 of file ServiceWeb.h.

Constructor & Destructor Documentation

evf::ServiceWeb::ServiceWeb ( const std::string &  serviceName)

Definition at line 14 of file ServiceWeb.cc.

References serviceName_.

15 {
17  edm::Service<ServiceWebRegistry>()->registerWeb(serviceName_, this);
18 }
static const std::string serviceName
std::string serviceName_
Definition: ServiceWeb.h:26
virtual evf::ServiceWeb::~ServiceWeb ( )
inlinevirtual

Definition at line 20 of file ServiceWeb.h.

20 {}

Member Function Documentation

void evf::ServiceWeb::defaultWebPage ( xgi::Input in,
xgi::Output out 
)
virtual

Reimplemented in FUShmDQMOutputService, and evf::Stepper.

Definition at line 20 of file ServiceWeb.cc.

References alignCSCRings::e, cppFunctionSkipper::exception, scaleCards::path, and serviceName_.

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

Definition at line 24 of file ServiceWeb.h.

References serviceName_.

Referenced by Vispa.Views.PropertyView.Property::valueChanged().

24 { return serviceName_;}
std::string serviceName_
Definition: ServiceWeb.h:26
virtual void evf::ServiceWeb::publish ( xdata::InfoSpace *  )
pure virtual

Implemented in FUShmDQMOutputService, and evf::Stepper.

virtual void evf::ServiceWeb::publishToXmas ( xdata::InfoSpace *  )
inlinevirtual

Definition at line 23 of file ServiceWeb.h.

23 {};

Friends And Related Function Documentation

friend class ServiceWebRegistry
friend

Definition at line 28 of file ServiceWeb.h.

Member Data Documentation

std::string evf::ServiceWeb::serviceName_
protected

Definition at line 26 of file ServiceWeb.h.

Referenced by defaultWebPage(), evf::Stepper::defaultWebPage(), name(), and ServiceWeb().