EZC3D
Public Member Functions | Protected Attributes | List of all members
ezc3d::DataNS::AnalogsNS::Channel Class Reference

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.
 

Detailed Description

Channel of an analogous data.

Definition at line 16 of file Channel.h.

Constructor & Destructor Documentation

◆ Channel()

ezc3d::DataNS::AnalogsNS::Channel::Channel ( const ezc3d::DataNS::AnalogsNS::Channel channel)

Copy an analog channel.

Parameters
channelThe channel to copy

Definition at line 17 of file Channel.cpp.

Member Function Documentation

◆ data() [1/2]

float ezc3d::DataNS::AnalogsNS::Channel::data ( ) const

Get the value of the analog data.

Returns
The value of the analog data

Definition at line 33 of file Channel.cpp.

◆ data() [2/2]

void ezc3d::DataNS::AnalogsNS::Channel::data ( float  value)

Set the value of the analog data.

Parameters
valueThe value of the analog data

Definition at line 38 of file Channel.cpp.

◆ isempty()

bool ezc3d::DataNS::AnalogsNS::Channel::isempty ( ) const

Return if the channel is empty.

Returns
if the channel is empty

Definition at line 43 of file Channel.cpp.

◆ print()

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.

◆ write()

void ezc3d::DataNS::AnalogsNS::Channel::write ( std::fstream &  f) const

Write the channel to an opened file.

Parameters
fAlready opened fstream file with write access

Write the value of the analog data to a file

Definition at line 28 of file Channel.cpp.


The documentation for this class was generated from the following files: