|
xentara-cpp-control v1.0.1
The Xentara C++ Control Framework
|
An initialization context with configuration information and access to Xentara Elements. More...
#include <xentara/InitContext.hpp>
Public Member Functions | |
| InitContext ()=delete | |
| No default construction. | |
| auto | xentaraSkillElement () const &noexcept -> const skill::Element & |
| Gets the Xentara skill element. | |
| InitContext (const InitContext &)=delete | |
| Delete the copy constructor. | |
| auto | operator= (const InitContext &) -> InitContext &=delete |
| Delete the assignment operator. | |
Access to the environment | |
| auto | config () const -> const Config & |
| Gets the configuration. | |
| auto | model () const -> const Model & |
| Gets the model. | |
Timer info for controls that use a single timer | |
| auto | hasSingleTimer () const -> bool |
| Checks if the control is using a single timer. | |
| auto | timerInfo () const -> TimerInfo |
| Gets the timer information if the task is attached to only one timer. | |
Scheduling info for controls that may use multiple timers and events | |
| auto | hasAttachedEvent () const -> bool |
| Checks if the control is using a event. | |
| auto | attachedTimerInfos () const -> std::vector< TimerInfo > |
| Gets the information about all timers to which the task is attached. | |
An initialization context with configuration information and access to Xentara Elements.
An object of this class is passed to Control::initialize(). It provides access to configuration parameters, the Xentara model, and timer-related information. You do not create objects of this class manually. You have to use the context to get the required information such as configuration parameter, timers and store it inside your control class as member variable.
|
delete |
No default construction.
|
delete |
Delete the copy constructor.
| auto xentara::InitContext::attachedTimerInfos | ( | ) | const -> std::vector< TimerInfo > |
Gets the information about all timers to which the task is attached.
Gets the configuration.
Checks if the control is using a event.
Checks if the control is using a single timer.
Gets the model.
|
delete |
Delete the assignment operator.
Gets the timer information if the task is attached to only one timer.
| std::runtime_error | the task is not attached to any timer |
| std::runtime_error | the task is not attached to a single timer |
|
noexcept |
Gets the Xentara skill element.
This function gives access to the control skill element in the Xentara.