|
ADTF
|
Namespace for all functionality of the ADTF Streaming SDK provided since v3.5. More...
Namespaces | |
| namespace | detail |
| Namespace for all internally used functionality implemented. | |
Typedefs | |
| using | cDynamicSampleReader = sample_reader<ant::cDynamicSampleReaderQueue> |
| The cDynamicSampleReader will create a sample reader which will create a internal sample queue with unlimited size. | |
| template<tTimeStamp TIME_RANGE, bool STORELASTSAMPLE = true> | |
| using | time_limited_sample_reader = sample_reader<ant::time_limited_sample_reader_queue<TIME_RANGE>, STORELASTSAMPLE> |
| template<size_t MAX_SIZE, bool STORELASTSAMPLE = true> | |
| using | size_limited_sample_reader = sample_reader<ant::size_limited_sample_reader_queue<MAX_SIZE>, STORELASTSAMPLE> |
| using | cSingleSampleReader = size_limited_sample_reader<1> |
| The cSingleSampleReader will create a sample reader which will create a internal sample queue with only one sample which holds the last received sample always. | |
Functions | |
| template<typename Interface, typename InterfaceBinding> | |
| tResult | create_server (InterfaceBinding &oInterfaceBinding, const char *strServerName, const adtf::ucom::iobject_ptr< Interface > &pServerInterface) |
| template<typename Interface, typename InterfaceBinding> | |
| tResult | create_client (InterfaceBinding &oInterfaceBinding, const char *strClientName) |
| template<typename DATA_BINDING_IMPL_TYPE, typename READER_OR_WRITER, typename PIN_INTERFACE> | |
| tResult | create_pin (DATA_BINDING_IMPL_TYPE &oDataBindingImpl, READER_OR_WRITER &oStreamer, ucom::ant::iobject_ptr< PIN_INTERFACE > &pCreatedPin) |
| template<typename DATA_BINDING_IMPL_TYPE, typename READER_OR_WRITER> | |
| tResult | create_pin (DATA_BINDING_IMPL_TYPE &oDataBindingImpl, READER_OR_WRITER &oStreamer) |
| template<typename DATA_BINDING_IMPL_TYPE, typename READER_OR_WRITER, typename PIN_INTERFACE> | |
| tResult | create_pin (DATA_BINDING_IMPL_TYPE &oDataBindingImpl, READER_OR_WRITER &oStreamer, const char *strNameOfReaderAndPin, const ucom::iobject_ptr< const ant::IStreamType > &pStreamType, ucom::ant::iobject_ptr< PIN_INTERFACE > &pCreatedPin) |
| template<typename DATA_BINDING_IMPL_TYPE, typename READER_OR_WRITER> | |
| tResult | create_pin (DATA_BINDING_IMPL_TYPE &oDataBindingImpl, READER_OR_WRITER &oStreamer, const char *strNameOfReaderAndPin, const ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType) |
| tResult | alloc_sample (ucom::ant::iobject_ptr< ucom::ant::IObject > &pSample) |
| tResult | alloc_sample (ucom::ant::iobject_ptr< ucom::ant::IObject > &pSample, base::flash::tNanoSeconds nTimeStamp) |
| tResult | alloc_sample (ucom::ant::iobject_ptr< ucom::ant::IObject > &pSample, tTimeStamp nTimeStamp) |
| tResult | alloc_sample (ucom::ant::iobject_ptr< ucom::ant::IObject > &pSample, const char *strSampleCID) |
| tResult | alloc_sample (ucom::ant::iobject_ptr< ucom::ant::IObject > &pSample, const char *strSampleCID, base::flash::tNanoSeconds nTimeStamp) |
| tResult | alloc_sample (ucom::ant::iobject_ptr< ucom::ant::IObject > &pSample, const char *strSampleCID, tTimeStamp nTimeStamp) |
| base::flash::tNanoSeconds | get_sample_time (const ucom::ant::iobject_ptr< const ant::ISample > &pSample) |
| tResult | make_sample_reader (ISampleReader &oReader, const char *strNameOfReader, const ucom::iobject_ptr< const IStreamType > &pStreamType) |
| ISampleReader & | operator>> (ISampleReader &oSampleReader, ucom::ant::iobject_ptr< const ant::ISample > &pSample) |
| template<typename DATATYPE> | |
| ISampleReader & | operator>> (ISampleReader &oSampleReader, sample_data< DATATYPE > &oSampleData) |
| ISampleReader & | operator>> (ISampleReader &oSampleReader, ucom::ant::iobject_ptr< const ant::IStreamType > &pType) |
| ISampleReader & | operator>> (ISampleReader &oSampleReader, ISampleReader &(*pStreamfunc)(ISampleReader &)) |
| tResult | make_sample_writer (ISampleWriter &oWriter, const char *strNameOfWriter, const ucom::ant::iobject_ptr< const IStreamType > &pStreamType) |
| ISampleWriter & | operator<< (ISampleWriter &oSampleWriter, const ucom::ant::iobject_ptr< const ant::ISample > &pSample) |
| streaming operator to write a sample to the sample writer | |
| ISampleWriter & | operator<< (ISampleWriter &oSampleWriter, const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) |
| streaming operator to write a stream type change to the sample writer | |
| ISampleWriter & | operator<< (ISampleWriter &oSampleWriter, ISampleWriter &(*pStreamfunc)(ISampleWriter &)) |
| streaming operator to write a command to the sample writer | |
| ISampleWriter & | operator<< (ISampleWriter &oSampleWriter, const tResult &oError) |
| streaming operator to set the sample writers stream error | |
| template<typename DATA_TYPE> | |
| ISampleWriter & | operator<< (ISampleWriter &oSampleWriter, output_sample_data< DATA_TYPE > &&oOutputSampleData) |
streaming operator to write the sample of the output_sample_data to the sample writer. It automatically releases the given rvalue of oOutputSampleData | |
| ISampleReader & | operator>> (ISampleReader &oSampleReader, ISampleWriter &oSampleWriter) |
| template<typename DATA_TYPE> | |
| sample_writer< DATA_TYPE > & | operator<< (sample_writer< DATA_TYPE > &oSampleWriter, const DATA_TYPE &oSampleData) |
| tResult | is_compatible (const ant::IStreamType &oCheckedType, const ant::IStreamType &oExpectedType) |
| tResult | is_compatible (const ucom::ant::iobject_ptr< const ant::IStreamType > &pCheckedType, const ucom::ant::iobject_ptr< const ant::IStreamType > &pExpectedType) |
| tResult | is_compatible (const ant::IStreamType &oCheckedType, const ucom::ant::iobject_ptr< const ant::IStreamType > &pExpectedType) |
| tResult | is_compatible (const ucom::ant::iobject_ptr< const ant::IStreamType > &pCheckedType, const ant::IStreamType &oExpectedType) |
| template<typename DATABINDING_BEHAVIOUR_CLASS> | |
| tResult | create_inner_pipe (DATABINDING_BEHAVIOUR_CLASS &oComponent, adtf_util::cStringList lstItems) |
Namespace for all functionality of the ADTF Streaming SDK provided since v3.5.
The cDynamicSampleReader will create a sample reader which will create a internal sample queue with unlimited size.
This implementation uses the cDynamicSampleReaderQueue as dynamic sample queue implementation.
The cSingleSampleReader will create a sample reader which will create a internal sample queue with only one sample which holds the last received sample always.
| using adtf::streaming::flash::size_limited_sample_reader = sample_reader<ant::size_limited_sample_reader_queue<MAX_SIZE>, STORELASTSAMPLE> |
The size_limited_sample_reader will create a sample reader which will create a internal sample queue that is sample count item limited by the given TimeRange.
| MAX_SIZE | The count in amount of samples (has to be set while compile time!). |
| STORELASTSAMPLE | Option if the last sample received will be hold.
|
| using adtf::streaming::flash::time_limited_sample_reader = sample_reader<ant::time_limited_sample_reader_queue<TIME_RANGE>, STORELASTSAMPLE> |
The time_limited_sample_reader will create a sample reader which will create a internal sample queue that is time limited by the given TimeRange.
| TIME_RANGE | The timerange in micro seconds (has to be set while compile time!). |
| STORELASTSAMPLE | Option if the last sample received will be hold.
|
| tResult adtf::streaming::flash::alloc_sample | ( | ucom::ant::iobject_ptr< ucom::ant::IObject > & | pSample | ) |
Helper Function to get a ISample Instance through the adtf::ucom::ant::IRuntime.
| pSample | [in, out] object_ptr to a ISample if succeeded. The default CID will be the get_class_id<cSample>(). |
| tResult adtf::streaming::flash::alloc_sample | ( | ucom::ant::iobject_ptr< ucom::ant::IObject > & | pSample, |
| base::flash::tNanoSeconds | nTimeStamp ) |
Helper Function to get a ISample Instance through the adtf::ucom::ant::IRuntime.
| pSample | [in, out] object_ptr to a ISample if succeeded. The default CID will be the get_class_id<cSample>(). |
| nTimeStamp | [in] The timestamp of the sample. |
| tResult adtf::streaming::flash::alloc_sample | ( | ucom::ant::iobject_ptr< ucom::ant::IObject > & | pSample, |
| const char * | strSampleCID ) |
Helper Function to get a Sample Instance through the adtf::ucom::ant::IRuntime.
| pSample | [in, out] object_ptr to of Sample if succeeded. Due to the unknown interface you want receive it is provided as object_ptr<IObject>. |
| strSampleCID | [in] Sample object identifier (class id) of the sample class. If strSampleOID is empty then the get_class_id<cSample>() will be used. |
| tResult adtf::streaming::flash::alloc_sample | ( | ucom::ant::iobject_ptr< ucom::ant::IObject > & | pSample, |
| const char * | strSampleCID, | ||
| base::flash::tNanoSeconds | nTimeStamp ) |
Helper Function to get a Sample Instance through the adtf::ucom::ant::IRuntime.
| pSample | [in, out] object_ptr to of Sample if succeeded. Due to the unknown interface you want receive it is provided as object_ptr<IObject>. |
| strSampleCID | [in] Sample object identifier (class id) of the sample class. If strSampleOID is empty then the get_class_id<cSample>() will be used. |
| nTimeStamp | [in] The timestamp of the sample. |
| tResult adtf::streaming::flash::alloc_sample | ( | ucom::ant::iobject_ptr< ucom::ant::IObject > & | pSample, |
| const char * | strSampleCID, | ||
| tTimeStamp | nTimeStamp ) |
Helper Function to get a Sample Instance through the adtf::ucom::ant::IRuntime.
| pSample | [in, out] object_ptr to of Sample if succeeded. Due to the unknown interface you want receive it is provided as object_ptr<IObject>. |
| strSampleCID | [in] Sample object identifier (class id) of the sample class. If strSampleOID is empty then the get_class_id<cSample>() will be used. |
| nTimeStamp | [in] The timestamp of the sample. |
| tResult adtf::streaming::flash::alloc_sample | ( | ucom::ant::iobject_ptr< ucom::ant::IObject > & | pSample, |
| tTimeStamp | nTimeStamp ) |
Helper Function to get a ISample Instance through the adtf::ucom::ant::IRuntime.
| pSample | [in, out] object_ptr to a ISample if succeeded. The default CID will be the get_class_id<cSample>(). |
| nTimeStamp | [in] The timestamp of the sample. |
| tResult adtf::streaming::flash::create_client | ( | InterfaceBinding & | oInterfaceBinding, |
| const char * | strClientName ) |
Creates a binding client object for the given INTERFACE type and register it on the cFilterBase instance
| Interface | The IObject interface you want to register the binding client object for |
| InterfaceBinding | The class of the interface binding object |
| [in] | oInterfaceBinding | Interfacebinding instance to register the client object to |
| [in] | strClientName | name of the object to register |
|
inline |
Creates a trigger pipe and registers it at the given oFilter instance.
You can use an initializer list for the lstItems as follow:
This function will create a pipe where the "my_fancy_runner" will be called from "in_pin_1" if some a synchronous DataTrigger is received. "my_fanc_runner" will read data from "in_pin_1" by its Readers (or do something else) and writes data to the "out_pin_1". If the "my_fancy_runner" returns it will forward a synchronous DataTrigger to "out_pin_1".
| [in] | oComponent | databinding and runtime behavior instance where to register the trigger pipe. |
| [in] | lstItems | list of items of the trigger pipe. These items can be a registered Pin of the oFilter or a Runner of oFilter. |
| ERR_NOT_FOUND | A given name is not a Pin (InPin or OutPin) or a Runner registered on oFilter. |
| tResult adtf::streaming::flash::create_server | ( | InterfaceBinding & | oInterfaceBinding, |
| const char * | strServerName, | ||
| const adtf::ucom::iobject_ptr< Interface > & | pServerInterface ) |
Creates a binding server object for the given INTERFACE type and register it on the cFilterBase instance.
| Interface | The IObject interface you want to register the binding client object for |
| InterfaceBinding | The class of the interface binding object |
| [in] | oInterfaceBinding | interfacebinding instance to register the server object to |
| [in] | strServerName | name of the object to register |
| [in] | pServerInterface | INTERFACE implementation instance. This will be the Server Object retrieved by IBindingClient::GetServerObject and IBindingProxy::GetServerObject |
| base::flash::tNanoSeconds adtf::streaming::flash::get_sample_time | ( | const ucom::ant::iobject_ptr< const ant::ISample > & | pSample | ) |
Returns the sample time stamp with nanosecond precision.
This will check if the sample supports nanosecond precision (via adtf::streaming::flash::ISample) and convert the microseconds timestamp if not.
| [in] | pSample | The sample. |
| tResult adtf::streaming::flash::is_compatible | ( | const ant::IStreamType & | oCheckedType, |
| const ant::IStreamType & | oExpectedType ) |
Checks whether oCheckedType is compatible with oExpectedType
| [in] | oCheckedType | The type that should be checked for compatibility. |
| [in] | oExpectedType | The type that is expected. |
| tResult adtf::streaming::flash::is_compatible | ( | const ant::IStreamType & | oCheckedType, |
| const ucom::ant::iobject_ptr< const ant::IStreamType > & | pExpectedType ) |
Checks whether oCheckedType is compatible with oExpectedType
| [in] | oCheckedType | The type that should be checked for compatibility. |
| [in] | pExpectedType | The type that is expected. |
| tResult adtf::streaming::flash::is_compatible | ( | const ucom::ant::iobject_ptr< const ant::IStreamType > & | pCheckedType, |
| const ant::IStreamType & | oExpectedType ) |
Checks whether pCheckedType is compatible with oExpectedType
| [in] | pCheckedType | The type that should be checked for compatibility. |
| [in] | oExpectedType | The type that is expected. |
| tResult adtf::streaming::flash::is_compatible | ( | const ucom::ant::iobject_ptr< const ant::IStreamType > & | pCheckedType, |
| const ucom::ant::iobject_ptr< const ant::IStreamType > & | pExpectedType ) |
Checks whether oCheckedType is compatible with oExpectedType
| [in] | pCheckedType | The type that should be checked for compatibility. |
| [in] | pExpectedType | The type that is expected. |
|
inline |
streaming operator to set the sample writers stream error
| oSampleWriter | the sample writer to set the stream error state to |
| oError | the stream error state value |
|
inline |
streaming operator to write a sample to the sample writer
| oSampleWriter | the sample writer to write a sample to |
| pSample | the sample to write |
|
inline |
streaming operator to write a stream type change to the sample writer
| oSampleWriter | the sample writer to change the type |
| pType | the stream type to change to |
|
inline |
streaming operator to write a command to the sample writer
| oSampleWriter | the sample writer to write the command to |
| pStreamfunc | the command (streaming::flush(), streaming::trigger()) |
|
inline |
streaming operator to write the sample of the output_sample_data to the sample writer. It automatically releases the given rvalue of oOutputSampleData
| oSampleWriter | the sample writer to write the output sample data to |
| oOutputSampleData | the output sample data rvalue to write and release |