ADTF  3.18.2
cRuntimeBehaviour

Default implementation for the IRuntimeBehaviour. More...

Inheritance diagram for cRuntimeBehaviour:
[legend]

Public Member Functions

tResult GetRunners (ucom::ant::iobject_list< IRunner > &lstRunners) const
 copydoc IRuntimeBehaviour::GetRunners
 
tResult FindRunner (const char *strName, ucom::ant::iobject_ptr< ucom::ant::IObject > &pRunner) const
 copydoc IRuntimeBehaviour::FindRunner
 
tResult GetInnerPipes (ucom::ant::iobject_list< ITriggerPipe > &lstInnerpTriggerPipe) const
 copydoc IRuntimeBehaviour::GetInnerPipes
 
virtual tResult RegisterRunner (const ucom::ant::iobject_ptr< IRunner > &pRunner)
 Registers and publishes a IRunner object to the IRuntimeBehaviour. More...
 
virtual tResult RegisterRunner (const char *strName, base::ant::IRunnable &oRunnable)
 Create and Registers a IRunner object for your oRunnable with the name strName. More...
 
virtual tResult UnregisterRunner (const ucom::ant::iobject_ptr< IRunner > &pRunner)
 Unregisters a Runner. More...
 
tResult ReleaseRunners ()
 Release every registered Runners
More...
 
virtual tResult RegisterInnerPipe (const ucom::ant::iobject_ptr< ITriggerPipe > &pTriggerPipe)
 Registers and publishes an inner ITriggerPipe object to the IRuntimeBehaviour. More...
 
virtual tResult UnregisterInnerPipe (const ucom::ant::iobject_ptr< ITriggerPipe > &pTriggerPipe)
 Unregisters an inner ITriggerPipe object. More...
 
tResult ReleaseTriggerPipes ()
 Release and unregister every registered TriggerPipes. More...
 

Protected Member Functions

 cRuntimeBehaviour ()
 CTOR.
 
virtual ~cRuntimeBehaviour ()
 DTOR.
 

Private Member Functions

 A_UTILS_D (cRuntimeBehaviour)
 private _d-pointer
 

Detailed Description

Default implementation for the IRuntimeBehaviour.

Definition at line 21 of file runtime_behaviour.h.

Member Function Documentation

◆ RegisterInnerPipe()

virtual tResult RegisterInnerPipe ( const ucom::ant::iobject_ptr< ITriggerPipe > &  pTriggerPipe)
virtual

Registers and publishes an inner ITriggerPipe object to the IRuntimeBehaviour.

Parameters
pTriggerPipe[in] The ITriggerPipe to register.
Returns
Standard Result Code

◆ RegisterRunner() [1/2]

virtual tResult RegisterRunner ( const char *  strName,
base::ant::IRunnable oRunnable 
)
virtual

Create and Registers a IRunner object for your oRunnable with the name strName.

Parameters
strName[in] Name of the Runner to create and register.
oRunnable[in] The reference to the Runnable implemetation which will be called.
Remarks
Make sure the instance of the oRunnable lives as long the runner is registered.
Returns
Standard Result Code
Return values
ERR_INVALID_ARGA Runner with the same name is already registered.

Reimplemented in cGraphObject.

◆ RegisterRunner() [2/2]

virtual tResult RegisterRunner ( const ucom::ant::iobject_ptr< IRunner > &  pRunner)
virtual

Registers and publishes a IRunner object to the IRuntimeBehaviour.

This makes sure the runner is only registered once. The Runner has to have a name already set. You can not register a Runner with the same name twice.

Parameters
pRunner[in] The object reference to the Runner which will be published.
Returns
Standard Result Code
Return values
ERR_INVALID_ARGA Runner with the same name is already registered.

Reimplemented in cGraphObject.

◆ ReleaseRunners()

tResult ReleaseRunners ( )

Release every registered Runners

Returns
Standard Result Code

◆ ReleaseTriggerPipes()

tResult ReleaseTriggerPipes ( )

Release and unregister every registered TriggerPipes.

Returns
Standard Result Code

◆ UnregisterInnerPipe()

virtual tResult UnregisterInnerPipe ( const ucom::ant::iobject_ptr< ITriggerPipe > &  pTriggerPipe)
virtual

Unregisters an inner ITriggerPipe object.

Parameters
pTriggerPipe[in] The ITriggerPipe to unregister.
Returns
Standard Result Code

◆ UnregisterRunner()

virtual tResult UnregisterRunner ( const ucom::ant::iobject_ptr< IRunner > &  pRunner)
virtual

Unregisters a Runner.

Parameters
pRunner[in] The object reference to the Runner which will be unregistered.
Returns
Standard Result Code
Return values
ERR_INVALID_ARGA Runner with the same name is already registered.