The ISampleQueue Interface provides methods for manipulating a queue of samples.
More...
The ISampleQueue Interface provides methods for manipulating a queue of samples.
Definition at line 61 of file samplequeue_intf.h.
◆ 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.
|
Definition at line 81 of file samplequeue_intf.h.
◆ Clear()
Removes all samples from the queue.
- Returns
- Standard Result Code
◆ Empty()
Checks if the queue is empty.
- Return values
-
true | queue is empty |
false | queue is not empty |
◆ Get()
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()
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 GetSize |
( |
| ) |
|
|
pure virtual |
Retrieves the size of the queue.
- Returns
- The Size
◆ GetTimes()
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]
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 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