API Guides > ConceptRT 3.x
System Class Reference

System node (static class) to access to the system functionalities. More...

Detailed Description

System node (static class) to access to the system functionalities.

Static Public Member Functions

static void Initialize ()
 Initialization of the system. More...
 
static void Finalize ()
 Finalization of the system. More...
 
static ConsoleGetConsole ()
 Gets the system console. More...
 
static const StringGetVersion ()
 Gets the ConceptRT version. More...
 
static EventDelegate< RTException & > & GetEventUncaughtThreadRTException ()
 The event that occurs on uncaught thread RTException More...
 
static EventDelegate< ParameterEmpty > & GetEventUncaughtThreadException ()
 The event that occurs on uncaught thread exception More...
 
static void DisplayException (const RTException &e)
 Display an exception with formated message : Error ID, Message and Source. More...
 
static bool IsInitialized ()
 Query if the system is initialized. More...
 
static void ForceExit ()
 Force the end of the application. More...
 
static void ConceptRTConfigureFromArguments (Int32 count, PChar8 *parameters)
 Configure ConceptRT in order to reads the arguments received from the main. More...
 
static const StringGetExecutablePath ()
 Gets the executable path. More...
 
static void SetExecutablePath (PCChar8 path)
 
static const StringsGetCommandLineParameters ()
 Gets the command line parameters. More...
 
static const StringGetApplicationPath ()
 Gets the application file system path. More...
 

Static Private Member Functions

static void InternalInitialize ()
 Called at the first step of Intialize. More...
 
static void InternalFinalize ()
 Called at the end of Finalize. More...
 

Methods Documentation

static void ConceptRTConfigureFromArguments ( Int32  count,
PChar8 parameters 
)
static

Configure ConceptRT in order to reads the arguments received from the main.

Parameters
countthe arguments count.
parametersPointer to the received characters.
See also
GetCommandLineParameters
Note
Automatically configured in SystemMode. This can be called in LibraryMode in order to use GetCommandLineParameters().
RT Exceptions:
RT_ERROR_SYSTEM_NOT_INITIALIZED
Examples:
SingleLibraryMode/main.cpp.
static void DisplayException ( const RTException e)
static

Display an exception with formated message : Error ID, Message and Source.

Parameters
e[in] The exception.
RT Exceptions:
RT_ERROR_SYSTEM_NOT_INITIALIZED
static void Finalize ( )
static

Finalization of the system.

Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
Note
{Automatically called in SystemMode. This must be called in LibraryMode.}
Examples:
SingleLibraryMode/main.cpp.
static void ForceExit ( )
static

Force the end of the application.

Note
Not proper way to close an application
static const String& GetApplicationPath ( )
static

Gets the application file system path.

Returns
The application file system path. "" if not set.

Sets by ConceptRTOsInitialize (PCChar8 applicationPath) or ConceptRTComponentsInitialize (PCChar8 applicationPath)

RT Exceptions:
RT_ERROR_SYSTEM_NOT_INITIALIZED
Examples:
Machine/main.cpp.
static const Strings& GetCommandLineParameters ( )
static

Gets the command line parameters.

Returns
The command line parameters.
Note
Automatically set in SystemMode. In LibraryMode ConceptRTConfigureFromArguments() must be called first.
RT Exceptions:
RT_ERROR_SYSTEM_NOT_INITIALIZED
static Console& GetConsole ( )
static
static EventDelegate<ParameterEmpty>& GetEventUncaughtThreadException ( )
static

The event that occurs on uncaught thread exception

Returns
The non RTException Event delegate
RT Exceptions:
RT_ERROR_SYSTEM_NOT_INITIALIZED
static EventDelegate<RTException&>& GetEventUncaughtThreadRTException ( )
static

The event that occurs on uncaught thread RTException

Returns
The RTException Event delegate
RT Exceptions:
RT_ERROR_SYSTEM_NOT_INITIALIZED
static const String& GetExecutablePath ( )
static

Gets the executable path.

Returns
The executable path. "" if not set.
See also
SetExecutablePath
RT Exceptions:
RT_ERROR_SYSTEM_NOT_INITIALIZED
Examples:
DynamicInvocation/1.Client/main.cpp, and Machine/main.cpp.
static const String& GetVersion ( )
static

Gets the ConceptRT version.

Returns
The ConceptRT version.
Deprecated:
Since version 3.3 : Use AssemblyInfo::GetVersion() instead.
static void Initialize ( )
static

Initialization of the system.

Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
Note
{Automatically called in SystemMode. This must be called in LibraryMode.}
Examples:
SingleLibraryMode/main.cpp.
static void InternalFinalize ( )
staticprivate

Called at the end of Finalize.

static void InternalInitialize ( )
staticprivate

Called at the first step of Intialize.

static bool IsInitialized ( )
static

Query if the system is initialized.

Returns
True if yes, False if not.
See also
Initialize
static void SetExecutablePath ( PCChar8  path)
static
Parameters
pathSets the executable path.
See also
GetExecutablePath
Note
Automatically set in SystemMode. This can be called in LibraryMode in order to use GetExecutablePath().
RT Exceptions:
RT_ERROR_SYSTEM_NOT_INITIALIZED