API Guides > ConceptRT 3.x
Console Class Reference

Console system More...

Detailed Description

Console system

Public Member Methods

 Console ()
 Constructor. More...
 
void Show ()
 Shows the console. More...
 
void Hide ()
 Hides the console. More...
 
void Write (PCChar8 message)
 Writes a message into the console. More...
 
void WriteLine (PCChar8 message="")
 Writes a message into the console and a new line. More...
 
void Pause ()
 Demands a pause. (press any key to continue) More...
 

Public Attributes

EventSingleDelegateVoid CloseEvent
 Close event delegate. More...
 

Constructor & Destructor Documentation

Console ( )

Constructor.

Methods Documentation

void Hide ( )

Hides the console.

void Pause ( )

Demands a pause. (press any key to continue)

Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
Examples:
Machine/main.cpp.
void Show ( )

Shows the console.

void Write ( PCChar8  message)

Writes a message into the console.

Parameters
messageThe message.
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
void WriteLine ( PCChar8  message = "")

Writes a message into the console and a new line.

Parameters
messageThe message.
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
Examples:
DynamicInvocation/1.Client/main.cpp, Machine/main.cpp, and SystemMode/main.cpp.

Fields Documentation

Close event delegate.

The code executed by the delegate should not take much stack size or a long time to be executed. This code may be executed by a system thread. Be carefull about concurrent access. Declaration of the delegate in the class :

class Root
{
public:
Root();
~Root();
void Exit();
private:
DelegateMethodVoid<Root> _delegateOnClose;
};

Initialization :

Root::Root()
{
_delegateOnClose.Define(this, &Root::Exit);
System::GetConsole().CloseEvent += _delegateOnClose;
}