Interface class for samples that are read from a Reader.
More...
#include <sample.h>
|
| virtual void | setTimeStamp (std::chrono::nanoseconds time_stamp)=0 |
| | Set the Time Stamp.
|
| |
| virtual void | setFlags (uint32_t flags)=0 |
| | Set the Flags.
|
| |
| virtual void | setSubStreamId (uint32_t substream_id)=0 |
| | Set the Sub Stream Id, if needed.
|
| |
| virtual void * | beginBufferWrite (size_t size)=0 |
| | allocates the memory buffer for sample data
|
| |
| virtual void | endBufferWrite ()=0 |
| | ends writing to the memory allocated with beginBufferWrite
|
| |
| virtual void | addInfo (uint32_t key, DataType type, uint64_t raw_bytes)=0 |
| | Adds a additional sample information.
|
| |
Interface class for samples that are read from a Reader.
◆ addInfo()
| virtual void adtf_file::ReadSample::addInfo |
( |
uint32_t | key, |
|
|
DataType | type, |
|
|
uint64_t | raw_bytes ) |
|
pure virtual |
Adds a additional sample information.
- Parameters
-
| key | key for the sample information |
| type | data type of the information |
| raw_bytes | the raw value of the information |
Implemented in adtf_file::DefaultSample.
◆ beginBufferWrite()
| virtual void * adtf_file::ReadSample::beginBufferWrite |
( |
size_t | size | ) |
|
|
pure virtual |
allocates the memory buffer for sample data
- Parameters
-
| size | the memory to allocate in bytes |
- Returns
- void* the pointer to the memory
Implemented in adtf_file::DefaultSample.
◆ endBufferWrite()
| virtual void adtf_file::ReadSample::endBufferWrite |
( |
| ) |
|
|
pure virtual |
◆ setFlags()
| virtual void adtf_file::ReadSample::setFlags |
( |
uint32_t | flags | ) |
|
|
pure virtual |
◆ setSubStreamId()
| virtual void adtf_file::ReadSample::setSubStreamId |
( |
uint32_t | substream_id | ) |
|
|
pure virtual |
◆ setTimeStamp()
| virtual void adtf_file::ReadSample::setTimeStamp |
( |
std::chrono::nanoseconds | time_stamp | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: