2 #ifndef CARMA_UI_RTD_WINDOWLIST_H
3 #define CARMA_UI_RTD_WINDOWLIST_H
35 Window(
const std::string& window,
const std::string& program,
36 int integer = 0,
bool guest =
true);
46 Window(
const std::string& window,
const std::string& program,
47 const std::string& string1,
48 int integer = 0,
bool guest =
true);
59 Window(
const std::string& window,
const std::string& program,
60 const std::string& string1,
const std::string& string2,
61 int integer = 0,
bool guest =
true);
73 Window(
const std::string& window,
const std::string& program,
74 const std::string& string1,
const std::string& string2,
75 const std::string& string3,
76 int integer = 0,
bool guest =
true);
89 Window(
const std::string& window,
const std::string& program,
90 const std::string& string1,
const std::string& string2,
91 const std::string& string3,
const std::string& string4,
92 int integer = 0,
bool guest =
true);
103 std::string getWindowName()
const;
109 std::string getProgramName()
const;
115 std::string getString1()
const;
121 std::string getString2()
const;
127 std::string getString3()
const;
133 std::string getString4()
const;
139 std::string getInteger1()
const;
145 bool isControl()
const;
150 const std::string windowName_;
151 const std::string programName_;
152 const std::string string1_;
153 const std::string string2_;
154 const std::string string3_;
155 const std::string string4_;
187 virtual void load() = 0;
190 void add( Window * w );
196 Window*
find(
const std::string& windowName)
const;
198 ::std::vector< ::std::string > getNames()
const;
201 ::std::vector< Window * > list_;
206 #endif // CARMA_UI_RTD_WINDOWLIST_H
virtual void load()=0
Pure virtual - define it with a bunch of statements like: add(new Window("demo", "demoprogramName"));.
void add(Window *w)
Add a window definition to the list.
Window * find(const std::string &windowName) const
Find a window in the list with the given name.
A list of all possible windows on a system and methods to find them.