Execution context manager class.
More...
#include <exec_context_manager.h>
Execution context manager class.
Definition at line 51 of file exec_context_manager.h.
◆ ExecutionContextManager()
ExecutionContextManager::ExecutionContextManager |
( |
void |
| ) |
|
|
explicit |
◆ ~ExecutionContextManager()
virtual ExecutionContextManager::~ExecutionContextManager |
( |
void |
| ) |
|
|
virtual |
◆ Beep()
void ExecutionContextManager::Beep |
( |
void |
| ) |
|
◆ CloseDown()
Release input and output devices after execution.
- Returns
- true for success, false otherwise.
- Parameters
-
CLI_Context | Execution context terminating its execution. |
◆ EnableStream()
const bool ExecutionContextManager::EnableStream |
( |
const STREAM_TYPE |
E_StreamType, |
|
|
const bool |
B_Enable |
|
) |
| |
Enable/disable stream.
- Returns
- true for success, false otherwise.
- Parameters
-
E_StreamType | Output stream identifier. |
B_Enable | Enable flag. |
◆ FreeInstance()
void ExecutionContextManager::FreeInstance |
( |
ExecutionContext & |
CLI_UserInstance | ) |
|
Instance deregistration.
- Warning
- Shall auto-delete the manager when no more instances registered.
- Parameters
-
CLI_UserInstance | Instance to deregister. |
◆ GetBeep()
const bool ExecutionContextManager::GetBeep |
( |
void |
| ) |
const |
Beep configuration access.
- Returns
- The current beep configuration. true if enabled, false otherwise.
◆ GetCurrentContext()
Returns the current execution context.
- Returns
- Current execution context if any, NULL otherwise.
◆ GetInput()
const IODevice& ExecutionContextManager::GetInput |
( |
void |
| ) |
const |
Input stream accessor.
- Returns
- Input stream reference.
◆ GetLang()
Language access.
- Returns
- The language currently set.
◆ GetStream()
Output stream accessor.
- Returns
- Output stream reference.
- Parameters
-
E_StreamType | Output stream identifier. |
◆ GetTraceClass()
static const TraceClass& ExecutionContextManager::GetTraceClass |
( |
void |
| ) |
|
|
static |
Execution context trace class singleton.
- Returns
- Execution context trace class instance.
◆ IsRunning() [1/2]
const bool ExecutionContextManager::IsRunning |
( |
void |
| ) |
const |
Determines whether the execution context manager is currently running.
- Returns
- true if the execution context manager is currently running, false otherwise.
◆ IsRunning() [2/2]
const bool ExecutionContextManager::IsRunning |
( |
const ExecutionContext & |
CLI_Context | ) |
const |
Determines whether the given execution context is currently running.
- Returns
- true if the given execution context is currently running, false otherwise.
- Parameters
-
CLI_Context | Execution context to look for execution. |
◆ OpenUp()
Assumes input and output devices to be ready for execution.
- Returns
- true for success, false otherwise.
- Parameters
-
CLI_Context | Execution context starting its execution. |
CLI_IODevice | Input/output device to run onto. |
◆ SetBeep()
void ExecutionContextManager::SetBeep |
( |
const bool |
B_Enable | ) |
|
Beep configuration setting.
- Parameters
-
◆ SetLang()
Language setting.
- Parameters
-
◆ SetStream()
Output stream positionning.
- Returns
- true for success, false otherwise.
- Warning
- Please ensure one of the following conditions regarding the given device:
- Either the device is an auto-deleted device,
- or it will be destroyed after this execution context object,
- or another call to this method with the null device is done on termination. Otherwise you could experience consistency troubles. The null device and standard devices are not subject to this remark.
- Parameters
-
E_StreamType | Output stream identifier. |
CLI_Stream | Stream reference. |
◆ StopAllExecutions()
void ExecutionContextManager::StopAllExecutions |
( |
void |
| ) |
|
Stop execution of all running contexts.
◆ StreamEnabled()
const bool ExecutionContextManager::StreamEnabled |
( |
const STREAM_TYPE |
E_StreamType | ) |
const |
Enabled/disabled stream accessor.
- Returns
- true if the stream is enabled, false otherwise.
- Parameters
-
E_StreamType | Output stream identifier. |
◆ UseInstance()
void ExecutionContextManager::UseInstance |
( |
ExecutionContext & |
CLI_UserInstance | ) |
|
Instance registration.
- Parameters
-
CLI_UserInstance | Instance to register. |
The documentation for this class was generated from the following file: