Class to handle decoded information.
More...
#include <message.h>
Public Attributes |
binary | data |
| object representing the message (subset of acquired binary data).
|
uint8_t | pin |
| subplot of the message
|
uint8_t | npin |
| total number of subplot
|
char | label [30] |
| string representing the message (Drawn string).
|
float | t0 |
| acquisition time when message started.
|
float | tmessage |
| duration of the message.
|
char | color |
| color of the message.
|
Detailed Description
Class to handle decoded information.
Constructor & Destructor Documentation
message::message |
( |
const binary * |
data = NULL , |
|
|
const char |
label[30] = "" , |
|
|
float |
t0 = 0 , |
|
|
float |
tmessage = 0 , |
|
|
char |
color = 'w' |
|
) |
| |
Member Function Documentation
int message::Draw |
( |
mglGraph * |
gr | ) |
|
Draw the message.
- Parameters
-
gr | pointer to a mglGraph object The subplot on which the message belongs to is taken from this->pin |
void message::init |
( |
const binary * |
data, |
|
|
const char |
label[30] = "" , |
|
|
float |
t0 = 0 , |
|
|
float |
tmessage = 0 , |
|
|
char |
color = 'w' |
|
) |
| |
Initialize the message from parameters:
- Parameters
-
data | object representing the message (subset of acquired binary data). |
label | string representing the message (Drawn string). |
t0 | acquisition time in seconds of the beginning of the message. |
tmessage | duration of the message in seconds. |
color | char giving the color of the message. this->pin and this->npin are taken from data |
- See Also
- binary
The documentation for this class was generated from the following files: