#include <user_interface.h>
Collaboration diagram for user_interface:

Public Types | |
| enum | console_type { AUTO, MONO, ANSI, WIND } |
| Console types enum. More... | |
Public Member Functions | |
| ~user_interface (void) | |
| user interface destructor. | |
| bool | Ask (const string &Question, const char TrueOption, const char FalseOption, const bool DefaultAnswer) |
| Ask a question to the user. | |
| string | Ask (const string &Question, const string &DefaultAnswer) |
| Ask a question to the user. | |
| int | Ask (const string &Question, const int DefaultAnswer) |
| Ask a question to the user. | |
| void | Message (const string &Message, console::console_color CColor=console::BRIGHT_WHITE) |
| Prints program message. | |
| void | DebugMessage (const string &Message) |
| Prints debug message. | |
| void | ExceptionMessage (const string &Message) |
| Prints exception message. | |
| void | LogMessage (const string &Message) |
| Write message into log file. | |
| void | StartLoopMessage (void) |
| Start loop message. | |
| void | LoopMessage (const string &Message, console::console_color CColor=console::BRIGHT_WHITE) |
| Print loop message. | |
| void | StopLoopMessage (void) |
| Stop loop message. | |
| void | Version (void) |
| Show Version. | |
| void | Help (void) |
| Show help. | |
Static Public Member Functions | |
| void | CreateInstance (console_type ConsoleType=AUTO) |
| Create the user_interface singleton instance. | |
| void | DeleteInstance (void) |
| Deletes the user_interface singleton instance. | |
| user_interface * | Instance (void) |
| Get de user_interface singleton instance. | |
Private Member Functions | |
| user_interface (console_type ConsoleType) | |
| User interface constructor. | |
| user_interface (const user_interface &Obj) | |
| User interface copy constructor. | |
Private Attributes | |
| console * | m_pConsole |
| Pointer to the input/output console. | |
| bool | m_LoopMessage |
| If true there is a loop message in progress. | |
| string::size_type | m_LastLoopMessageLength |
| Length of the last loop message. | |
Static Private Attributes | |
| user_interface * | m_pInstance = NULL |
| Instance of the singleton. | |
|
|
Console types enum.
|
|
|
user interface destructor.
|
|
|
User interface constructor.
|
|
|
User interface copy constructor.
|
|
|
Create the user_interface singleton instance.
|
Here is the call graph for this function:

|
|
Deletes the user_interface singleton instance.
|
|
|
Get de user_interface singleton instance.
|
|
||||||||||||||||||||
|
Ask a question to the user.
|
Here is the call graph for this function:

|
||||||||||||
|
Ask a question to the user.
|
Here is the call graph for this function:

|
||||||||||||
|
Ask a question to the user.
|
Here is the call graph for this function:

|
||||||||||||
|
Prints program message.
|
Here is the call graph for this function:

|
|
Prints debug message.
|
|
|
Prints exception message.
|
Here is the call graph for this function:

|
|
Write message into log file.
|
|
|
Start loop message.
|
Here is the call graph for this function:

|
||||||||||||
|
Print loop message.
|
Here is the call graph for this function:

|
|
Stop loop message.
|
Here is the call graph for this function:

|
|
Show Version.
|
Here is the call graph for this function:

|
|
Show help.
|
Here is the call graph for this function:

|
|
Pointer to the input/output console.
|
|
|
Instance of the singleton.
|
|
|
If true there is a loop message in progress.
|
|
|
Length of the last loop message.
|
|
|
|