#include <WebInterface.h>
Public Member Functions | |
void | add (std::string, WebElement *) |
Adds widgets to the page. More... | |
void | Configure (xgi::Input *in, xgi::Output *out) throw (xgi::exception::Exception) |
Answers connection configuration requests. More... | |
void | ContentsOpen (xgi::Input *in, xgi::Output *out) throw (xgi::exception::Exception) |
Answers ContentViewer requests. More... | |
virtual void | Default (xgi::Input *in, xgi::Output *out) throw (xgi::exception::Exception) |
Answers requests by sending the webpage of the application. More... | |
void | DrawGif (xgi::Input *in, xgi::Output *out) throw (xgi::exception::Exception) |
Answers viewer requests. More... | |
std::string | get_from_multimap (std::multimap< std::string, std::string > &mymap, std::string key) |
std::string | getApplicationURL () |
std::string | getContextURL () |
virtual void | handleCustomRequest (xgi::Input *in, xgi::Output *out) throw (xgi::exception::Exception) |
void | handleRequest (xgi::Input *in, xgi::Output *out) throw (xgi::exception::Exception) |
void | handleStandardRequest (xgi::Input *in, xgi::Output *out) throw (xgi::exception::Exception) |
void | Open (xgi::Input *in, xgi::Output *out) throw (xgi::exception::Exception) |
Answer navigator requests. More... | |
void | printContentViewerXML (std::string current, xgi::Output *out) |
void | printMap (ME_MAP view_map, std::string id) |
void | printMessagesXML (xgi::Output *out) |
Answers Messages requests. More... | |
void | printNavigatorXML (std::string directory, xgi::Output *out) |
Outputs the subdirectories and files of "directory". Called by any of the above three. More... | |
void | sendMessage (std::string the_title, std::string the_text, MessageType the_type) |
Adds messages to the message dispatcher. More... | |
WebInterface (std::string _exeURL, std::string _appURL) | |
virtual | ~WebInterface () |
Protected Attributes | |
DQMStore * | dqmStore_ |
WebPage * | page_p |
Private Attributes | |
std::string | appURL |
std::multimap< std::string, std::string > | conf_map |
std::string | exeURL |
MessageDispatcher | msg_dispatcher |
Definition at line 21 of file WebInterface.h.
WebInterface::WebInterface | ( | std::string | _exeURL, |
std::string | _appURL | ||
) |
Definition at line 9 of file WebInterface.cc.
References appURL, gather_cfg::cout, dqmStore_, exeURL, and cppFunctionSkipper::operator.
|
inlinevirtual |
Definition at line 40 of file WebInterface.h.
void WebInterface::add | ( | std::string | name, |
WebElement * | element_p | ||
) |
Adds widgets to the page.
Definition at line 50 of file WebInterface.cc.
References WebPage::add(), and page_p.
void WebInterface::Configure | ( | xgi::Input * | in, |
xgi::Output * | out | ||
) | |||
throw | ( | xgi::exception::Exception | |
) |
Answers connection configuration requests.
Definition at line 72 of file WebInterface.cc.
References get_from_multimap(), query::host, recoMuon::in, query::port, CgiReader::read_form(), and matplotRender::reader.
void WebInterface::ContentsOpen | ( | xgi::Input * | in, |
xgi::Output * | out | ||
) | |||
throw | ( | xgi::exception::Exception | |
) |
Answers ContentViewer requests.
Definition at line 190 of file WebInterface.cc.
References gather_cfg::cout, cond::rpcobimon::current, get_from_multimap(), recoMuon::in, dbtoconf::out, CgiReader::read_form(), and matplotRender::reader.
|
virtual |
Answers requests by sending the webpage of the application.
Definition at line 41 of file WebInterface.cc.
References dbtoconf::out, CgiWriter::output_finish(), CgiWriter::output_head(), and CgiWriter::output_preamble().
void WebInterface::DrawGif | ( | xgi::Input * | in, |
xgi::Output * | out | ||
) | |||
throw | ( | xgi::exception::Exception | |
) |
Answers viewer requests.
Definition at line 273 of file WebInterface.cc.
References ME_MAP::add(), gather_cfg::cout, cond::rpcobimon::current, get_from_multimap(), ContentReader::give_ME(), recoMuon::in, mergeVDriftHistosByStation::name, dbtoconf::out, CgiReader::read_form(), and pileupCalc::upper.
std::string WebInterface::get_from_multimap | ( | std::multimap< std::string, std::string > & | mymap, |
std::string | key | ||
) |
Definition at line 21 of file WebInterface.cc.
|
inline |
|
inline |
|
inlinevirtual |
Definition at line 50 of file WebInterface.h.
void WebInterface::handleRequest | ( | xgi::Input * | in, |
xgi::Output * | out | ||
) | |||
throw | ( | xgi::exception::Exception | |
) |
Definition at line 32 of file WebInterface.cc.
References recoMuon::in, and dbtoconf::out.
void WebInterface::handleStandardRequest | ( | xgi::Input * | in, |
xgi::Output * | out | ||
) | |||
throw | ( | xgi::exception::Exception | |
) |
Definition at line 55 of file WebInterface.cc.
References get_from_multimap(), recoMuon::in, dbtoconf::out, CgiReader::read_form(), and matplotRender::reader.
void WebInterface::Open | ( | xgi::Input * | in, |
xgi::Output * | out | ||
) | |||
throw | ( | xgi::exception::Exception | |
) |
Answer navigator requests.
Definition at line 83 of file WebInterface.cc.
References gather_cfg::cout, cond::rpcobimon::current, get_from_multimap(), recoMuon::in, dbtoconf::out, CgiReader::read_form(), and matplotRender::reader.
void WebInterface::printContentViewerXML | ( | std::string | current, |
xgi::Output * | out | ||
) |
Definition at line 239 of file WebInterface.cc.
References gather_cfg::cout, dqmStore_, ContentReader::give_files(), ContentReader::give_subdirs(), and matplotRender::reader.
void WebInterface::printMap | ( | ME_MAP | view_map, |
std::string | id | ||
) |
Definition at line 318 of file WebInterface.cc.
References ME_MAP::print().
void WebInterface::printMessagesXML | ( | xgi::Output * | out | ) |
Answers Messages requests.
void WebInterface::printNavigatorXML | ( | std::string | directory, |
xgi::Output * | out | ||
) |
Outputs the subdirectories and files of "directory". Called by any of the above three.
Definition at line 133 of file WebInterface.cc.
References gather_cfg::cout, dqmStore_, ContentReader::give_files(), ContentReader::give_subdirs(), and matplotRender::reader.
void WebInterface::sendMessage | ( | std::string | the_title, |
std::string | the_text, | ||
MessageType | the_type | ||
) |
Adds messages to the message dispatcher.
Definition at line 323 of file WebInterface.cc.
References MessageDispatcher::add(), lumiQueryAPI::msg, and msg_dispatcher.
|
private |
Definition at line 27 of file WebInterface.h.
Referenced by getApplicationURL(), and WebInterface().
|
private |
Definition at line 28 of file WebInterface.h.
|
protected |
Definition at line 34 of file WebInterface.h.
Referenced by printContentViewerXML(), printNavigatorXML(), and WebInterface().
|
private |
Definition at line 26 of file WebInterface.h.
Referenced by getContextURL(), and WebInterface().
|
private |
Definition at line 30 of file WebInterface.h.
Referenced by sendMessage().
|
protected |
Definition at line 35 of file WebInterface.h.
Referenced by add().