CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
WebInterface.h
Go to the documentation of this file.
1 #ifndef _DQM_TrackerCommon_WebInterface_h_
2 #define _DQM_TrackerCommon_WebInterface_h_
3 
4 #include "xgi/Method.h"
5 #include "xdata/UnsignedLong.h"
6 #include "cgicc/HTMLClasses.h"
7 
8 #include "xdaq/Application.h"
9 #include "xgi/Utils.h"
10 #include "xgi/Method.h"
11 
15 
16 #include <string>
17 #include <map>
18 
19 class DQMStore;
20 
22 {
23 
24  private:
25 
26  std::string exeURL;
27  std::string appURL;
28  std::multimap<std::string, std::string> conf_map;
29 
31 
32  protected:
33 
36 
37  public:
38 
39  WebInterface(std::string _exeURL, std::string _appURL);
40  virtual ~WebInterface()
41  {
42  }
43 
44  std::string getContextURL() { return exeURL; }
45  std::string getApplicationURL() { return appURL; }
46 
49 
51  {
52  };
53 
55  virtual void Default(xgi::Input * in, xgi::Output * out ) throw (xgi::exception::Exception);
56 
59 
62 // void Subscribe(xgi::Input * in, xgi::Output * out) throw (xgi::exception::Exception);
63 // void Unsubscribe(xgi::Input * in, xgi::Output * out) throw (xgi::exception::Exception);
64 
66  void printNavigatorXML(std::string directory, xgi::Output * out);
67 
70  void printContentViewerXML(std::string current, xgi::Output * out);
71 
74 
77  void printMap(ME_MAP view_map, std::string id);
78 
80  void add(std::string, WebElement *);
81 
83  void sendMessage(std::string the_title, std::string the_text, MessageType the_type);
84 
85  std::string get_from_multimap(std::multimap<std::string, std::string> &mymap, std::string key);
86 
87 };
88 
89 #endif
MessageType
virtual ~WebInterface()
Definition: WebInterface.h:40
void printContentViewerXML(std::string current, xgi::Output *out)
#define Input(cl)
Definition: vmac.h:189
std::string getApplicationURL()
Definition: WebInterface.h:45
virtual void Default(xgi::Input *in, xgi::Output *out)
Answers requests by sending the webpage of the application.
Definition: WebInterface.cc:41
void Open(xgi::Input *in, xgi::Output *out)
Answer navigator requests.
Definition: WebInterface.cc:83
virtual void handleCustomRequest(xgi::Input *in, xgi::Output *out)
Definition: WebInterface.h:50
void sendMessage(std::string the_title, std::string the_text, MessageType the_type)
Adds messages to the message dispatcher.
void DrawGif(xgi::Input *in, xgi::Output *out)
Answers viewer requests.
WebPage * page_p
Definition: WebInterface.h:35
std::string getContextURL()
Definition: WebInterface.h:44
WebInterface(std::string _exeURL, std::string _appURL)
Definition: WebInterface.cc:9
tuple out
Definition: dbtoconf.py:99
std::string appURL
Definition: WebInterface.h:27
void printMap(ME_MAP view_map, std::string id)
Definition: ME_MAP.h:11
DQMStore * dqmStore_
Definition: WebInterface.h:34
std::string get_from_multimap(std::multimap< std::string, std::string > &mymap, std::string key)
Definition: WebInterface.cc:21
void handleStandardRequest(xgi::Input *in, xgi::Output *out)
Definition: WebInterface.cc:55
std::multimap< std::string, std::string > conf_map
Definition: WebInterface.h:28
void printMessagesXML(xgi::Output *out)
Answers Messages requests.
list key
Definition: combine.py:13
#define Output(cl)
Definition: vmac.h:193
void Configure(xgi::Input *in, xgi::Output *out)
Answers connection configuration requests.
Definition: WebInterface.cc:72
std::string exeURL
Definition: WebInterface.h:26
void add(std::string, WebElement *)
Adds widgets to the page.
Definition: WebInterface.cc:50
void printNavigatorXML(std::string directory, xgi::Output *out)
Outputs the subdirectories and files of &quot;directory&quot;. Called by any of the above three.
void handleRequest(xgi::Input *in, xgi::Output *out)
Definition: WebInterface.cc:32
void ContentsOpen(xgi::Input *in, xgi::Output *out)
Answers ContentViewer requests.
MessageDispatcher msg_dispatcher
Definition: WebInterface.h:30