CMS 3D CMS Logo

SiPixelHistoricInfoWebInterface Class Reference

#include <DQM/SiPixelHistoricInfoClient/interface/SiPixelHistoricInfoWebInterface.h>

Inheritance diagram for SiPixelHistoricInfoWebInterface:

WebInterface

List of all members.

Public Member Functions

bool getSaveToFile () const
bool getWriteToDB () const
void handleCustomRequest (xgi::Input *in, xgi::Output *out) throw (xgi::exception::Exception)
void handleEDARequest (xgi::Input *in, xgi::Output *out)
void setSaveToFile (bool flag)
void setWriteToDB (bool flag)
 SiPixelHistoricInfoWebInterface (std::string theContextURL, std::string theApplicationURL, DQMOldReceiver **_mui_p)
 ~SiPixelHistoricInfoWebInterface ()

Private Attributes

std::multimap< std::string,
std::string > 
request_multimap
bool savetoFile_
bool writetoDB_


Detailed Description

Definition at line 8 of file SiPixelHistoricInfoWebInterface.h.


Constructor & Destructor Documentation

SiPixelHistoricInfoWebInterface::SiPixelHistoricInfoWebInterface ( std::string  theContextURL,
std::string  theApplicationURL,
DQMOldReceiver **  _mui_p 
)

Definition at line 14 of file SiPixelHistoricInfoWebInterface.cc.

References WebPage::add(), WebInterface::getApplicationURL(), and WebInterface::page_p.

00017                                : WebInterface(theContextURL, theApplicationURL, _mui_p) {
00018   ContentViewer* cv = new ContentViewer(getApplicationURL(),"20px","10px"); 
00019   Button* sb = new Button(getApplicationURL(),"300px","10px","SaveToFile","Save To File");
00020   Button* wb = new Button(getApplicationURL(),"300px","30px","WriteToDB","Write To DB");
00021   GifDisplay* gd = new GifDisplay(getApplicationURL(),"20px","200px","500px","700px","Gif Display");
00022   HTMLLink *hl = new HTMLLink(getApplicationURL(),"50px","50px","SiPixelHistoricInfoWebInterface",
00023                                                                 "/temporary/Online.html");
00024   page_p = new WebPage(getApplicationURL());
00025   page_p->add("cntViewer", cv);
00026   page_p->add("svButton", sb);
00027   page_p->add("wrtButton", wb);
00028   page_p->add("gifDisplay", gd);
00029   page_p->add("htmlLink", hl);
00030 }

SiPixelHistoricInfoWebInterface::~SiPixelHistoricInfoWebInterface (  ) 

Definition at line 33 of file SiPixelHistoricInfoWebInterface.cc.

00033 {}


Member Function Documentation

bool SiPixelHistoricInfoWebInterface::getSaveToFile (  )  const [inline]

Definition at line 18 of file SiPixelHistoricInfoWebInterface.h.

References savetoFile_.

00018 { return savetoFile_; };

bool SiPixelHistoricInfoWebInterface::getWriteToDB (  )  const [inline]

Definition at line 21 of file SiPixelHistoricInfoWebInterface.h.

References writetoDB_.

00021 { return writetoDB_; };

void SiPixelHistoricInfoWebInterface::handleCustomRequest ( xgi::Input *  in,
xgi::Output *  out 
) throw (xgi::exception::Exception) [virtual]

Reimplemented from WebInterface.

Definition at line 36 of file SiPixelHistoricInfoWebInterface.cc.

References WebInterface::get_from_multimap(), in, CgiReader::read_form(), request_multimap, savetoFile_, and writetoDB_.

00037                                                                     {
00038   CgiReader reader(in);
00039   reader.read_form(request_multimap);
00040   std::string requestID = get_from_multimap(request_multimap,"RequestID");
00041   if (requestID=="SaveToFile") savetoFile_ = true;  
00042   if (requestID=="WriteToDB") writetoDB_ = true;  
00043 }

void SiPixelHistoricInfoWebInterface::handleEDARequest ( xgi::Input *  in,
xgi::Output *  out 
)

Definition at line 46 of file SiPixelHistoricInfoWebInterface.cc.

References WebInterface::get_from_multimap(), CgiReader::read_form(), request_multimap, savetoFile_, and writetoDB_.

00046                                                                                    {
00047   CgiReader reader(in);
00048   reader.read_form(request_multimap);
00049   std::string requestID = get_from_multimap(request_multimap,"RequestID");
00050   if (requestID=="SaveToFile") savetoFile_ = true;  
00051   if (requestID=="WriteToDB") writetoDB_ = true;  
00052 }

void SiPixelHistoricInfoWebInterface::setSaveToFile ( bool  flag  )  [inline]

Definition at line 19 of file SiPixelHistoricInfoWebInterface.h.

References savetoFile_.

00019 { savetoFile_ = flag; };

void SiPixelHistoricInfoWebInterface::setWriteToDB ( bool  flag  )  [inline]

Definition at line 22 of file SiPixelHistoricInfoWebInterface.h.

References writetoDB_.

00022 { writetoDB_ = flag; };


Member Data Documentation

std::multimap<std::string, std::string> SiPixelHistoricInfoWebInterface::request_multimap [private]

Definition at line 27 of file SiPixelHistoricInfoWebInterface.h.

Referenced by handleCustomRequest(), and handleEDARequest().

bool SiPixelHistoricInfoWebInterface::savetoFile_ [private]

Definition at line 22 of file SiPixelHistoricInfoWebInterface.h.

Referenced by getSaveToFile(), handleCustomRequest(), handleEDARequest(), and setSaveToFile().

bool SiPixelHistoricInfoWebInterface::writetoDB_ [private]

Definition at line 26 of file SiPixelHistoricInfoWebInterface.h.

Referenced by getWriteToDB(), handleCustomRequest(), handleEDARequest(), and setWriteToDB().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:00 2009 for CMSSW by  doxygen 1.5.4