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.

-Ted


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to