On 07/28/2010 12:36 PM, Gordon Sim wrote:
On 07/28/2010 04:55 PM, Ted Ross wrote:
Gordon,
I've been looking at using swig to create script wrappers (Python, Ruby,
etc.) for the qpid::messaging API. It turns out that the pattern used in
that API wraps very cleanly with one exception. The pattern of using
Message::getProperties() to obtain a writable reference to a
Variant::Map does not translate well into the scripting languages. Using
getProperties to read the headers works fine.
Would you object if I added a new method as a helper?
void Message::setProperty(const std::string& key, const Variant::Map&
value);
This makes it easy to set message properties via a wrapped binding.
Seems reasonable to me.
If we add setProperty I'd suggest also adding getProperty for symmetry.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]