ADTF
|
Default implementation class template for a ITriggerPipeItem. More...
Public Types | |
typedef trigger_pipe_source< INTERFACE > | _base_type |
used base type derived from | |
Public Member Functions | |
trigger_pipe_item ()=default | |
CTOR. | |
trigger_pipe_item (const char *strName) | |
CTOR with name. More... | |
trigger_pipe_item (const char *strName, adtf::base::ant::IRunnable &oRunnable) | |
CTOR further initializer. More... | |
tResult | SetFullName (const char *strName) |
tResult | Run (tTimeStamp tmTimeofActivation, adtf::base::ant::IRunnable::tActivationType ui32ActivationType, const void *pvUserData, size_t nUserDataSize) override |
This method will be called to activate the registered m_pRunnable by a given activation type. More... | |
void | SetRunnable (adtf::base::ant::IRunnable &oRunnable) |
Sets the Runnable implementation to call if Run is called. More... | |
Public Member Functions inherited from object< ITriggerPipeItem, trigger_pipe_source< ITriggerPipeItem > > | |
tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
Query interfaces on an object. More... | |
tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
Provides const correct interface querying. More... | |
void | Destroy () const override |
Destruct and deallocate instantiations of type IObject . More... | |
Public Member Functions inherited from IObject | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Private Attributes | |
adtf::base::ant::IRunnable * | m_pRunnable = _base_type::m_pNothingToDoRunnable |
Nothing to do runnable. More... | |
adtf::ucom::ant::object_ptr< adtf::base::elasto::IErrorHandling::IErrorHandler > | m_pErrorHandler |
Additional Inherited Members | |
Protected Member Functions inherited from IObject | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
Default implementation class template for a ITriggerPipeItem.
This template helps to use the default implementation in certain classes and will prevent multiple inheritance.
INTERFACE | The interface type derived from ITriggerPipeItem. |
Definition at line 154 of file triggerpipe.h.
|
inline |
CTOR with name.
[in] | strName | Name of the pipe item |
Definition at line 171 of file triggerpipe.h.
|
inline |
CTOR further initializer.
[in] | strName | Name of the pipe item |
[in] | oRunnable | Runnable Reference to call the Run |
Definition at line 177 of file triggerpipe.h.
References trigger_pipe_item< INTERFACE >::SetRunnable().
|
inlineoverride |
This method will be called to activate the registered m_pRunnable
by a given activation type.
Then the Registered subitems will be called in order of ITriggerPipeItem::tPriority.
[in] | tmTimeofActivation | Time of activation.Usually this is the StreamTime. |
[in] | ui32ActivationType | The activation type for running. |
[in] | pvUserData | pointer to a activation structure depending on the activation type. |
[in] | nUserDataSize | Size of the activation structure. (in byte) |
ERR_CANCELED | Depending on the caller(timer, cyclic thread) it will break cyclic running. |
Definition at line 202 of file triggerpipe.h.
References IErrorHandling::IErrorHandler::Handle(), IS_FAILED, trigger_pipe_item< INTERFACE >::m_pRunnable, IRunnable::Run(), and cTriggerPipeSourceImpl::RunSubs().
|
inline |
Sets the Runnable implementation to call if Run is called.
[in] | oRunnable | The reference to the Runnable instance. |
oRunnable
lives at least longer than the RunnerPipeItem Definition at line 225 of file triggerpipe.h.
References trigger_pipe_item< INTERFACE >::m_pRunnable.
Referenced by cRunner::cRunner(), trigger_pipe_item< INTERFACE >::trigger_pipe_item(), and cRunner::SetRunnable().
|
private |
Nothing to do runnable.
helper to prevent if statement within Run implementation
Definition at line 163 of file triggerpipe.h.
Referenced by trigger_pipe_item< INTERFACE >::Run(), and trigger_pipe_item< INTERFACE >::SetRunnable().