activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r497272 - in /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util: PrimitiveMap.cpp PrimitiveMap.h
Date Thu, 18 Jan 2007 00:46:38 GMT
Author: tabish
Date: Wed Jan 17 16:46:37 2007
New Revision: 497272

URL: http://svn.apache.org/viewvc?view=rev&rev=497272
Log:
http://issues.apache.org/activemq/browse/AMQCPP-30

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveMap.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveMap.h

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveMap.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveMap.cpp?view=diff&rev=497272&r1=497271&r2=497272
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveMap.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveMap.cpp
Wed Jan 17 16:46:37 2007
@@ -211,4 +211,9 @@
     return valueNodeMap.getValues();
 }
 
+////////////////////////////////////////////////////////////////////////////////
+const PrimitiveMap::ValueNode& PrimitiveMap::getValue( const std::string& key ) const
+    throw ( activemq::exceptions::NoSuchElementException ) {
 
+    return valueNodeMap.getValue( key );
+}

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveMap.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveMap.h?view=diff&rev=497272&r1=497271&r2=497272
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveMap.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveMap.h
Wed Jan 17 16:46:37 2007
@@ -343,6 +343,16 @@
          * @return the entire set of values in this map as a std::vector.
          */
         virtual std::vector<ValueNode> getValues() const;
+        
+        /**
+         * Get a Value from the Map, or throws a NoSuchElementException
+         * @param key - string key to lookup
+         * @returns the concrete Value
+         * @throws NoSuchElementException
+         */ 
+        const ValueNode& getValue( const std::string& key ) const
+            throw( activemq::exceptions::NoSuchElementException );
+
     };
 
 }}



Mime
View raw message