libdballe
5.18
|
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. |
Dynamic array of dba_msg.
void dballe::Msgs::acquire | ( | const Msg & | msg | ) |
Append a copy of the message to the array.
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.
msg | The message to append. The Msgs will take over memory management for it. |
unsigned dballe::Msgs::diff | ( | const Msgs & | msgs | ) | const |
bool dballe::Msgs::from_csv | ( | CSVReader & | in | ) |
Read data from a CSV input.
Reading stops when Report changes.
void dballe::Msgs::print | ( | FILE * | out | ) | const |
Dump all the contents of the message to the given stream.
out | The stream to dump the contents of the dba_msg to. |