diff options
author | Gordon Sim <gsim@apache.org> | 2010-03-29 19:21:26 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-03-29 19:21:26 +0000 |
commit | d09dd6cf7e4b37b2945ea97c823636febed0bb39 (patch) | |
tree | 9a5bfaa339d7576594edbf90e314e19f0807b18c /cpp/examples/messaging/spout.cpp | |
parent | adfea171e68298b9b0ced9fe54c2232b963e077e (diff) | |
download | qpid-python-d09dd6cf7e4b37b2945ea97c823636febed0bb39.tar.gz |
QPID-664: renamed headers as properties (to match python); added priority
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@928878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging/spout.cpp')
-rw-r--r-- | cpp/examples/messaging/spout.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/examples/messaging/spout.cpp b/cpp/examples/messaging/spout.cpp index e9a6987f5c..4b67945317 100644 --- a/cpp/examples/messaging/spout.cpp +++ b/cpp/examples/messaging/spout.cpp @@ -125,9 +125,9 @@ struct Options : public qpid::Options std::string name; std::string value; if (nameval(property, name, value)) { - message.getHeaders()[name] = value; + message.getProperties()[name] = value; } else { - message.getHeaders()[name] = Variant(); + message.getProperties()[name] = Variant(); } } @@ -177,7 +177,7 @@ int main(int argc, char** argv) for (uint count = 0; (count < options.count || options.count == 0) && end > now(); count++) { if (!options.replyto.empty()) message.setReplyTo(Address(options.replyto)); std::string id = options.id.empty() ? Uuid(true).str() : options.id; - message.getHeaders()["spout-id"] = (boost::format("%1%:%2%") % id % count).str(); + message.getProperties()["spout-id"] = (boost::format("%1%:%2%") % id % count).str(); sender.send(message); } connection.close(); |