SmartSoft Component-Developer API
|
#include <smartInputTaskTrigger.h>
Public Member Functions | |
InputTaskTrigger (InputSubject< InputType > *subject, const unsigned int &prescaleFactor=1) | |
Default constructor. More... | |
virtual | ~InputTaskTrigger ()=default |
Default destructor. More... | |
Smart::StatusCode | getUpdate (InputType &update) const |
Method to get a copy of the last update (if there was any). More... | |
Public Member Functions inherited from Smart::IInputHandler< InputType > | |
IInputHandler (InputSubject< InputType > *subject, const unsigned int &prescaleFactor=1) | |
The default constructor. More... | |
virtual | ~IInputHandler () |
The default destructor. More... | |
Public Member Functions inherited from Smart::TaskTriggerSubject | |
TaskTriggerSubject () | |
virtual | ~TaskTriggerSubject () |
void | attach (TaskTriggerObserver *observer, const unsigned int &prescaleFactor=1) |
void | detach (TaskTriggerObserver *observer) |
Protected Member Functions | |
void | setUpdate (const InputType &input, const Smart::StatusCode &updateStatus=Smart::SMART_OK) |
Store a copy of the last update within the internal object. More... | |
virtual void | handle_input (const InputType &input) |
This is the main input-handler method that will be automatically called from the given subject each time the subject receives input-data. More... | |
Protected Member Functions inherited from Smart::IInputHandler< InputType > | |
void | attach_self (const unsigned int &prescale=1) |
calls subject->attach(this); More... | |
void | detach_self () |
calls subject->detach(this); More... | |
Protected Member Functions inherited from Smart::TaskTriggerSubject | |
void | trigger_all_tasks () |
Additional Inherited Members | |
Protected Attributes inherited from Smart::IInputHandler< InputType > | |
InputSubject< InputType > * | subject |
this is the subject-pointer (can be used in derived classes) More... | |
|
inline |
Default constructor.
|
virtualdefault |
Default destructor.
|
inline |
Method to get a copy of the last update (if there was any).
update | the reference to the InputObject to overwrite |
|
inlineprotectedvirtual |
This is the main input-handler method that will be automatically called from the given subject each time the subject receives input-data.
This method can be overloaded in derived classes to implement a customized input-handling strategy.
input | the input-data reference |
Implements Smart::IInputHandler< InputType >.
|
inlineprotected |
Store a copy of the last update within the internal object.
input | the input-data reference |
updateStatus | the optional update status to set (default is SMART_OK) |