Nuitrack  1.11.2
3D Skeleton Tracking Middleware
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
ObjectData.h
1 #ifndef NUITRACK_OBJECTDATA_H_
2 #define NUITRACK_OBJECTDATA_H_
3 
4 #include <memory>
5 #include <cstdint>
6 
7 #include <chrono>
8 #include <vector>
9 #include <string>
10 
11 namespace tdv
12 {
13 namespace nuitrack
14 {
15 
21 {
22 public:
23  typedef std::shared_ptr<BaseObjectData> Ptr;
24 
31  virtual uint64_t getTimestamp() const = 0;
32 };
33 
38 template<typename TImpl>
39 class ObjectData : public virtual BaseObjectData
40 {
41 public:
42  typedef std::shared_ptr<TImpl> Ptr;
43 
44  virtual ~ObjectData() {}
45 
46 };
47 
48 } /* namespace nuitrack */
49 } /* namespace tdv */
50 
51 #endif /* NUITRACK_OBJECTDATA_H_ */
Generalized template for data with a timestamp.
Definition: ObjectData.h:39
Generalized class for data with a timestamp.
Definition: ObjectData.h:20
virtual uint64_t getTimestamp() const =0
Returns the data timestamp in microseconds.