From 12d7d4125a42a7f0ab26a89c3c34e88135cf5869 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Tue, 23 Dec 2008 19:38:25 +0000 Subject: QPID-1412 Updates and fixes for the c++ console API: - Added event support - Converted raw pointers to shared_ptrs in references to Values. This fixes a memory leak in the original code. - Added wrappers to make value access more convenient. - Added timeout handling for synchronous operations. Timeout values are configurable. - Fixed a bug in getObjects whereby waitForStable was not called and the operation could fail if called too early. - Added examples "printevents" and "ping" to illustrate the usage of different aspects of the API. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@729075 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/console/Schema.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/console/Schema.cpp') diff --git a/cpp/src/qpid/console/Schema.cpp b/cpp/src/qpid/console/Schema.cpp index 1cc8b8ee02..31d947cdd5 100644 --- a/cpp/src/qpid/console/Schema.cpp +++ b/cpp/src/qpid/console/Schema.cpp @@ -51,7 +51,7 @@ SchemaArgument::SchemaArgument(framing::Buffer& buffer, bool forMethod) } } -Value* SchemaArgument::decodeValue(framing::Buffer& buffer) +Value::Ptr SchemaArgument::decodeValue(framing::Buffer& buffer) { return ValueFactory::newValue(typeCode, buffer); } @@ -73,7 +73,7 @@ SchemaProperty::SchemaProperty(framing::Buffer& buffer) desc = map.getAsString("desc"); } -Value* SchemaProperty::decodeValue(framing::Buffer& buffer) +Value::Ptr SchemaProperty::decodeValue(framing::Buffer& buffer) { return ValueFactory::newValue(typeCode, buffer); } @@ -89,7 +89,7 @@ SchemaStatistic::SchemaStatistic(framing::Buffer& buffer) desc = map.getAsString("desc"); } -Value* SchemaStatistic::decodeValue(framing::Buffer& buffer) +Value::Ptr SchemaStatistic::decodeValue(framing::Buffer& buffer) { return ValueFactory::newValue(typeCode, buffer); } -- cgit v1.2.1