GridComputing
Job Management in Grid Computing
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
IMenu Class Referenceabstract

IMenu abstract Class. More...

#include <menu.h>

Inheritance diagram for IMenu:
Menu Menu::Item

Public Member Functions

 IMenu (const std::string &label, Menu *parent=NULL)
 Constructor.
 
virtual ~IMenu ()
 Virtual destructor.
 
virtual uint32 Print () const =0
 Prints the menu label and returns the Menu or Menu::Item chosen by the user of the menu.
 
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.
 

Protected Attributes

Menu_parent
 Parent menu.
 
std::string _label
 Menu.
 

Detailed Description

IMenu abstract Class.

Represents a menu item that has a name/label.

Constructor & Destructor Documentation

IMenu::IMenu ( const std::string &  label,
Menu parent = NULL 
)

Constructor.

virtual IMenu::~IMenu ( )
virtual

Virtual destructor.

Member Function Documentation

const std::string& IMenu::GetLabel ( ) const

Returns the Menu's label.

Menu* IMenu::GetParent ( ) const

Returns the Menu's parent. Can be null.

virtual uint32 IMenu::Print ( ) const
pure virtual

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

Implemented in Menu::Item, and Menu.

void IMenu::SetParent ( Menu val)

Updates the Menu's parent.

Member Data Documentation

std::string IMenu::_label
protected

Menu.

Menu* IMenu::_parent
protected

Parent menu.


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