2#ifndef GRAMODS_TRACK_TIMESAMPLETRACKER
3#define GRAMODS_TRACK_TIMESAMPLETRACKER
5#include <gmTrack/TrackerBase.hh>
7#include <gmCore/OFactory.hh>
9BEGIN_NAMESPACE_GMTRACK;
28template<
class TYPE>
class TimeSampleTracker :
public TrackerBase<TYPE> {
32 std::unique_ptr<Impl> _impl;
36 virtual ~TimeSampleTracker();
60 void addKey(std::string key);
73 void addKeyValue(std::string key, TYPE value) {
81 std::optional<typename TrackerBase<TYPE>::State>
get()
override;
void addValue(TYPE state)
Adds the value for a sample.
Definition TimeSampleTracker.impl.hh:216
void addTime(double seconds)
Adds a time sample in seconds, from the start of the program.
Definition TimeSampleTracker.impl.hh:220
std::optional< typename TrackerBase< TYPE >::State > get() override
Definition TimeSampleTracker.impl.hh:224
void addKey(std::string key)
Adds an key string for a sample.
Definition TimeSampleTracker.impl.hh:212
The base of trackers of pose, float, float2 or bool data.
Definition TrackerBase.hh:30
Definition TimeSampleTracker.impl.hh:15