RTC Toolkit  1.0.0
recorderIf.hpp
Go to the documentation of this file.
1 
12 #ifndef RTCTK_REUSABLECOMPONENT_TELEMETRYRECORDER_RECORDERIF_HPP
13 #define RTCTK_REUSABLECOMPONENT_TELEMETRYRECORDER_RECORDERIF_HPP
14 
15 #include <cfitsio/fitsio.h>
16 #include <string>
17 #include <memory>
18 #include <functional>
19 #include <mal/utility/Uri.hpp>
20 
21 namespace rtctk::telemetryRecorder {
22 
23 template<typename T>
25 {
26  public:
28  typedef T TelemetryType;
33  virtual void Open(const std::string& file) = 0;
37  virtual void Close() = 0;
38 
44  virtual void WriteData(const TelemetryType& data) = 0;
50  virtual void SetTelemetrySubSet(std::string mask) = 0;
51 };
52 
53 }
54 
55 
56 #endif // RTCTK_REUSABLECOMPONENT_TELEMETRYRECORDER_RECORDERIF_HPP
rtctk::telemetryRecorder::RecorderIf::Open
virtual void Open(const std::string &file)=0
Open a file with the recorder.
rtctk::telemetryRecorder::RecorderIf::WriteData
virtual void WriteData(const TelemetryType &data)=0
Write the given Telemetry Data This function is called, when data is received over the shared memory ...
rtctk::telemetryRecorder::RecorderIf::TelemetryType
T TelemetryType
The type of the Telemetry Topic to be processed by this recorder.
Definition: recorderIf.hpp:28
rtctk::telemetryRecorder::RecorderIf::Close
virtual void Close()=0
Close the file.
rtctk::telemetryRecorder::RecorderIf
Definition: recorderIf.hpp:25
rtctk::telemetryRecorder
Definition: businessLogic.hpp:20
rtctk::telemetryRecorder::RecorderIf::SetTelemetrySubSet
virtual void SetTelemetrySubSet(std::string mask)=0
Select telemetry subset This function is used to select the telemetry that should be written.