The cFilterBase class implements a basic filter that supports the ant::IFilter interfaces.
More...
#include <filterbase.h>
Inherits adtf::ucom::catwo::object< cFilterLevelmachine, ucom::ant::cClassInfo, runtime_behaviour< interface_binding< data_binding< named_graph_object< IFilter > > > > >.
|
|
| ~IObject ()=default |
| | Protected destructor --> Only the final implementation can be destroyed!
|
| |
◆ tInitStage
◆ cFilterBase()
| adtf::streaming::ant::cFilterBase::cFilterBase |
( |
| ) |
|
◆ ~cFilterBase()
| virtual adtf::streaming::ant::cFilterBase::~cFilterBase |
( |
| ) |
|
|
virtual |
◆ Init()
Implements the default cFilterLevelmachine state machine call.
This will be called during filter state changes and can be overridden by the filter implementation.
- Note
- Make sure to call the parent implementation of the used base class at the beginning within your overriding function!
- Parameters
-
| [in] | eStage | The Init Stage. See state machine documentation in filter_state_machine. |
- Returns
- Standard Result Code. Any Error will break further initialization of the cFilterGraph and the Runlevel change.
◆ RegisterBindingObject() [1/2]
Registers the given pBindingClient.
- Parameters
-
| [in] | pBindingClient | The binding client to register. |
- Returns
- see return values of RegisterBindingObject(IBindingObject).
◆ RegisterBindingObject() [2/2]
Registers the given pBindingServer.
- Parameters
-
| [in] | pBindingServer | The binding server to register. |
- Returns
- see return values of RegisterBindingObject(IBindingObject).
◆ RegisterInnerPipe()
◆ RegisterRunner()
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. |
- Returns
- Standard Result Code
- Return values
-
| ERR_INVALID_ARG | A Runner with the same name is already registered. |
◆ SetState()
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.
- Parameters
-
| [in] | eState | The filters state to switch to. |
- Returns
- Returns a standard result code.
◆ Shutdown()
Implements the default cFilterLevelmachine state machine call.
This will be called during filter state changes and can be overridden by the filter implementation.
- Note
- Make sure to call the parent implementation of the used base class at the end within your overriding function!
- Parameters
-
| [in] | eStage | The Init Stage. See state machine documentation in filter_state_machine. |
- Returns
- Standard Result Code.
◆ Start()
| tResult adtf::streaming::ant::cFilterBase::Start |
( |
| ) |
|
|
override |
Implements the default cFilterLevelmachine state machine calls.
This will be called during filter state changes and can be overridden by the filter implementation.
- Note
- Make sure to call the parent implementation of the used base class at the beginning within your overriding function!
See filter_state_machine.
- Returns
- Standard Result Code.
◆ Stop()
| tResult adtf::streaming::ant::cFilterBase::Stop |
( |
| ) |
|
|
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.
- Note
- Make sure to call the parent implementation of the used base class at the end within your overriding function!
See filter_state_machine.
- Returns
- Standard Result Code.
◆ _clock
A reference to the Reference. The variable will be set, in cFilterBase::Init(StageFirst).
- See also
- IReferenceClock.
- Warning
- Always check for NULL, it is possible the filter will run within an environment where the clock is not available.
The documentation for this class was generated from the following file:
- src/libraries/streaming3/include/adtfstreaming3/filterbase.h