summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/ClientMessage.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-08-05 13:25:36 +0000
committerGordon Sim <gsim@apache.org>2007-08-05 13:25:36 +0000
commitb2efcb6ed3e1e2104836928cda81ed69f2f24559 (patch)
tree392ae403dcb0d32da3edaeaf8a1f497679d9102c /cpp/src/qpid/client/ClientMessage.h
parentb2fadec5d86e278d96112e915e67aec934e91046 (diff)
downloadqpid-python-b2efcb6ed3e1e2104836928cda81ed69f2f24559.tar.gz
Added first cut of generated client interface.
Old channel interface still supported; shares SessionCore with the new interface. Todo: allow applications to signal completion of received commands; keywrod args for interface. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@562866 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/ClientMessage.h')
-rw-r--r--cpp/src/qpid/client/ClientMessage.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/qpid/client/ClientMessage.h b/cpp/src/qpid/client/ClientMessage.h
index 3de3a693b9..fd33fbc830 100644
--- a/cpp/src/qpid/client/ClientMessage.h
+++ b/cpp/src/qpid/client/ClientMessage.h
@@ -23,6 +23,7 @@
*/
#include <string>
#include "qpid/framing/BasicHeaderProperties.h"
+#include "qpid/framing/MethodContent.h"
namespace qpid {
namespace client {
@@ -35,11 +36,11 @@ namespace client {
*/
// FIXME aconway 2007-04-05: Should be based on MessageTransfer properties not
// basic header properties.
-class Message : public framing::BasicHeaderProperties {
+class Message : public framing::BasicHeaderProperties, public framing::MethodContent {
public:
Message(const std::string& data_=std::string()) : data(data_) {}
- std::string getData() const { return data; }
+ const std::string& getData() const { return data; }
void setData(const std::string& _data) { data = _data; }
std::string getDestination() const { return destination; }
@@ -52,6 +53,8 @@ class Message : public framing::BasicHeaderProperties {
bool isRedelivered() const { return redelivered; }
void setRedelivered(bool _redelivered){ redelivered = _redelivered; }
+ const HeaderProperties& getMethodHeaders() const { return *this; }
+
private:
std::string data;
std::string destination;