CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/DQM/TrackerCommon/interface/Select.h

Go to the documentation of this file.
00001 #ifndef _DQM_TrackerCommon_Select_h_
00002 #define _DQM_TrackerCommon_Select_h_
00003 
00010 #include "xgi/Method.h"
00011 #include "cgicc/HTMLClasses.h"
00012 #include "DQM/TrackerCommon/interface/WebElement.h"
00013 
00014 class Select : public WebElement
00015 {
00016  private:
00017 
00018   std::string name;      // the title over the menu
00019   std::string requestID; // the string connected to the callback function
00020 
00021   std::vector<std::string> options_v;
00022 
00023  public:
00024 
00025   Select(std::string the_url, std::string top, std::string left,
00026          std::string the_requestID, std::string the_name)
00027     : WebElement(the_url, top, left)
00028     {
00029       name = the_name;
00030       requestID = the_requestID;
00031     }
00032 
00033   ~Select()
00034     {
00035     }
00036 
00037   void setOptionsVector(std::vector<std::string> the_options_v)
00038     {
00039       options_v = the_options_v;
00040     }
00041 
00042   void printHTML(xgi::Output * out);
00043 };
00044 
00045 
00046 #endif