diff options
author | Gordon Sim <gsim@apache.org> | 2010-01-15 15:17:01 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-01-15 15:17:01 +0000 |
commit | 8e1f647a10024492e09a689e61128eb5f42c561e (patch) | |
tree | 139169bc5eab35ab62d9c30f8009f4565603a50a /cpp/examples/messaging | |
parent | 8455ba0b116208f47ce238b384d4af274fa0edb6 (diff) | |
download | qpid-python-8e1f647a10024492e09a689e61128eb5f42c561e.tar.gz |
QPID-2323: add a Uuid type and allow it as the value of a Variant.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@899657 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging')
-rw-r--r-- | cpp/examples/messaging/map_sender.cpp | 1 | ||||
-rw-r--r-- | cpp/examples/messaging/spout.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/cpp/examples/messaging/map_sender.cpp b/cpp/examples/messaging/map_sender.cpp index 02c6433836..50150fa3d5 100644 --- a/cpp/examples/messaging/map_sender.cpp +++ b/cpp/examples/messaging/map_sender.cpp @@ -53,6 +53,7 @@ int main(int argc, char** argv) { colours.push_back(Variant("green")); colours.push_back(Variant("white")); content["colours"] = colours; + content["uuid"] = Uuid(true); content.encode(); sender.send(message); diff --git a/cpp/examples/messaging/spout.cpp b/cpp/examples/messaging/spout.cpp index 661397d232..62d72a8043 100644 --- a/cpp/examples/messaging/spout.cpp +++ b/cpp/examples/messaging/spout.cpp @@ -26,7 +26,6 @@ #include <qpid/messaging/Sender.h> #include <qpid/messaging/Session.h> #include <qpid/messaging/Variant.h> -#include <qpid/framing/Uuid.h> #include <qpid/Exception.h> #include <qpid/Options.h> #include <qpid/log/Logger.h> @@ -39,7 +38,6 @@ #include <boost/format.hpp> using namespace qpid::messaging; -using qpid::framing::Uuid; using qpid::sys::AbsTime; using qpid::sys::now; using qpid::sys::TIME_INFINITE; |