Dynamic array of dba_msg.
More...
#include <msgs.h>
|
|
| Msgs (const Msgs &msgs) |
| |
|
Msgs & | operator= (const Msgs &msgs) |
| |
| void | acquire (const Msg &msg) |
| | Append a copy of the message to the array. More...
|
| |
| void | acquire (std::auto_ptr< Msg > msg) |
| | Append a message to the array, taking over its memory management. More...
|
| |
|
void | clear () |
| | Remove all messages.
|
| |
| bool | from_csv (CSVReader &in) |
| | Read data from a CSV input. More...
|
| |
|
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. More...
|
| |
| unsigned | diff (const Msgs &msgs) const |
| | Compute the differences between two Msgs. More...
|
| |
Dynamic array of dba_msg.
| 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: