CLI
2.9
|
Base parameter class. More...
#include <param.h>
Public Member Functions | |
virtual | ~Param (void) |
Destructor. More... | |
virtual const tk::String | GetKeyword (void) const |
String identifier accessor. More... | |
virtual const bool | FindElements (Element::List &CLI_ExactList, Element::List &CLI_NearList, const char *const STR_Keyword) const |
Sub-elements search. More... | |
virtual const bool | SetstrValue (const char *const STR_Value) const =0 |
Value setting. More... | |
const tk::String | GetstrValue (void) const |
Value access in its string form. More... | |
virtual const Param *const | Clone (void) const =0 |
Parameter cloning handler. More... | |
const Param *const | GetCloned (void) const |
Cloned parameter access. More... | |
virtual const Param & | CopyValue (const Param &CLI_Param) const =0 |
Value copy handler. More... | |
![]() | |
SyntaxNode (const char *const STR_Keyword, const Help &CLI_Help) | |
Constructor. More... | |
virtual | ~SyntaxNode (void) |
Destructor. More... | |
Element & | AddElement (Element *const PCLI_Element) |
Possible element addition. More... | |
const bool | RemoveElement (const Element *const PCLI_Element, const bool B_AutoDelete) |
Element removal. More... | |
![]() | |
Element (const char *const STR_Keyword, const Help &STR_Help) | |
Constructor. More... | |
virtual | ~Element (void)=0 |
Destructor. More... | |
virtual const Help & | GetHelp (void) const |
Element help accessor. More... | |
virtual void | SetCli (Cli &CLI_Cli) |
Cli reference setting. More... | |
Cli & | GetCli (void) |
Read-Write Cli reference accessor. More... | |
const Cli & | GetCli (void) const |
Read-only Cli reference accessor. More... | |
Shell & | GetShell (void) const |
Shell reference accessor. More... | |
const OutputDevice & | GetOutputStream (void) const |
Output stream reference accessor. More... | |
const OutputDevice & | GetErrorStream (void) const |
Error stream reference accessor. More... | |
![]() | |
virtual | ~Object (void)=0 |
Pure virtual destructor. More... | |
Protected Member Functions | |
Param (const char *const STR_Keyword, const Help &CLI_Help) | |
Constructor. More... | |
const bool | SetValue (const char *const STR_Value) const |
Value setting from derived class. More... | |
const Param *const | InitClone (Param &CLI_CloneParam) const |
Clone initialization. More... | |
const bool | SetCloned (const Param &CLI_Cloned) |
Cloned parameter reference setting. More... | |
![]() | |
Object (void) | |
Default constructor only available to sub-classes. More... | |
Additional Inherited Members | |
![]() | |
typedef tk::Queue< const Element * > | List |
CLI element list type. More... | |
typedef tk::Map< const tk::String, const Element * > | Map |
CLI element map type. More... | |
Base parameter class.
Base class for any kind of parameter elements. Not final class.
|
explicitprotected |
Constructor.
STR_Keyword | Keyword. Does not mean much for a parameter. Something like a description of the type of parameter. |
CLI_Help | Corresponding help. |
|
virtual |
Destructor.
|
pure virtual |
Parameter cloning handler.
To be overloaded by derived classes.
Implemented in ParamString, ParamFloat, ParamInt, and ParamHost.
Value copy handler.
CLI_Param | Parameter to copy the value from. |
Implemented in ParamT< T >, ParamT< double >, ParamT< int >, and ParamString.
|
virtual |
Sub-elements search.
CLI_ExactList | Output list of elements exactly matching STR_Keyword. |
CLI_NearList | Output list of elements matching STR_Keyword exactly or not. |
STR_Keyword | Keyword or beginning of a keyword. Can be the whole word, or just the beginning, or something possibly matching (for parameters). NULL means no keyword begun. Put NULL to retrieve all sub-elements. |
Reimplemented from SyntaxNode.
const Param* const Param::GetCloned | ( | void | ) | const |
Cloned parameter access.
|
virtual |
String identifier accessor.
Reimplemented from Element.
Referenced by ParamT< int >::CopyValue().
const tk::String Param::GetstrValue | ( | void | ) | const |
Value access in its string form.
Clone initialization.
CLI_CloneParam | Clone parameter to initialize. |
|
protected |
Cloned parameter reference setting.
CLI_Cloned | Clone parameter reference. |
|
pure virtual |
Value setting.
STR_Value | New value. |
To be overloaded by derived classes.
Implemented in ParamString, ParamFloat, and ParamInt.
|
protected |
Value setting from derived class.
STR_Value | New value. |
Referenced by ParamT< int >::SetValue().