RTC Toolkit
2.0.0
Main Page
Related Pages
Modules
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
w
~
Variables
a
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
c
d
f
i
l
m
o
p
r
s
t
Enumerations
Enumerator
Related Functions
o
p
r
Files
File List
File Members
All
b
c
e
f
g
i
l
m
o
p
r
s
t
u
v
w
Functions
b
c
e
f
g
l
m
o
p
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
componentFramework
services
dataRecording
src
include
rtctk
componentFramework
dataRecorder.hpp
Go to the documentation of this file.
1
11
#ifndef RTCTK_COMPONENTFRAMEWORK_DATARECORDER_HPP
12
#define RTCTK_COMPONENTFRAMEWORK_DATARECORDER_HPP
13
14
#include <array>
15
#include <tuple>
16
#include <filesystem>
17
18
namespace
rtctk::componentFramework
{
19
20
template
<
class
... T>
21
class
DataRecorder
{
22
public
:
26
typedef
const
std::array<bool,
sizeof
...(T)>
DisabledFields
;
32
explicit
DataRecorder
(
const
DisabledFields
& disable = {})
33
:
m_disabled_fields
(disable) {
34
}
35
virtual
~DataRecorder
() =
default
;
40
virtual
void
Write
(
const
std::tuple<T...>& data) = 0;
45
virtual
void
Open
(
const
std::filesystem::path& file) = 0;
50
virtual
void
Close
() = 0;
51
52
protected
:
56
const
DisabledFields
m_disabled_fields
;
57
};
58
59
}
// namespace rtctk::componentFramework
60
61
#endif // RTCTK_COMPONENTFRAMEWORK_DATARECORDER_HPP
rtctk::componentFramework::DataRecorder::Write
virtual void Write(const std::tuple< T... > &data)=0
Write a row of data.
rtctk::componentFramework
Definition:
commandReplier.cpp:20
rtctk::componentFramework::DataRecorder
Definition:
dataRecorder.hpp:21
rtctk::componentFramework::DataRecorder::~DataRecorder
virtual ~DataRecorder()=default
rtctk::componentFramework::DataRecorder::DataRecorder
DataRecorder(const DisabledFields &disable={})
create a new recorder
Definition:
dataRecorder.hpp:32
rtctk::componentFramework::DataRecorder::Close
virtual void Close()=0
Close the currently open file.
rtctk::componentFramework::DataRecorder< T... >::DisabledFields
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
rtctk::componentFramework::DataRecorder::m_disabled_fields
const DisabledFields m_disabled_fields
array of fields that should not be recorded
Definition:
dataRecorder.hpp:56
rtctk::componentFramework::DataRecorder::Open
virtual void Open(const std::filesystem::path &file)=0
Open a file.
Generated by
1.8.20