|
RTC Toolkit 5.1.0
|
Recorder used for writing data to a CSV file. More...
#include <csvDataRecorder.hpp>
Public Types | |
| using | ColumnDescription = typename DataRecorder<T...>::ColumnDescription |
Public Types inherited from rtctk::componentFramework::DataRecorder< T... > | |
| using | TupleType |
| Type of the tuple returned by user-defined method AsTuple. | |
| using | DisabledFields |
| Type for disabled fields, an array of bools with length equal to size of the data tuple. | |
| using | ColumnDescription |
Public Member Functions | |
| CsvDataRecorder (const ColumnDescription &columns, const std::array< bool, sizeof...(T)> &disabled={}) | |
| Create a new recorder. | |
| ~CsvDataRecorder () override=default | |
| void | Open (const std::filesystem::path &file) override |
| Open a file. | |
| void | Write (const std::tuple< T... > &data) override |
| Write a single row of data. | |
| void | Close () override |
| Close the currently open file. | |
| std::string | DefaultFileExtension () override |
| Default filename extension for the recorder. | |
Public Member Functions inherited from rtctk::componentFramework::DataRecorder< T... > | |
| DataRecorder (const ColumnDescription &columns, const DisabledFields &disable={}) | |
| Create a new recorder. | |
| virtual | ~DataRecorder ()=default |
| void | SetDisabledFields (const DisabledFields &disable) |
| Disable certain fields so that they are not recorded. | |
| virtual void | Write (const gsl::span< const std::tuple< T... > > data) |
| Write multiple rows of data. | |
Additional Inherited Members | |
Protected Attributes inherited from rtctk::componentFramework::DataRecorder< T... > | |
| DisabledFields | m_disabled_fields |
| Array of fields that should not be recorded. | |
| const ColumnDescription | m_column_description |
Recorder used for writing data to a CSV file.
| using rtctk::componentFramework::CsvDataRecorder< T >::ColumnDescription = typename DataRecorder<T...>::ColumnDescription |
|
explicit |
Create a new recorder.
| [in] | columns | Array of table column descriptions. |
| [in] | disabled | Array of bools, with the boolean indicating whether fields should be skipped during the recording. |
|
overridedefault |
|
overridevirtual |
Close the currently open file.
Implements rtctk::componentFramework::DataRecorder< T... >.
|
inlineoverridevirtual |
Default filename extension for the recorder.
Implements rtctk::componentFramework::DataRecorder< T... >.
|
overridevirtual |
Open a file.
| [in] | file | The path to the file. |
Implements rtctk::componentFramework::DataRecorder< T... >.
|
overridevirtual |
Write a single row of data.
| [in] | data | The tuple containing all the data, including the disabled fields. |
Implements rtctk::componentFramework::DataRecorder< T... >.