BioSignalPi
v2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
PiFace-Interface
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
17
class
AbstractMenu
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
76
int
numberOfOptions
;
77
82
int
currentOption
;
83
};
84
85
#endif // ABSTRACTMENU_H
86
87
AbstractMenu::~AbstractMenu
virtual ~AbstractMenu()
Definition:
abstractmenu.h:21
AbstractMenu::setLowerText
virtual void setLowerText()
Sets the second row of the PiFace CAD to the current option choosen Uses the C library pifacecad...
Definition:
abstractmenu.cpp:21
AbstractMenu::AbstractMenu
AbstractMenu()
Definition:
abstractmenu.cpp:4
AbstractMenu
Abstract menu object for PiFace CAD.
Definition:
abstractmenu.h:17
AbstractMenu::numberOfOptions
int numberOfOptions
number of elements stored in the options vector. To be set by the derived AbstractMenu object ...
Definition:
abstractmenu.h:76
AbstractMenu::options
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
AbstractMenu::newMenu
virtual AbstractMenu * newMenu()=0
Pure virtual function, creates the next Menu object Pure virtual function, that is meant to create a ...
AbstractMenu::next
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.
Definition:
abstractmenu.cpp:27
AbstractMenu::setUpperText
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
AbstractMenu::currentOption
int currentOption
Counter that keeps track of the option visible on the PiFace CAD.
Definition:
abstractmenu.h:82
Generated on Mon Feb 8 2016 10:21:30 for BioSignalPi by
1.8.11