#include <samplequeue_intf.h>
Inherits adtf::ucom::ant::IObject.
|
|
| ~ISampleQueue ()=default |
| | not destructable
|
| |
|
| ~IObject ()=default |
| | Protected destructor --> Only the final implementation can be destroyed!
|
| |
The ISampleQueue Interface provides methods for manipulating a queue of samples.
◆ tSampleQueueGetMethod
This Structure defines GetMethodes for the function ISampleQueue::Get.
| Enumerator |
|---|
| SQG_GetLast | gets the very last sample
|
| SQG_GetNearest | gets the nearest sample refering to the given time
|
| SQG_GetNearestNewer | gets the nearest sample refering to the given time, but only returns the newer one
|
| SQG_GetNearestOlder | gets the nearest sample refering to the given time, but only returns the older one
|
| SQG_GetNewest | gets the newest sample
|
| SQG_GetOldest | gets the oldest sample in the queue
|
| SQG_GetUser | Offset for user methods.
|
◆ Clear()
| virtual tResult adtf::streaming::ant::ISampleQueue::Clear |
( |
| ) |
|
|
pure virtual |
Removes all samples from the queue
- Returns
- Standard Result Code
◆ Empty()
| virtual bool adtf::streaming::ant::ISampleQueue::Empty |
( |
| ) |
|
|
pure virtual |
Checks if the queue is empty
- Return values
-
| true | queue is empty |
| false | queue is not empty |
◆ Get()
| virtual tResult adtf::streaming::ant::ISampleQueue::Get |
( |
iobject_ptr< ISample > & | pSample, |
|
|
tTimeStamp | tmTimeStamp, |
|
|
tTimeStamp | tmDeltaT, |
|
|
uint32_t | ui32GetMethod ) |
|
pure virtual |
Get a sample from the queue
- Parameters
-
| pSample | [out] object reference that to return a found sample |
| tmTimeStamp | [in] The timestamp of the search for sample |
| tmDeltaT | [in] The maximum timestamp deviation that the sample is allowed to have from tmTime |
| ui32GetMethod | [in] Special params for how to search the sample |
- See also
- tSampleQueueGetMethod. The parameters tmTime and tmDeltaT are ignored if the parameter ui32GetMethod is set to SQG_GetLast, SQG_GetNewest and SQG_GetOldest
- Returns
- Standard Result Code
◆ GetSettings()
| virtual tResult adtf::streaming::ant::ISampleQueue::GetSettings |
( |
tTimeStamp & | tmTimeRange, |
|
|
size_t & | szSizeRange ) const |
|
pure virtual |
Returns the current time range and size range of the sample
- Parameters
-
| [out] | tmTimeRange | time range of the queue |
| [out] | szSizeRange | size range of the queue to return |
- Returns
- Standard Result code
◆ GetSize()
| virtual size_t adtf::streaming::ant::ISampleQueue::GetSize |
( |
| ) |
|
|
pure virtual |
Retrieves the size of the queue.
- Returns
- The Size
◆ GetTimes()
| virtual void adtf::streaming::ant::ISampleQueue::GetTimes |
( |
tTimeStamp & | tmFirst, |
|
|
tTimeStamp & | tmLast ) const |
|
pure virtual |
Gets the current time of first and last sample in the queue
- Parameters
-
| [out] | tmFirst | timestamp of the first sample in queue |
| [out] | tmLast | timestamp of the last sample in queue |
- Returns
- Standard Result code
◆ Pop() [1/2]
| virtual tResult adtf::streaming::ant::ISampleQueue::Pop |
( |
| ) |
|
|
pure virtual |
Remove the first sample from the queue
- Returns
- Standard Result Code
◆ Pop() [2/2]
Remove the first sample from the queue
- Parameters
-
| pSample | [out] An optional pointer to the removed sample |
- Returns
- Standard Result Code
◆ Push()
Push a sample onto the queue Implementations may sort the queue by the timestamps of the sample
- Parameters
-
- Returns
- Standard Result Code
◆ RegisterQueueEventSink()
Registers a new queue event sink
- Parameters
-
| pQueueEventSink | [in] The new queue event sink |
- Returns
- Standard Result Code
◆ SetSettings()
| virtual tResult adtf::streaming::ant::ISampleQueue::SetSettings |
( |
const tTimeStamp | tmTimeRange, |
|
|
const size_t | szSizeRange ) |
|
pure virtual |
Sets the current time range and size range of the sample
- Parameters
-
| [in] | tmTimeRange | time range of the queue to set (set to -1 set no range) |
| [in] | szSizeRange | size range of the queue to return (set to -1 set no range) |
- Returns
- Standard Result code
◆ Top()
Retrieves the first sample from the queue
- Parameters
-
| pSample | [out] A pointer that will be filled to point to the first sample |
- Returns
- Standard Result Code
◆ UnregisterQueueEventSink()
Unregisters a queue event sink
- Parameters
-
| pQueueEventSink | [in] The queue event sink to unregister |
- Returns
- Standard Result Code
The documentation for this class was generated from the following file: