EZC3D
Channel.h
Go to the documentation of this file.
1 #ifndef CHANNEL_H
2 #define CHANNEL_H
3 
11 #include <ezc3d.h>
12 
17  //---- CONSTRUCTORS ----//
18 public:
22  Channel();
23 
29 
30 
31  //---- STREAM ----//
32 public:
39  void print() const;
40 
47  void write(std::fstream &f) const;
48 
49 
50  //---- DATA ----//
51 protected:
52  float _data;
53 public:
58  float data() const;
59 
64  void data(float value);
65 
70  bool isempty() const;
71 };
72 
73 
74 #endif
float data() const
Get the value of the analog data.
Definition: Channel.cpp:33
Channel()
Create an empty analogous data channel.
Definition: Channel.cpp:12
float _data
Value of the analog data.
Definition: Channel.h:52
void print() const
Print the channel.
Definition: Channel.cpp:23
bool isempty() const
Return if the channel is empty.
Definition: Channel.cpp:43
Namespace ezc3d.
Definition: ezc3d.h:68
void write(std::fstream &f) const
Write the channel to an opened file.
Definition: Channel.cpp:28
Channel of an analogous data.
Definition: Channel.h:16
Declaration of ezc3d class.