ADTF
|
The cSample class implements a basic sample which contains streaming data. More...
Public Member Functions | |
ADTF_CLASS_ID_NAME (cSample, "sample.streaming.adtf.cid", "ADTF Default Sample") | |
private d pointer More... | |
cSample () | |
resolver for multiple inheritance on IObject More... | |
cSample (const ucom::ant::iobject_ptr< ISampleBufferFactory > &oSampleFactory) | |
Construct an instance of a memory managed sample MemoryManaged BufferFactory ... More... | |
virtual | ~cSample () |
DTOR. | |
tResult | Lock (ucom::ant::iobject_ptr_shared_locked< const adtf::streaming::ant::ISampleBuffer > &oSampleBuffer) const override |
tResult | WriteLock (ucom::ant::iobject_ptr_locked< ISampleBuffer > &oSampleBuffer, size_t szPreAllocateSize) override |
tResult | Set (const ant::ISample &oSample) override |
tResult | Get (ant::ISample &oSample) const override |
tResult | Reset () override |
tTimeStamp | GetTime () const |
tResult | SetTime (tTimeStamp tmTimeStamp) |
uint32_t | GetFlags () const override |
tResult | SetFlags (uint32_t ui32Flags) override |
tResult | Set (tTimeStamp tmTime, const void *pData, size_t nSize, uint32_t ui32Flags=0) override |
tResult | GetSampleBufferFactory (ucom::ant::iobject_ptr< ISampleBufferFactory > &oFactory) const override |
tResult | GetSampleInfo (ucom::ant::iobject_ptr< const ISampleInfo > &oSampleInfo) const override |
tResult | GetSampleInfo (ucom::ant::iobject_ptr< ISampleInfo > &oSampleInfo) override |
tResult | GetSampleLog (ucom::ant::iobject_ptr< ISampleLog > &oSampleLog) const override |
base::flash::tNanoSeconds | GetTimeNs () const override |
tResult | SetTime (base::flash::tNanoSeconds tmTimeStamp) override |
tResult | Set (base::flash::tNanoSeconds tmTimeStamp, const void *pData, size_t szSize, uint32_t ui32Flags=0) override |
uint32_t | GetSubStreamId () const override |
void | SetSubStreamId (uint32_t nSubStreamId) override |
tResult | SetSampleBufferFactory (const ucom::ant::iobject_ptr< ISampleBufferFactory > &pFactory) |
Sets the reference to the buffer factory, which will be used to create the user data content in ISampleBuffer. More... | |
tResult | SetSampleInfo (const ucom::ant::iobject_ptr< ISampleInfo > &oInfo) |
tResult | SetSampleLog (const ucom::ant::iobject_ptr< ISampleLog > &oLog) |
![]() | |
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... | |
![]() | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Private Member Functions | |
cSample (const cSample &)=delete | |
delete copy CTOR (Samples will be treated only by ISample inferface) | |
cSample (cSample &&)=delete | |
delete move CTOR (Samples will be treated only by ISample inferface) | |
cSample & | operator= (const cSample &)=delete |
delete copy operator (Samples will be treated only by ISample inferface) | |
cSample & | operator= (cSample &&)=delete |
delete mode operator (Samples will be treated only by ISample inferface) | |
Additional Inherited Members | |
![]() | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
The cSample class implements a basic sample which contains streaming data.
A sample is a container class to write time based data on the OutPins (IOutPin) connected SampleStream (ISampleStream). The main interface too ensure binary compatibility is ISample.
cSample | ( | ) |
resolver for multiple inheritance on IObject
CTOR. Default ISampleBufferFactory in this case will use new and delete !
cSample | ( | const ucom::ant::iobject_ptr< ISampleBufferFactory > & | oSampleFactory | ) |
Construct an instance of a memory managed sample MemoryManaged BufferFactory ...
see adtf::streaming::ISampleBufferFactory and adtf::services::IMemoryManager. By default this implementation of ISample uses cSampleBufferFactoryDefaultNew if no other factory is set.
ADTF_CLASS_ID_NAME | ( | cSample | , |
"sample.streaming.adtf.cid" | , | ||
"ADTF Default Sample" | |||
) |
private d pointer
ClassInfo implementation for adtf::ucom::IClassInfo
tResult SetSampleBufferFactory | ( | const ucom::ant::iobject_ptr< ISampleBufferFactory > & | pFactory | ) |
Sets the reference to the buffer factory, which will be used to create the user data content in ISampleBuffer.
By default this implementation of ISample uses cSampleBufferFactoryDefaultNew if no other factory is set.
[in] | pFactory | object_ptr reference to the sample buffer factory. |
ERR_INVALID_ARG | Change is not valid. |