32 #ifndef _CLI_COMMAND_LINE_H_ 33 #define _CLI_COMMAND_LINE_H_ 76 const tk::String& STR_Line,
77 const bool B_Execution
109 const tk::String& STR_Line,
110 tk::Queue<tk::String>& Q_Words,
111 int& I_LastWordPosition
119 const Element*
const PCLI_Element
130 tk::String m_strLastWord;
132 bool m_bLastWordValid;
134 int m_iNumBackspacesForCompletion;
186 Element::List::Iterator m_cliIterator;
189 const Element* m_pcliCurrentElement;
194 #endif // _CLI_COMMAND_LINE_H_
Main namespace of the CLI library.
Element class definition.
const bool operator==(const Element &CLI_Element) const
Checks whether the element corresponds to the current element.
virtual ~CommandLineIterator(void)
Destructor.
#define CLI_NS_END(__ns)
End a namespace definition.
const Element & GetLastElement(void) const
Last element accessor.
const bool StepIt(void)
Iteration.
const ResourceString & GetLastError(void) const
Last error.
#define CLI_NS_BEGIN(__ns)
Begin a namespace definition.
const char *const GetLastWord(void) const
Last word (for completion).
CommandLine(void)
Default constructor.
tk::Queue< const Element * > List
CLI element list type.
const bool Parse(const Menu &CLI_Menu, const tk::String &STR_Line, const bool B_Execution)
Parse and analysis invocation.
virtual ~CommandLine(void)
Destructor.
const Element *const operator*(void) const
Current element accessor.
const int GetNumBackspacesForCompletion(void) const
Number of backspaces for completion.