diff options
author | Gordon Sim <gsim@apache.org> | 2010-01-12 12:02:38 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-01-12 12:02:38 +0000 |
commit | f47385682d2e9a82d007481e2c6d171a68dffa5f (patch) | |
tree | 272cc16ac4b05ce23aab1dd22fcd751c8dd6f3db /cpp/src/qpid/messaging/MessageImpl.cpp | |
parent | 0528688ee4f8831b05576e2448d0835d6375ee82 (diff) | |
download | qpid-python-f47385682d2e9a82d007481e2c6d171a68dffa5f.tar.gz |
QPID-664: Added some of the missing standard message headers. Added two new test utilities for sending and receiving with the new API (both still works in progress).
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@898296 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/messaging/MessageImpl.cpp')
-rw-r--r-- | cpp/src/qpid/messaging/MessageImpl.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/cpp/src/qpid/messaging/MessageImpl.cpp b/cpp/src/qpid/messaging/MessageImpl.cpp index e17fccd64f..5d754ac487 100644 --- a/cpp/src/qpid/messaging/MessageImpl.cpp +++ b/cpp/src/qpid/messaging/MessageImpl.cpp @@ -28,8 +28,18 @@ namespace { const std::string EMPTY_STRING = ""; } -MessageImpl::MessageImpl(const std::string& c) : bytes(c), internalId(0) {} -MessageImpl::MessageImpl(const char* chars, size_t count) : bytes(chars, count), internalId(0) {} +MessageImpl::MessageImpl(const std::string& c) : + ttl(0), + durable(false), + redelivered(false), + bytes(c), + internalId(0) {} +MessageImpl::MessageImpl(const char* chars, size_t count) : + ttl(0), + durable (false), + redelivered(false), + bytes(chars, count), + internalId(0) {} void MessageImpl::setReplyTo(const Address& d) { replyTo = d; } const Address& MessageImpl::getReplyTo() const { return replyTo; } |