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()
The documentation for this struct was generated from the following file:

Generated on Thu May 15 22:22:20 2008 for Qpid by  doxygen 1.5.5