Base class for console. More...
Base class for console.
Public Member Methods | |
virtual bool | WaitCommandLine (TimeSpan timeout=TimeInfinite)=0 |
Wait on a command line is typed. More... | |
virtual String | ReadCommandLine (TimeSpan timeout=TimeInfinite)=0 |
Read a command line and wait until it is typed. More... | |
![]() | |
const bool & | GetIsEnabled () const |
Enable the logging. More... | |
const bool & | GetIsEnabled () |
Enable the logging. More... | |
void | SetIsEnabled (const bool &value) |
Enable the logging. More... | |
const bool & | GetTimeStamped () const |
Enable the time stamping of the logged text. More... | |
const bool & | GetTimeStamped () |
Enable the time stamping of the logged text. More... | |
void | SetTimeStamped (const bool &value) |
Enable the time stamping of the logged text. More... | |
void | Write (PCChar8 text) |
Writes a text. More... | |
void | WriteLine (PCChar8 text="") |
Writes a text and a new line. More... | |
void | Write (ISerializable &data) |
Writes the data of an ISerializable object. More... | |
void | WriteLine (ISerializable &data) |
Writes the data of an ISerializable object and a new line. More... | |
void | Write (PCChar8 text, ISerializable &data) |
Writes the data of an ISerializable object. More... | |
void | WriteLine (PCChar8 text, ISerializable &data) |
Writes the data of an ISerializable object and a new line. More... | |
Protected Member Functions | |
BaseConsole (BaseDataLogger &logger) | |
Constructor. More... | |
void | PerformWrite (PCChar8 text, ISerializable *data, bool newLine, bool timeStamp) |
Perform to write the logged message. More... | |
![]() | |
void | LockedPerformWrite (PCChar8 text, ISerializable *data, bool newLine, bool timeStamp) |
Perform to write the logged message in a locked context. More... | |
Additional Inherited Members | |
![]() | |
CriticalSection | _criticalSection |
_criticalSection used to synchronize the writter with inner traitement mechanisms when needed. More... | |
|
protected |
Constructor.
logger | the logger to write the console outputs. |
|
protectedvirtual |
Perform to write the logged message.
text | A text written before the data. (Can be NULL) |
data | the data. (Can be NULL) |
newLine | Write a new line at the end. |
timeStamp | Write a time stamp at the beginning |
This method implement the writing mechanism to the destination.
Implements BaseDataLogger.
|
pure virtual |
Read a command line and wait until it is typed.
timeout | (optional) the time out. Default value is TimeInfinite. |
Implemented in BaseDynamicInvocationConsole.
|
pure virtual |
Wait on a command line is typed.
timeout | (optional) the time out. Default value is TimeInfinite. |
Implemented in BaseDynamicInvocationConsole.