BioSignalPi  v2
abstractmenu.h
Go to the documentation of this file.
1 
11 #ifndef ABSTRACTMENU_H
12 #define ABSTRACTMENU_H
13 
14 #include <string>
15 #include <vector>
16 
18 {
19 public:
20  AbstractMenu();
21  virtual ~AbstractMenu(){};
22 
32  virtual AbstractMenu *newMenu()=0;
33 
39  virtual void setUpperText();
40 
47  virtual void setUpperText(const char *);
48 
49 
50 
56  virtual void next();
57 
63  virtual void setLowerText();
64 protected:
65 
70  std::vector<std::string> options;
71 
77 
83 };
84 
85 #endif // ABSTRACTMENU_H
86 
87 
virtual ~AbstractMenu()
Definition: abstractmenu.h:21
virtual void setLowerText()
Sets the second row of the PiFace CAD to the current option choosen Uses the C library pifacecad...
Abstract menu object for PiFace CAD.
Definition: abstractmenu.h:17
int numberOfOptions
number of elements stored in the options vector. To be set by the derived AbstractMenu object ...
Definition: abstractmenu.h:76
std::vector< std::string > options
std::vector containing the different options to display on the PiFace CAD To be set by the derived Ab...
Definition: abstractmenu.h:70
virtual AbstractMenu * newMenu()=0
Pure virtual function, creates the next Menu object Pure virtual function, that is meant to create a ...
virtual void next()
Toggles the second row of the PiFace CAD to the next option Uses the C library pifacecad.h to control the display.
virtual void setUpperText()
Sets the first row of the PiFace CAD to the current option choosen Uses the C library pifacecad...
Definition: abstractmenu.cpp:9
int currentOption
Counter that keeps track of the option visible on the PiFace CAD.
Definition: abstractmenu.h:82