|
ADTF
|
#include <triggerpipe.h>
Inherits adtf::ucom::catwo::object< base::ant::IRunnable, base::flash::IRunnable, ant::ITriggerPipeSource, ant::ITriggerPipeItem, quiet::ITriggerPipeHierachy, INTERFACES... >, and detail::cTriggerPipeItemBase.
Public Member Functions | |
| trigger_pipe_item ()=default | |
| CTOR. | |
| trigger_pipe_item (const char *strName) | |
| trigger_pipe_item (const char *strName, adtf::base::ant::IRunnable &oRunnable) | |
| void | SetRunnable (adtf::base::ant::IRunnable &oRunnable) |
| void | SetRunnable (adtf::base::flash::IRunnable &oRunnable) |
| template<typename CALLABLE> | |
| void | SetCallable (CALLABLE &&callable) |
| tResult | RegisterSubItem (const adtf::ucom::ant::iobject_ptr< ITriggerPipeItem > &pSubRun, ITriggerPipeItem::tPriority ui32Prio) override |
| tResult | UnregisterSubItem (const adtf::ucom::ant::iobject_ptr< ITriggerPipeItem > &pSubRun) override |
| tResult | ChangePriority (const adtf::ucom::ant::iobject_ptr< ITriggerPipeItem > &pSubRun, ITriggerPipeItem::tPriority ui32Prio) override |
| tResult | GetSubItems (adtf::ucom::ant::iobject_enum< const ITriggerPipeItem > &lstSubItems) const override |
| tResult | Run (tTimeStamp tmTimeofActivation, adtf::base::ant::IRunnable::tActivationType ui32ActivationType, const void *pvUserData, size_t nUserDataSize) override |
| tResult | Run (adtf::base::flash::tNanoSeconds tmTimeofActivation, adtf::base::ant::IRunnable::tActivationType ui32ActivationType, const void *pvUserData, size_t nUserDataSize) override |
| tResult | RegisterTriggerParent (const ant::ITriggerPipeSource *pParent) override |
| tResult | UnregisterTriggerParent (const ant::ITriggerPipeSource *pParent) override |
| tResult | GetTriggerParents (const ucom::nitro::ifunction< tResult(const ant::ITriggerPipeSource *)> &fnCallback) const override |
| tResult | GetName (base::ant::IString &&strName) const |
| tResult | SetName (const char *strName) |
| tResult | SetParent (const ucom::ant::IObject *oParentObject) |
| tResult | GetParent (const ucom::ant::IObject *&poParentObject) const |
Public Member Functions inherited from adtf::ucom::catwo::object< base::ant::IRunnable, base::flash::IRunnable, ant::ITriggerPipeSource, ant::ITriggerPipeItem, quiet::ITriggerPipeHierachy, INTERFACES... > | |
| tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
| Query interfaces on an object. | |
| tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
| Provides const correct interface querying. | |
| void | Destroy () const override |
| Switch from non-virtual destructor to virtual destructor. | |
| tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
| Query interfaces on an object. | |
| tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
| Provides const correct interface querying. | |
| void | Destroy () const override |
| Switch from non-virtual destructor to virtual destructor. | |
| tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
| Query interfaces on an object. | |
| tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
| Provides const correct interface querying. | |
| void | Destroy () const override |
| Switch from non-virtual destructor to virtual destructor. | |
Public Member Functions inherited from adtf::ucom::ant::IObject | |
| ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Additional Inherited Members | |
Protected Member Functions inherited from adtf::ucom::ant::IObject | |
| ~IObject ()=default | |
| Protected destructor --> Only the final implementation can be destroyed! | |
Default implementation class template for a ITriggerPipeItem. This template helps to use the default implementation in certain classes and will prevent multiple inheritance.
| INTERFACES | All needed ucom interfaces to expose, non-ucom interfaces and base classes to derive from. |
|
inline |
CTOR with name
| [in] | strName | Name of the pipe item |
|
inline |
CTOR further initializer
| [in] | strName | Name of the pipe item |
| [in] | oRunnable | Runnable Reference to call the Run |
|
inlineoverride |
Changes the priority of the pSubRun.
| [in] | pSubRun | TriggerPipeItem to register. |
| [in] | ui32Prio | Priority of Run call. |
|
inline |
Gets the Name of the object to the IString rvalue reference strName.
| [in] | strName | String reference to return the name to |
|
inline |
Retrieves the Parent of the object. Only ONE parent is possible !
| [in,out] | poParentObject | Parent Object reference where to retrieve to. |
| ERR_POINTER | No parent set. |
|
inlineoverride |
Retrieves a list of the registered Items.
| [in] | lstSubItems | enumeration interface where to push the object references to. |
|
inlineoverride |
Retrieve all trigger pipe parents of this item.
| [in,out] | fnCallback | This will be called for each parent item. |
|
inlineoverride |
Registers the pSubRun as SubItem of the source. The source will forward a Run call to every registered ITriggerPipeItem in order of ui32Prio.
| [in] | pSubRun | TriggerPipeItem to register. |
| [in] | ui32Prio | Priority of Run call. |
|
inlineoverride |
Registers the given trigger pipe source as a parent of this item;
| [in] | pParent | The new parent in the trigger pipe. |
|
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. |
|
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. |
|
inline |
Sets the Runnable implementation to call if Run is called by the trigger item. The callable object will be wrapped into a base::runnable and managed by the trigger pipe item. It needs to follow the signatures of the possible runnable Run function:
| [in] | callable | The callable object to wrap into a base::runnable and call on Run. |
|
inline |
Sets the Name of the object.
| [in] | strName | Name of the object to set. |
|
inline |
Sets the Parent of the object. Only ONE parent is possible !
| [in] | oParentObject | Parent Object reference to set. |
|
inline |
Adds the Runnable implementation to call if Run is called.
| [in] | oRunnable | The reference to the Runnable instance. |
oRunnable lives at least longer than the trigger_pipe_item
|
inline |
Adds the Runnable implementation to call if Run is called.
| [in] | oRunnable | The reference to the Runnable instance. |
oRunnable lives at least longer than the trigger_pipe_item
|
inlineoverride |
Unregisters the pSubRun from the source.
| [in] | pSubRun | TriggerPipeItem to unregister. |
|
inlineoverride |
Unregisters the given trigger pipe source that is no longer a parent of this item;
| [in] | pParent | The parent to unregister. |