1 #define EZC3D_API_EXPORTS 19 for (
size_t i = 0; i < nbChannels(); ++i){
26 for (
size_t i = 0; i < nbChannels(); ++i){
33 return _channels.size();
38 _channels.resize(nChannels);
44 return _channels.at(idx);
45 }
catch(std::out_of_range) {
46 throw std::out_of_range(
"Subframe::channel method is trying to access the channel " 47 + std::to_string(idx) +
48 " while the maximum number of channels is " 49 + std::to_string(nbChannels()) +
".");
56 return _channels.at(idx);
57 }
catch(std::out_of_range) {
58 throw std::out_of_range(
"Subframe::channel method is trying to access the channel " 59 + std::to_string(idx) +
60 " while the maximum number of channels is " 61 + std::to_string(nbChannels()) +
".");
68 _channels.push_back(channel);
70 if (idx >= nbChannels())
71 _channels.resize(idx+1);
72 _channels[idx] = channel;
83 for (
Channel channel : channels())
84 if (!channel.isempty())
void print() const
Print the subframe.
Declaration of Subframe class.
ezc3d::DataNS::AnalogsNS::Channel & channel_nonConst(size_t idx)
Get a particular analog channel of index idx from the analogous data with write access.
const ezc3d::DataNS::AnalogsNS::Channel & channel(size_t idx) const
Get a particular analog channel of index idx from the analogous data.
SubFrame()
Create an empty subframe for analogous data.
size_t nbChannels() const
Get the number of analog channels.
Channel of an analogous data.
bool isempty() const
Return if the subframe is empty.
const std::vector< ezc3d::DataNS::AnalogsNS::Channel > & channels() const
Get all the analog channels from the analogous data.
void write(std::fstream &f) const
Write the subframe to an opened file.