Qpid C++ Messaging API  0.22
qpid::messaging Namespace Reference

Classes

class  Address
class  Connection
class  Duration
struct  MessagingException
struct  InvalidOptionString
struct  KeyError
struct  LinkError
struct  AddressError
struct  ResolutionError
struct  AssertionFailed
struct  NotFound
struct  MalformedAddress
struct  ReceiverError
struct  FetchError
struct  NoMessageAvailable
struct  SenderError
struct  SendError
struct  TargetCapacityExceeded
struct  SessionError
struct  TransactionError
struct  TransactionAborted
struct  UnauthorizedAccess
struct  ConnectionError
struct  TransportFailure
class  FailoverUpdates
class  Handle
class  Message
struct  EncodingException
class  Receiver
class  Sender
class  Session

Functions

QPID_MESSAGING_EXTERN
std::ostream & 
operator<< (std::ostream &out, const Address &address)
QPID_MESSAGING_EXTERN Duration operator* (const Duration &duration, uint64_t multiplier)
QPID_MESSAGING_EXTERN Duration operator* (uint64_t multiplier, const Duration &duration)
QPID_MESSAGING_EXTERN bool operator== (const Duration &a, const Duration &b)
QPID_MESSAGING_EXTERN bool operator!= (const Duration &a, const Duration &b)
QPID_MESSAGING_EXTERN void decode (const Message &message, qpid::types::Variant::Map &map, const std::string &encoding=std::string())
QPID_MESSAGING_EXTERN void decode (const Message &message, qpid::types::Variant::List &list, const std::string &encoding=std::string())
QPID_MESSAGING_EXTERN void encode (const qpid::types::Variant::Map &map, Message &message, const std::string &encoding=std::string())
QPID_MESSAGING_EXTERN void encode (const qpid::types::Variant::List &list, Message &message, const std::string &encoding=std::string())

Function Documentation

QPID_MESSAGING_EXTERN void qpid::messaging::decode ( const Message &  message,
qpid::types::Variant::Map map,
const std::string &  encoding = std::string() 
)

Decodes message content into a Variant::Map.

Parameters:
messagethe message whose content should be decoded
mapthe map into which the message contents will be decoded
encodingif specified, the encoding to use - this overrides any encoding specified by the content-type of the message
Exceptions:
EncodingException
QPID_MESSAGING_EXTERN void qpid::messaging::decode ( const Message &  message,
qpid::types::Variant::List list,
const std::string &  encoding = std::string() 
)

Decodes message content into a Variant::List.

Parameters:
messagethe message whose content should be decoded
listthe list into which the message contents will be decoded
encodingif specified, the encoding to use - this overrides any encoding specified by the content-type of the message
Exceptions:
EncodingException
QPID_MESSAGING_EXTERN void qpid::messaging::encode ( const qpid::types::Variant::Map map,
Message &  message,
const std::string &  encoding = std::string() 
)

Encodes a Variant::Map into a message.

Parameters:
mapthe map to be encoded
messagethe message whose content should be set to the encoded map
encodingif specified, the encoding to use - this overrides any encoding specified by the content-type of the message
Exceptions:
EncodingException
QPID_MESSAGING_EXTERN void qpid::messaging::encode ( const qpid::types::Variant::List list,
Message &  message,
const std::string &  encoding = std::string() 
)

Encodes a Variant::List into a message.

Parameters:
listthe list to be encoded
messagethe message whose content should be set to the encoded list
encodingif specified, the encoding to use - this overrides any encoding specified by the content-type of the message
Exceptions:
EncodingException
QPID_MESSAGING_EXTERN bool qpid::messaging::operator!= ( const Duration &  a,
const Duration &  b 
)
QPID_MESSAGING_EXTERN Duration qpid::messaging::operator* ( const Duration &  duration,
uint64_t  multiplier 
)
QPID_MESSAGING_EXTERN Duration qpid::messaging::operator* ( uint64_t  multiplier,
const Duration &  duration 
)
QPID_MESSAGING_EXTERN std::ostream& qpid::messaging::operator<< ( std::ostream &  out,
const Address &  address 
)
QPID_MESSAGING_EXTERN bool qpid::messaging::operator== ( const Duration &  a,
const Duration &  b 
)