Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CCmdInfoLabelEnum Class Reference

Inheritance diagram for CCmdInfoLabelEnum:

CCmdInfoData CCmdInfoArg List of all members.

Public Methods

 CCmdInfoLabelEnum (const std::string &)
virtual int GetSize () const
virtual CCmdInfoLabel GetValue (int) const
std::string GetLabelName () const

Detailed Description

Enumeration of labels. In a command line, several occurences are possible, so to obtain the value of a label, the Hyperion Pattern introduce this intermediate class.


Constructor & Destructor Documentation

CCmdInfoLabelEnum::CCmdInfoLabelEnum ( const std::string & LabelName )
 

Usualy created with a CCmdInfo object.

Parameters:
LabelName   Name of the selected label.
Precondition:
Static data, m_Argc and m_Argv have been initialized.


Member Function Documentation

std::string CCmdInfoLabelEnum::GetLabelName ( ) const [inline]
 

Returns:
Label name of the enumeration.

int CCmdInfoLabelEnum::GetSize ( void ) const [virtual]
 

Returns:
Number of labels in the command line.

Reimplemented from CCmdInfoData.

CCmdInfoLabel CCmdInfoLabelEnum::GetValue ( int Pos ) const [virtual]
 

Parameters:
Pos   Position of the specified label. 0 coresponds to the first position.
Returns:
Specified label. Returns an empty label if none exists.

Reimplemented from CCmdInfoData.


The documentation for this class was generated from the following files:
Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.