1 #ifndef QPID_MESSAGING_MESSAGE_H 2 #define QPID_MESSAGING_MESSAGE_H 24 #include "qpid/messaging/ImportExport.h" 26 #include "qpid/messaging/Duration.h" 27 #include "qpid/types/Exception.h" 28 #include "qpid/types/Variant.h" 46 QPID_MESSAGING_EXTERN Message(
const std::string& bytes = std::string());
47 QPID_MESSAGING_EXTERN Message(
const char*,
size_t);
48 QPID_MESSAGING_EXTERN Message(
const Message&);
49 QPID_MESSAGING_EXTERN ~Message();
51 QPID_MESSAGING_EXTERN Message& operator=(
const Message&);
53 QPID_MESSAGING_EXTERN
void setReplyTo(
const Address&);
54 QPID_MESSAGING_EXTERN
const Address& getReplyTo()
const;
56 QPID_MESSAGING_EXTERN
void setSubject(
const std::string&);
57 QPID_MESSAGING_EXTERN
const std::string& getSubject()
const;
64 QPID_MESSAGING_EXTERN
void setContentType(
const std::string&);
70 QPID_MESSAGING_EXTERN
const std::string& getContentType()
const;
77 QPID_MESSAGING_EXTERN
void setMessageId(
const std::string&);
78 QPID_MESSAGING_EXTERN
const std::string& getMessageId()
const;
86 QPID_MESSAGING_EXTERN
void setUserId(
const std::string&);
87 QPID_MESSAGING_EXTERN
const std::string& getUserId()
const;
96 QPID_MESSAGING_EXTERN
void setCorrelationId(
const std::string&);
97 QPID_MESSAGING_EXTERN
const std::string& getCorrelationId()
const;
104 QPID_MESSAGING_EXTERN
void setPriority(uint8_t);
105 QPID_MESSAGING_EXTERN uint8_t getPriority()
const;
112 QPID_MESSAGING_EXTERN
void setTtl(
Duration ttl);
116 QPID_MESSAGING_EXTERN
Duration getTtl()
const;
124 QPID_MESSAGING_EXTERN
void setDurable(
bool durable);
125 QPID_MESSAGING_EXTERN
bool getDurable()
const;
134 QPID_MESSAGING_EXTERN
bool getRedelivered()
const;
140 QPID_MESSAGING_EXTERN
void setRedelivered(
bool);
150 QPID_MESSAGING_EXTERN
const qpid::types::Variant::Map& getProperties()
const;
151 QPID_MESSAGING_EXTERN qpid::types::Variant::Map& getProperties();
152 QPID_MESSAGING_EXTERN
void setProperties(
const qpid::types::Variant::Map&);
160 QPID_MESSAGING_EXTERN
void setContent(
const std::string&);
165 QPID_MESSAGING_EXTERN
void setContent(
const char* chars,
size_t count);
168 QPID_MESSAGING_EXTERN std::string getContent()
const;
170 QPID_MESSAGING_EXTERN std::string getContentBytes()
const;
172 QPID_MESSAGING_EXTERN
void setContentBytes(
const std::string&);
196 QPID_MESSAGING_EXTERN
const char* getContentPtr()
const;
198 QPID_MESSAGING_EXTERN
size_t getContentSize()
const;
203 friend struct MessageImplAccess;
220 QPID_MESSAGING_EXTERN
void decode(
const Message& message,
221 qpid::types::Variant::Map& map,
222 const std::string& encoding = std::string());
232 QPID_MESSAGING_EXTERN
void decode(
const Message& message,
233 qpid::types::Variant::List& list,
234 const std::string& encoding = std::string());
244 QPID_MESSAGING_EXTERN
void encode(
const qpid::types::Variant::Map& map,
246 const std::string& encoding = std::string());
256 QPID_MESSAGING_EXTERN
void encode(
const qpid::types::Variant::List& list,
258 const std::string& encoding = std::string());
Definition: Address.h:122
Definition: Exception.h:31
Definition: Duration.h:35
Definition: Message.h:206