CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Select.h
Go to the documentation of this file.
1 #ifndef _DQM_TrackerCommon_Select_h_
2 #define _DQM_TrackerCommon_Select_h_
3 
10 #include "xgi/Method.h"
11 #include "cgicc/HTMLClasses.h"
13 
14 class Select : public WebElement
15 {
16  private:
17 
18  std::string name; // the title over the menu
19  std::string requestID; // the string connected to the callback function
20 
21  std::vector<std::string> options_v;
22 
23  public:
24 
25  Select(std::string the_url, std::string top, std::string left,
26  std::string the_requestID, std::string the_name)
27  : WebElement(the_url, top, left)
28  {
29  name = the_name;
30  requestID = the_requestID;
31  }
32 
34  {
35  }
36 
37  void setOptionsVector(std::vector<std::string> the_options_v)
38  {
39  options_v = the_options_v;
40  }
41 
42  void printHTML(xgi::Output * out);
43 };
44 
45 
46 #endif
Select(std::string the_url, std::string top, std::string left, std::string the_requestID, std::string the_name)
Definition: Select.h:25
std::string name
Definition: Select.h:18
std::string requestID
Definition: Select.h:19
void setOptionsVector(std::vector< std::string > the_options_v)
Definition: Select.h:37
void printHTML(xgi::Output *out)
Definition: Select.cc:4
std::vector< std::string > options_v
Definition: Select.h:21
tuple out
Definition: dbtoconf.py:99
Definition: Select.h:14
#define Output(cl)
Definition: vmac.h:193
~Select()
Definition: Select.h:33