CLI
2.9
|
Syntax node elements. More...
#include <syntax_node.h>
Public Member Functions | |
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... | |
virtual const bool | FindElements (Element::List &CLI_ExactList, Element::List &CLI_NearList, const char *const STR_Keyword) const |
Sub-elements search. More... | |
![]() | |
Element (const char *const STR_Keyword, const Help &STR_Help) | |
Constructor. More... | |
virtual | ~Element (void)=0 |
Destructor. More... | |
virtual const tk::String | GetKeyword (void) const |
String identifier accessor. 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... | |
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... | |
![]() | |
Object (void) | |
Default constructor only available to sub-classes. More... | |
Syntax node elements.
Syntax node elements are element that accepts child elements. They store a list of possible childs, and offer operations based on this list.
Definition at line 51 of file syntax_node.h.
|
explicit |
Constructor.
STR_Keyword | Keyword of the element. |
CLI_Help | Corresponding help. |
|
virtual |
Destructor.
Possible element addition.
PCLI_Element | New element. |
|
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 Element.
Reimplemented in Param.
const bool SyntaxNode::RemoveElement | ( | const Element *const | PCLI_Element, |
const bool | B_AutoDelete | ||
) |