Dynamic array of dba_msg.
More...
#include <msgs.h>
Public Member Functions |
void | acquire (const Msg &msg) |
| Append a copy of the message to the array.
|
void | acquire (std::auto_ptr< Msg > msg) |
| Append a message to the array, taking over its memory management.
|
bool | from_csv (CSVReader &in) |
| Read data from a CSV input.
|
void | to_csv (std::ostream &out) const |
| Output in CSV format.
|
void | print (FILE *out) const |
| Dump all the contents of the message to the given stream.
|
unsigned | diff (const Msgs &msgs) const |
| Compute the differences between two Msgs.
|
Detailed Description
Dynamic array of dba_msg.
Member Function Documentation
void dballe::Msgs::acquire |
( |
const Msg & |
msg | ) |
|
Append a copy of the message to the array.
- Parameters:
-
msg | The message to append. |
void dballe::Msgs::acquire |
( |
std::auto_ptr< Msg > |
msg | ) |
|
Append a message to the array, taking over its memory management.
- Parameters:
-
msg | The message to append. The Msgs will take over memory management for it. |
unsigned dballe::Msgs::diff |
( |
const Msgs & |
msgs | ) |
const |
Compute the differences between two Msgs.
Details of the differences found will be formatted using the notes system (
- See also:
- notes.h).
- Parameters:
-
- Returns:
- The number of differences found
bool dballe::Msgs::from_csv |
( |
CSVReader & |
in | ) |
|
Read data from a CSV input.
Reading stops when Report changes.
- Returns:
- true if some CSV data has been read, false on EOF
void dballe::Msgs::print |
( |
FILE * |
out | ) |
const |
Dump all the contents of the message to the given stream.
- Parameters:
-
out | The stream to dump the contents of the dba_msg to. |
The documentation for this struct was generated from the following file: