BioSignalPi  v2
Public Member Functions | Protected Attributes | List of all members
AbstractMenu Class Referenceabstract

Abstract menu object for PiFace CAD. More...

#include <abstractmenu.h>

Inheritance diagram for AbstractMenu:
Inheritance graph
[legend]

Public Member Functions

 AbstractMenu ()
 
virtual ~AbstractMenu ()
 
virtual AbstractMenunewMenu ()=0
 Pure virtual function, creates the next Menu object Pure virtual function, that is meant to create a the AbstractMenu object that comes after the MenuObject that called it. More...
 
virtual void setUpperText ()
 Sets the first row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display. More...
 
virtual void setUpperText (const char *)
 Sets the first row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display. More...
 
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. More...
 
virtual void setLowerText ()
 Sets the second row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display. More...
 

Protected Attributes

std::vector< std::string > options
 std::vector containing the different options to display on the PiFace CAD To be set by the derived AbstractMenu object More...
 
int numberOfOptions
 number of elements stored in the options vector. To be set by the derived AbstractMenu object More...
 
int currentOption
 Counter that keeps track of the option visible on the PiFace CAD. More...
 

Detailed Description

Abstract menu object for PiFace CAD.

AbstractMenu is the base class for menu objects to be used to create a small logical menu that can be called from the PiFace CAD

Author
Martin

Definition at line 17 of file abstractmenu.h.

Constructor & Destructor Documentation

AbstractMenu::AbstractMenu ( )

Definition at line 4 of file abstractmenu.cpp.

virtual AbstractMenu::~AbstractMenu ( )
inlinevirtual

Definition at line 21 of file abstractmenu.h.

Here is the call graph for this function:

Member Function Documentation

virtual AbstractMenu* AbstractMenu::newMenu ( )
pure virtual

Pure virtual function, creates the next Menu object Pure virtual function, that is meant to create a the AbstractMenu object that comes after the MenuObject that called it.

What AbstractMenu object that are created depends on in which object the function was called.

Parameters
currentOptioninherited from AbstractMenu to realize what Object to create.

Implemented in EcgCaptureMenu, BluetoothMenu, SettingsMenu, and BaseMenu.

Here is the caller graph for this function:

void AbstractMenu::next ( )
virtual

Toggles the second row of the PiFace CAD to the next option Uses the C library pifacecad.h to control the display.

Definition at line 27 of file abstractmenu.cpp.

Here is the caller graph for this function:

void AbstractMenu::setLowerText ( )
virtual

Sets the second row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display.

Definition at line 21 of file abstractmenu.cpp.

Here is the caller graph for this function:

void AbstractMenu::setUpperText ( )
virtual

Sets the first row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display.

Definition at line 9 of file abstractmenu.cpp.

Here is the caller graph for this function:

void AbstractMenu::setUpperText ( const char *  input)
virtual

Sets the first row of the PiFace CAD to the current option choosen Uses the C library pifacecad.h to control the display.

Parameters
textto display on upper row of PiFace CAD

Definition at line 15 of file abstractmenu.cpp.

Member Data Documentation

int AbstractMenu::currentOption
protected

Counter that keeps track of the option visible on the PiFace CAD.

Parameters
currentOption

Definition at line 82 of file abstractmenu.h.

int AbstractMenu::numberOfOptions
protected

number of elements stored in the options vector. To be set by the derived AbstractMenu object

Parameters
numberOfOptions

Definition at line 76 of file abstractmenu.h.

std::vector<std::string> AbstractMenu::options
protected

std::vector containing the different options to display on the PiFace CAD To be set by the derived AbstractMenu object

Parameters
options

Definition at line 70 of file abstractmenu.h.


The documentation for this class was generated from the following files: