Go to the documentation of this file.
11 #ifndef RTCTK_COMPONENTFRAMEWORK_DATARECORDER_HPP
12 #define RTCTK_COMPONENTFRAMEWORK_DATARECORDER_HPP
40 virtual void Write(
const std::tuple<T...>& data) = 0;
45 virtual void Open(
const std::filesystem::path& file) = 0;
61 #endif // RTCTK_COMPONENTFRAMEWORK_DATARECORDER_HPP
virtual void Write(const std::tuple< T... > &data)=0
Write a row of data.
Definition: commandReplier.cpp:20
Definition: dataRecorder.hpp:21
virtual ~DataRecorder()=default
DataRecorder(const DisabledFields &disable={})
create a new recorder
Definition: dataRecorder.hpp:32
virtual void Close()=0
Close the currently open file.
const std::array< bool, sizeof...(T)> DisabledFields
type for the disabled fields, an array of bools with the length equal to the size of the data tuple
Definition: dataRecorder.hpp:26
const DisabledFields m_disabled_fields
array of fields that should not be recorded
Definition: dataRecorder.hpp:56
virtual void Open(const std::filesystem::path &file)=0
Open a file.