GridComputing
Job Management in Grid Computing
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Menu::Item Class Reference

A Menu can have many Items. More...

Inheritance diagram for Menu::Item:
IMenu

Public Member Functions

 Item (const std::string &label, uint32 val, Menu *parent=NULL)
 Constructor.
 
uint32 Print () const override
 Prints the menu label and returns the Menu or Menu::Item chosen by the user of the menu.
 
- Public Member Functions inherited from IMenu
 IMenu (const std::string &label, Menu *parent=NULL)
 Constructor.
 
virtual ~IMenu ()
 Virtual destructor.
 
const std::string & GetLabel () const
 Returns the Menu's label.
 
MenuGetParent () const
 Returns the Menu's parent. Can be null.
 
void SetParent (Menu *val)
 Updates the Menu's parent.
 

Private Attributes

uint32 _value
 Value linked with the Menu::Item.
 

Additional Inherited Members

- Protected Attributes inherited from IMenu
Menu_parent
 Parent menu.
 
std::string _label
 Menu.
 

Detailed Description

A Menu can have many Items.

Constructor & Destructor Documentation

Menu::Item::Item ( const std::string &  label,
uint32  val,
Menu parent = NULL 
)

Constructor.

Member Function Documentation

uint32 Menu::Item::Print ( ) const
overridevirtual

Prints the menu label and returns the Menu or Menu::Item chosen by the user of the menu.

Implements IMenu.

Member Data Documentation

uint32 Menu::Item::_value
private

Value linked with the Menu::Item.


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