ImFusion C++ SDK 4.4.0
ImFusion::TimestampedPayload< T > Struct Template Reference

#include <ImFusion/Stream/BackgroundThreadConsumer.h>

Helper struct uses as container for the BackgroundThreadQueue data elements. More...

Detailed Description

template<typename T>
struct ImFusion::TimestampedPayload< T >

Helper struct uses as container for the BackgroundThreadQueue data elements.

It allows to carry stream data's timestamps along.

Public Member Functions

 TimestampedPayload (std::unique_ptr< T > data, unsigned long long tDev=0, unsigned long long tArr=0)
 TimestampedPayload (std::shared_ptr< const T > data, unsigned long long tDev=0, unsigned long long tArr=0)

Public Attributes

unsigned long long timestampDevice
 Timestamp of the streaming device, in milliseconds.
unsigned long long timestampArrival
 Timestamp when the data is received in ImFusion framework, in milliseconds.
std::shared_ptr< const T > payload
 The actual data, e.g. SharedImage.

The documentation for this struct was generated from the following file:
  • ImFusion/Stream/BackgroundThreadConsumer.h
Search Tab / S to search, Esc to close