qpid::Msg Struct Reference

A simple wrapper for std::ostringstream that allows in place construction of a message and automatic conversion to string. More...

#include <Msg.h>

List of all members.

Public Member Functions

 Msg (const Msg &m)
std::string str () const
 operator std::string () const

Public Attributes

std::ostringstream os


Detailed Description

A simple wrapper for std::ostringstream that allows in place construction of a message and automatic conversion to string.

E.g.

 void foo(const std::string&);
 foo(Msg() << "hello " << 32);
 *
Will construct the string "hello 32" and pass it to foo()

Definition at line 40 of file Msg.h.


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

Generated on Thu Oct 16 13:37:55 2008 for Qpid by  doxygen 1.5.6