gramods
AnalogsTracker.hh
1 
2 #ifndef GRAMODS_TRACK_ANALOGSTRACKER
3 #define GRAMODS_TRACK_ANALOGSTRACKER
4 
5 #include <gmTrack/config.hh>
6 
7 #include <gmCore/Object.hh>
8 
9 #include <chrono>
10 #include <vector>
11 
12 BEGIN_NAMESPACE_GMTRACK;
13 
18  : public gmCore::Object {
19 
20 public:
21 
22  typedef std::chrono::steady_clock clock;
23 
24  struct AnalogsSample {
25  std::vector<float> analogs;
26  clock::time_point time;
27  };
28 
33  virtual std::string getDefaultKey() override { return "analogsTracker"; }
34 
40  virtual bool getAnalogs(AnalogsSample &b) = 0;
41 };
42 
43 END_NAMESPACE_GMTRACK;
44 
45 #endif
Base type for objects in the Gramods package for standardized handling of construction,...
Definition: Object.hh:42
The base of AnalogsTrackers.
Definition: AnalogsTracker.hh:18
virtual bool getAnalogs(AnalogsSample &b)=0
Replaces the contents of p with analogs data.
virtual std::string getDefaultKey() override
Returns the default key, in Configuration, for the Object.
Definition: AnalogsTracker.hh:33
Definition: AnalogsTracker.hh:24