Console interface.
Public Member Functions | |
| virtual tConsoleSinkLst * | GetSinkList () const =0 |
| Get the console sink list. {Property}. More... | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
Namespaces | |
| virtual void | AddNamespace (const achar *aszNamespace)=0 |
| Add a namespace. More... | |
| virtual tBool | RemoveNamespace (const achar *aszNamespace)=0 |
| Remove a namespace. Delete all sinks, commands and variables in the namespace. More... | |
Variables | |
| virtual tBool | AddVariable (const achar *aszName, const achar *aszValue=NULL)=0 |
| Add a new string variable. More... | |
| virtual tBool | RemoveVariable (const achar *aszName)=0 |
| Remove a variable. More... | |
| virtual tBool | SetVariable (const achar *aszName, const achar *aszValue)=0 |
| Set the string value of a variable. More... | |
| virtual cString | GetVariable (const achar *aszName)=0 |
| Get the string value of a variable. More... | |
Commands | |
| virtual tBool | CommandExists (const achar *aszName)=0 |
| Return eTrue if the given command exists. More... | |
| virtual tBool | AddCommand (iCommandSink *pCmd)=0 |
| Add a command in the console. More... | |
| virtual tBool | RemoveCommand (const achar *aszName)=0 |
| Remove a command of the console. More... | |
| virtual cString | GetCommandDescription (const achar *aszCommand) const =0 |
| Get the description of a command. More... | |
| virtual tBool | RunCommand (const achar *aszCommand)=0 |
| Run a command. More... | |
| virtual cString | CompleteCommandLine (const achar *aaszCmd, tBool abNext=eTrue)=0 |
| Complete the given command line. More... | |
| virtual tU32 | GetNumCommands () const =0 |
| Get the number of commands in the queue. More... | |
| virtual tBool | PushCommand (const achar *aszCommand)=0 |
| Queue a command to be run later on. More... | |
| virtual cString | PopCommand ()=0 |
| Pop a command from the queue. More... | |
| virtual tU32 | PopAndRunAllCommands ()=0 |
| Pop and run all commands in the queue. More... | |
|
pure virtual |
Get the console sink list. {Property}.
Add a namespace.
Remove a namespace. Delete all sinks, commands and variables in the namespace.
Add a new string variable.
| aszName | name of the variable to create. |
| aszValue | is the string value to give to the variable. |
Remove a variable.
Set the string value of a variable.
| aszName | name of the variable to set. |
| aszValue | is the string value to give to the variable. |
Get the string value of a variable.
| aszName | name of the variable to get. |
Return eTrue if the given command exists.
|
pure virtual |
Add a command in the console.
| pCmd | is the command sink that will be called when the command is runned. |
Remove a command of the console.
| aszName | is the name of the command to remove. |
Get the description of a command.
Run a command.
| aszCommand | is the raw command to parse. |
Complete the given command line.
| aaszCmd | is the command line to complete. |
| abNext | if eTrue returns the next match, else the previous one. |
|
pure virtual |
Get the number of commands in the queue.
Queue a command to be run later on.
| aszCommand | is the raw command to parse. |
|
pure virtual |
Pop a command from the queue.
|
pure virtual |
Pop and run all commands in the queue.
1.8.7