00001 #ifndef _client_ClientMessage_h
00002 #define _client_ClientMessage_h
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include <string>
00025 #include "qpid/framing/BasicHeaderProperties.h"
00026
00027 namespace qpid {
00028 namespace client {
00029
00036
00037
00038 class Message : public framing::BasicHeaderProperties {
00039 public:
00040 Message(const std::string& data_=std::string()) : data(data_) {}
00041
00042 std::string getData() const { return data; }
00043 void setData(const std::string& _data) { data = _data; }
00044
00045 std::string getDestination() const { return destination; }
00046 void setDestination(const std::string& dest) { destination = dest; }
00047
00048
00049 uint64_t getDeliveryTag() const { return deliveryTag; }
00050 void setDeliveryTag(uint64_t dt) { deliveryTag = dt; }
00051
00052 bool isRedelivered() const { return redelivered; }
00053 void setRedelivered(bool _redelivered){ redelivered = _redelivered; }
00054
00055 private:
00056 std::string data;
00057 std::string destination;
00058 bool redelivered;
00059 uint64_t deliveryTag;
00060 };
00061
00062 }}
00063
00064 #endif