libdballe  7.6
Data Structures | Public Types | Public Member Functions | Protected Attributes
dballe::Messages Class Reference

Ordered collection of messages. More...

#include <message.h>

Data Structures

class  base_iterator
 

Public Types

typedef base_iterator< Message, std::vector< Message * >::iteratoriterator
 
typedef base_iterator< const Message, std::vector< Message * >::const_iteratorconst_iterator
 

Public Member Functions

 Messages (const Messages &o)
 
 Messages (Messages &&o)
 
Messagesoperator= (const Messages &o)
 
Messagesoperator= (Messages &&o)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
Messageoperator[] (size_t pos)
 
const Messageoperator[] (size_t pos) const
 
bool empty () const
 Check if the collection is empty.
 
size_t size () const
 Return the number of messages.
 
void append (const Message &msg)
 Append a copy of the message.
 
void append (std::unique_ptr< Message > &&msg)
 Append a message, taking over its memory management.
 
void clear ()
 Remove all messages.
 
void print (FILE *out) const
 Print all the contents of all the messages to an output stream.
 
unsigned diff (const Messages &msgs) const
 Compute the differences between two Messages. More...
 

Protected Attributes

std::vector< Message * > msgs
 

Detailed Description

Ordered collection of messages.

This supports many encode/decode operations, that work on group of similar Messages.

Member Function Documentation

unsigned dballe::Messages::diff ( const Messages msgs) const

Compute the differences between two Messages.

Details of the differences found will be formatted using the wreport notes system (

See also
wreport/notes.h).
Parameters
msgsMessages to compare to
Returns
The number of differences found

The documentation for this class was generated from the following file: