Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
A simple wrapper for std::ostringstream that allows in place construction of a message and automatic conversion to string. More...
#include <qpid/Msg.h>
Public Member Functions | |
Msg () | |
Msg (const Msg &m) | |
std::string | str () const |
operator std::string () const | |
Msg & | operator<< (long n) |
Msg & | operator<< (unsigned long n) |
Msg & | operator<< (bool n) |
Msg & | operator<< (short n) |
Msg & | operator<< (unsigned short n) |
Msg & | operator<< (int n) |
Msg & | operator<< (unsigned int n) |
Msg & | operator<< (double n) |
Msg & | operator<< (float n) |
Msg & | operator<< (long double n) |
template<class T > | |
Msg & | operator<< (const T &t) |
Public Attributes | |
std::ostringstream | os |
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()
qpid::Msg::operator std::string | ( | ) | const [inline] |
Msg& qpid::Msg::operator<< | ( | unsigned long | n | ) | [inline] |
Msg& qpid::Msg::operator<< | ( | unsigned short | n | ) | [inline] |
Msg& qpid::Msg::operator<< | ( | unsigned int | n | ) | [inline] |
Msg& qpid::Msg::operator<< | ( | long double | n | ) | [inline] |
Msg& qpid::Msg::operator<< | ( | const T & | t | ) | [inline] |
std::string qpid::Msg::str | ( | ) | const [inline] |
Definition at line 42 of file Msg.h.
Referenced by str(), and operator<<().