diff options
| author | Ted Ross <tross@apache.org> | 2010-07-28 18:35:15 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2010-07-28 18:35:15 +0000 |
| commit | 7ebd132ca61427165b3dbeb8a9efaa669130308b (patch) | |
| tree | 90e1adeb4285b64073971d0facf016569b142f26 /cpp/src/qpid/messaging/MessageImpl.cpp | |
| parent | 6b1d81c625826d3ad2cc8d37b38e1e55cbcdd981 (diff) | |
| download | qpid-python-7ebd132ca61427165b3dbeb8a9efaa669130308b.tar.gz | |
Made the new C++ API more friendly for swig-wrapping.
- Added Message::setProperty() as an alternative to using getProperties() to obtain
a writable reference to a Variant::Map.
- Added unit testing for this new method.
- Added #ifndef SWIG conditions around the declarations of non-member operator<< methods.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@980147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/messaging/MessageImpl.cpp')
| -rw-r--r-- | cpp/src/qpid/messaging/MessageImpl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/messaging/MessageImpl.cpp b/cpp/src/qpid/messaging/MessageImpl.cpp index 6138ab4a2c..0601800e46 100644 --- a/cpp/src/qpid/messaging/MessageImpl.cpp +++ b/cpp/src/qpid/messaging/MessageImpl.cpp @@ -56,6 +56,7 @@ const std::string& MessageImpl::getContentType() const { return contentType; } const Variant::Map& MessageImpl::getHeaders() const { return headers; } Variant::Map& MessageImpl::getHeaders() { return headers; } +void MessageImpl::setHeader(const std::string& key, const qpid::types::Variant& val) { headers[key] = val; } //should these methods be on MessageContent? void MessageImpl::setBytes(const std::string& c) { bytes = c; } |
