EZC3D
Analogs.h
Go to the documentation of this file.
1 #ifndef ANALOGS_H
2 #define ANALOGS_H
3 
11 #include <Subframe.h>
12 
17  //---- CONSTRUCTORS ----//
18 public:
22  Analogs();
23 
24 
25  //---- STREAM ----//
26 public:
33  void print() const;
34 
41  void write(std::fstream &f) const;
42 
43 
44  //---- SUBFRAME ----//
45 protected:
46  std::vector<ezc3d::DataNS::AnalogsNS::SubFrame> _subframe;
47 public:
52  size_t nbSubframes() const;
53 
58  void nbSubframes(size_t nbSubframes);
59 
69  const ezc3d::DataNS::AnalogsNS::SubFrame& subframe(size_t idx) const;
70 
82 
95  void subframe(const ezc3d::DataNS::AnalogsNS::SubFrame& subframe, size_t idx = SIZE_MAX);
96 
101  const std::vector<ezc3d::DataNS::AnalogsNS::SubFrame>& subframes() const;
102 
107  bool isempty() const;
108 };
109 
110 #endif
Analog holder for C3D analogous data.
Definition: Analogs.h:16
const std::vector< ezc3d::DataNS::AnalogsNS::SubFrame > & subframes() const
Get all the subframes from the analogous data set.
Definition: Analogs.cpp:78
bool isempty() const
Return if the analogs are empty.
Definition: Analogs.cpp:83
Declaration of Subframe class.
void write(std::fstream &f) const
Write the subframes to an opened file.
Definition: Analogs.cpp:26
std::vector< ezc3d::DataNS::AnalogsNS::SubFrame > _subframe
Holder for the subframes.
Definition: Analogs.h:46
Namespace ezc3d.
Definition: ezc3d.h:68
ezc3d::DataNS::AnalogsNS::SubFrame & subframe_nonConst(size_t idx)
Get a particular subframe of index idx from the analogous data set in order to be modified by the cal...
Definition: Analogs.cpp:55
void print() const
Print the subframes.
Definition: Analogs.cpp:17
Subframe for the analogous data.
Definition: Subframe.h:16
const ezc3d::DataNS::AnalogsNS::SubFrame & subframe(size_t idx) const
Get a particular subframe of index idx from the analogous data set.
Definition: Analogs.cpp:43
Analogs()
Create an empty holder for the analogous data.
Definition: Analogs.cpp:12
size_t nbSubframes() const
Get the number of subframes.
Definition: Analogs.cpp:33