EZC3D
|
Channel of an analogous data. More...
#include <Channel.h>
Public Member Functions | |
Channel () | |
Create an empty analogous data channel. | |
Channel (const ezc3d::DataNS::AnalogsNS::Channel &channel) | |
Copy an analog channel. More... | |
void | print () const |
Print the channel. More... | |
void | write (std::fstream &f) const |
Write the channel to an opened file. More... | |
float | data () const |
Get the value of the analog data. More... | |
void | data (float value) |
Set the value of the analog data. More... | |
bool | isempty () const |
Return if the channel is empty. More... | |
Protected Attributes | |
float | _data |
Value of the analog data. | |
ezc3d::DataNS::AnalogsNS::Channel::Channel | ( | const ezc3d::DataNS::AnalogsNS::Channel & | channel | ) |
Copy an analog channel.
channel | The channel to copy |
Definition at line 17 of file Channel.cpp.
float ezc3d::DataNS::AnalogsNS::Channel::data | ( | ) | const |
Get the value of the analog data.
Definition at line 33 of file Channel.cpp.
void ezc3d::DataNS::AnalogsNS::Channel::data | ( | float | value | ) |
Set the value of the analog data.
value | The value of the analog data |
Definition at line 38 of file Channel.cpp.
bool ezc3d::DataNS::AnalogsNS::Channel::isempty | ( | ) | const |
Return if the channel is empty.
Definition at line 43 of file Channel.cpp.
void ezc3d::DataNS::AnalogsNS::Channel::print | ( | ) | const |
Print the channel.
Print the value of the analog data to the console
Definition at line 23 of file Channel.cpp.
void ezc3d::DataNS::AnalogsNS::Channel::write | ( | std::fstream & | f | ) | const |
Write the channel to an opened file.
f | Already opened fstream file with write access |
Write the value of the analog data to a file
Definition at line 28 of file Channel.cpp.