![]() |
MAK Data Logger API Documentation for HLA
|
The console input interface. More...
Inheritance diagram for MAKLogger::DtLgrConsole:
Collaboration diagram for MAKLogger::DtLgrConsole:Public Member Functions | |
| DtLgrConsole (DtLogger &) | |
| virtual | ~DtLgrConsole () |
| virtual void | stop () |
| virtual void | run () |
| virtual void | setInputHistorySize (int size) |
| virtual int | inputHistorySize () const |
Static Public Member Functions | |
| static void | allocateConsole () |
| static void | deallocateConsole () |
| static void | shutdown () |
Protected Types | |
| typedef std::list< DtString > | StringList |
Protected Member Functions | |
| virtual void | printMessage (const DtString &message) |
| Prints a message to the console, and restores current input. More... | |
| virtual void | printFileDoesNotExistMessage (const DtString &filename) |
| Prints a file does not exist error message to the console. More... | |
| virtual void | printFileInvalidMessage (const DtString &filename) |
| Prints a file invalid error message to the console. More... | |
| virtual void | printInput (const DtString &input) |
| Prints a message to the console as input. More... | |
| virtual void | clearInput () |
| Overwrites the message on console and set input to empty string. More... | |
| bool | nonBlockingGetLine (DtString &input, bool &changed) |
| Tokenize the input and return an array of words. More... | |
| virtual void | processInput (const DtString &input) |
| Process the completed input line. More... | |
| virtual void | addInputToHistory (const DtString &input) |
| Called once input is entered. More... | |
| virtual DtString | getPreviousInput () |
| Gets the previous input in history and stores the current index. More... | |
| virtual DtString | getNextInput () |
| Gets the next input in history and stores the current index. More... | |
| void | sendShutdown () |
Static Protected Member Functions | |
| static DtString | dequote (const DtString &input) |
| Remove leading and trailing double quotes. More... | |
Protected Attributes | |
| volatile bool | myRunningFlag |
| DtString | myCurrentInput |
| int | myMaxInputHistorySize |
| StringList | myInputHistory |
| StringList::iterator | myCurrentHistoryInput |
| DtLgrFullInterface * | myInterface |
Static Protected Attributes | |
| static volatile bool | myHasConsole |
| static volatile DtLgrConsole * | theConsole |
The console input interface.
|
protected |
| MAKLogger::DtLgrConsole::DtLgrConsole | ( | DtLogger & | ) |
|
virtual |
|
protectedvirtual |
Called once input is entered.
Pushes input to end of history and resets the current history index to the end.
|
static |
Referenced by MAKLogger::DtLgrCmdLine::parseInput().
|
protectedvirtual |
Overwrites the message on console and set input to empty string.
|
static |
Remove leading and trailing double quotes.
|
protectedvirtual |
Gets the next input in history and stores the current index.
|
protectedvirtual |
Gets the previous input in history and stores the current index.
|
virtual |
|
protected |
Tokenize the input and return an array of words.
virtual DtString* tokenize(const DtString& input,int& size_out); Get input appended to the string and return true if it has been terminated.
|
protectedvirtual |
Prints a file does not exist error message to the console.
|
protectedvirtual |
Prints a file invalid error message to the console.
|
protectedvirtual |
Prints a message to the console as input.
|
protectedvirtual |
Prints a message to the console, and restores current input.
|
protectedvirtual |
Process the completed input line.
|
virtual |
|
protected |
|
virtual |
|
static |
|
virtual |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |