ADTF  3.13.2
runtime_behaviour.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include "runner_intf.h"
10 
11 namespace adtf
12 {
13 namespace streaming
14 {
15 namespace ant
16 {
17 
22  {
25 
26 
27  protected:
31  virtual ~cRuntimeBehaviour();
32 
33  public: // implements IRuntimeBehaviour
39  tResult GetInnerPipes(ucom::ant::iobject_list<ITriggerPipe>& lstInnerpTriggerPipe) const;
40 
52 
64  virtual tResult RegisterRunner(const tChar* strName, base::ant::IRunnable& oRunnable);
65 
75 
81 
103  };
104 
112  template<typename Interface>
113  class runtime_behaviour : public ucom::catwo::object<IRuntimeBehaviour, Interface>, public cRuntimeBehaviour
114  {
115  public:
118  {
119  return cRuntimeBehaviour::GetRunners(lstRunners);
120  }
123  {
124  return cRuntimeBehaviour::FindRunner(strName, pRunner);
125  }
127  tResult GetInnerPipes(ucom::ant::iobject_list<ITriggerPipe>& lstInnerTriggerPipes) const override
128  {
129  return cRuntimeBehaviour::GetInnerPipes(lstInnerTriggerPipes);
130  }
131  };
132 
133 
134 } //namespace ant
135 
137 using ant::runtime_behaviour;
138 
139 } //namespace streaming
140 } // namespace adtf
Interface definition for a container of objects.
Definition: object_list.h:21
virtual tResult RegisterRunner(const ucom::ant::iobject_ptr< IRunner > &pRunner)
Registers and publishes a IRunner object to the IRuntimeBehaviour.
A common result class usable as return value throughout.
Definition: result.h:23
Namespace for entire ADTF SDK.
virtual tResult UnregisterRunner(const ucom::ant::iobject_ptr< IRunner > &pRunner)
Unregisters a Runner.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
tResult GetRunners(ucom::ant::iobject_list< IRunner > &lstRunners) const
copydoc IRuntimeBehaviour::GetRunners
Default implementation for the IRuntimeBehaviour.
tResult FindRunner(const tChar *strName, ucom::ant::iobject_ptr< ucom::ant::IObject > &pRunner) const
copydoc IRuntimeBehaviour::FindRunner
tResult FindRunner(const tChar *strName, ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pRunner) const override
Find a Runner with the name of strName (only const access)
tResult GetInnerPipes(ucom::ant::iobject_list< ITriggerPipe > &lstInnerTriggerPipes) const override
Returns the current internal TriggerPipes.
virtual tResult RegisterInnerPipe(const ucom::ant::iobject_ptr< ITriggerPipe > &pTriggerPipe)
Registers and publishes an inner ITriggerPipe object to the IRuntimeBehaviour.
tResult GetRunners(ucom::ant::iobject_list< IRunner > &lstRunners) const override
Returns the current Runners.
The Runnable interface defines common methods for a running component.
Definition: runnable_intf.h:25
tResult ReleaseRunners()
Release every registered Runners
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type)...
tResult GetInnerPipes(ucom::ant::iobject_list< ITriggerPipe > &lstInnerpTriggerPipe) const
copydoc IRuntimeBehaviour::GetInnerPipes
Default Class Template for a Runtime Behaviour implementation.
Base object pointer to realize binary compatible reference counting in interface methods.
A_UTILS_D(cRuntimeBehaviour)
private _d-pointer
virtual tResult UnregisterInnerPipe(const ucom::ant::iobject_ptr< ITriggerPipe > &pTriggerPipe)
Unregisters an inner ITriggerPipe object.
Use this template if you want to implement an ucom::ant::IObject based Interface and/or subclass an ...
Definition: object.h:357
tResult ReleaseTriggerPipes()
Release and unregister every registered TriggerPipes.

Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Tue Nov 16 2021 by doxygen 1.8.14)