gramods
TimeSampleButtonsTracker.hh
1 
2 #ifndef GRAMODS_TRACK_TIMESAMPLEBUTTONSTRACKER
3 #define GRAMODS_TRACK_TIMESAMPLEBUTTONSTRACKER
4 
5 #include <gmTrack/ButtonsTracker.hh>
6 
7 #include <gmCore/OFactory.hh>
8 
9 BEGIN_NAMESPACE_GMTRACK;
10 
16  : public gmTrack::ButtonsTracker {
17 
18 public:
19 
21  virtual ~TimeSampleButtonsTracker();
22 
30  void addTime(double t);
31 
38  void addButtons(size_t b);
39 
43  bool getButtons(ButtonsSample &b) override;
44 
45  GM_OFI_DECLARE;
46 
47 private:
48 
49  struct Impl;
50  std::unique_ptr<Impl> _impl;
51 
52 };
53 
54 END_NAMESPACE_GMTRACK;
55 
56 #endif
The base of ButtonsTrackers, reporting button states.
Definition: ButtonsTracker.hh:18
This buttons tracker reports button states as specified in the samples of the node.
Definition: TimeSampleButtonsTracker.hh:16
A sample containing the state of any number of buttons.
Definition: ButtonsTracker.hh:27
Definition: TimeSampleButtonsTracker.cpp:16