ADTF
|
The cFilterBase class implements a basic filter that supports the ant::IFilter interfaces. More...
Public Types | |
typedef cFilterLevelmachine::tInitStage | tInitStage |
private d-pointer More... | |
Public Member Functions | |
cFilterBase () | |
Constructor. More... | |
virtual | ~cFilterBase () |
Destructor. | |
tResult | Init (tInitStage eStage) override |
Implements the default cFilterLevelmachine state machine call. More... | |
tResult | Shutdown (tInitStage eStage) override |
Implements the default cFilterLevelmachine state machine call. More... | |
tResult | Start () override |
Implements the default cFilterLevelmachine state machine calls. More... | |
tResult | Stop () override |
Implements the default cFilterLevelmachine state machine calls. More... | |
IFilter::tFilterState | GetState () const override |
tResult | SetState (IFilter::tFilterState eState) override |
Sets the state of the filter. More... | |
tResult | RegisterPin (const ucom::ant::iobject_ptr< IPin > &pPin) override |
tResult | UnregisterPin (const ucom::ant::iobject_ptr< IPin > &pPin) override |
tResult | RegisterBindingObject (const ucom::ant::iobject_ptr< IBindingObject > &pBindingObject) override |
tResult | RegisterRunner (const ucom::ant::iobject_ptr< IRunner > &pBindingObject) override |
virtual tResult | RegisterPin (const ucom::ant::iobject_ptr< IPin > &pIPin) |
gets cDataBinding RegisterPin Variant visible | |
tResult | RegisterPin (const ucom::ant::iobject_ptr< IInPin > &pIInPin) |
gets cDataBinding RegisterPin Variant visible | |
tResult | RegisterPin (const ucom::ant::iobject_ptr< IOutPin > &pIOutPin) |
gets cDataBinding RegisterPin Variant visible | |
virtual tResult | RegisterBindingObject (const ucom::ant::iobject_ptr< IBindingObject > &pBindingObject) |
RegisterBindingObject will register the given pBindingObject within the internal registry. More... | |
tResult | RegisterBindingObject (const ucom::ant::iobject_ptr< IBindingServer > &pBindingServer) |
Registers the given pBindingServer . More... | |
tResult | RegisterBindingObject (const ucom::ant::iobject_ptr< IBindingClient > &pBindingClient) |
Registers the given pBindingClient . More... | |
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 | RegisterInnerPipe (const ucom::ant::iobject_ptr< ITriggerPipe > &pTriggerPipe) |
Registers and publishes an inner ITriggerPipe object to the IRuntimeBehaviour. More... | |
Public Member Functions inherited from object< cFilterLevelmachine, ucom::ant::cClassInfo, runtime_behaviour< interface_binding< data_binding< named_graph_object< IFilter > > > > > | |
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... | |
Protected Attributes | |
ucom::object_ptr< services::ant::IReferenceClock > | _clock |
A reference to the clock service. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IObject | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
The cFilterBase class implements a basic filter that supports the ant::IFilter interfaces.
The cFilterBase uses the cFilterLevelmachine that transforms the the IFilter::SetState calls to the cFilterBase::Init / cFilterBase::Shutdown / cFilterBase::Start and cFilterBase::Stop events.
Definition at line 33 of file filterbase.h.
private d-pointer
The tInitStage indicates the Init Stages call.
Definition at line 46 of file filterbase.h.
cFilterBase | ( | ) |
Constructor.
|
override |
Implements the default cFilterLevelmachine state machine call.
This will be called during filter state changes and can be overridden by the filter implementation.
[in] | eStage | The Init Stage. See state machine documentation in Filter State Machine. |
tResult RegisterBindingObject |
Registers the given pBindingClient
.
[in] | pBindingClient | The binding client to register. |
virtual tResult RegisterBindingObject |
RegisterBindingObject will register the given pBindingObject
within the internal registry.
[in] | pBindingObject | The binding object to register. |
ERR_NOERROR | No Error. |
ERR_UNEXPECTED | Internal Error occurred. |
ERR_POINTER | pBindingObject is invalid. |
ERR_INVALID_ARG | Can not register a Object with the same name twice. |
tResult RegisterBindingObject |
Registers the given pBindingServer
.
[in] | pBindingServer | The binding server to register. |
virtual tResult RegisterInnerPipe |
Registers and publishes an inner ITriggerPipe object to the IRuntimeBehaviour.
pTriggerPipe | [in] The ITriggerPipe to register. |
virtual tResult RegisterRunner |
Create and Registers a IRunner object for your oRunnable
with the name strName
.
strName | [in] Name of the Runner to create and register. |
oRunnable | [in] The reference to the Runnable implemetation which will be called. |
oRunnable
lives as long the runner is registered.ERR_INVALID_ARG | A Runner with the same name is already registered. |
virtual tResult RegisterRunner |
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.
pRunner | [in] The object reference to the Runner which will be published. |
ERR_INVALID_ARG | A Runner with the same name is already registered. |
|
override |
Sets the state of the filter.
The SetState method sets the filters's state (running or stopped). Please see Filter State Machine for further information on when the state of a filter changes.
[in] | eState | The filters state to switch to. |
|
override |
Implements the default cFilterLevelmachine state machine call.
This will be called during filter state changes and can be overridden by the filter implementation.
[in] | eStage | The Init Stage. See state machine documentation in Filter State Machine. |
|
override |
Implements the default cFilterLevelmachine state machine calls.
This will be called during filter state changes and can be overridden by the filter implementation.
See Filter State Machine.
|
override |
Implements the default cFilterLevelmachine state machine calls.
Keep in mind, that streaming and triggers might still occur during and after this function is called. Streaming will only have stopped completely before any other following state change. If your filter has any blocking operations during the handling of triggers, make sure that you cancel them in this function.
This will be called during filter state changes and can be overridden by the filter implementation.
See Filter State Machine.
|
protected |
A reference to the clock service.
The variable will be set, in cFilterBase::Init(StageFirst).
Definition at line 55 of file filterbase.h.