activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r497112 - in /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal: PrimitiveMapMarshaller.cpp PrimitiveMapMarshaller.h
Date Wed, 17 Jan 2007 18:25:51 GMT
Author: tabish
Date: Wed Jan 17 10:25:50 2007
New Revision: 497112

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

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.h

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.cpp?view=diff&rev=497112&r1=497111&r2=497112
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.cpp
Wed Jan 17 10:25:50 2007
@@ -32,3 +32,16 @@
 {
 }
 
+///////////////////////////////////////////////////////////////////////////////
+void PrimitiveMapMarshaller::marshal( const util::PrimitiveMap& map, 
+                                      std::vector<unsigned char>& dest ) 
+                                        throw ( cms::CMSException ) 
+{}
+
+///////////////////////////////////////////////////////////////////////////////
+void PrimitiveMapMarshaller::PrimitiveMap* unmarshal( 
+    const std::vector<unsigned char>& src ) 
+        throw ( cms::CMSException ) 
+{
+    return NULL;
+}

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.h?view=diff&rev=497112&r1=497111&r2=497112
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.h
Wed Jan 17 10:25:50 2007
@@ -18,6 +18,8 @@
 #ifndef _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSHAL_PRIMITIVEMAPMARSHALLER_H_
 #define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSHAL_PRIMITIVEMAPMARSHALLER_H_
 
+#include <activemq/util/PrimitiveMap.h>
+
 namespace activemq{
 namespace connector{
 namespace openwire{
@@ -34,6 +36,24 @@
     
         PrimitiveMapMarshaller();
         virtual ~PrimitiveMapMarshaller();
+        
+        /**
+         * Static Marshal of a primitive map object
+         * @param Map to Marshal
+         * @param Reference to a byte array to house the data
+         * @throws CMSException
+         */
+        static void marshal( const util::PrimitiveMap& map, 
+                             std::vector<unsigned char>& dest ) throw ( cms::CMSException
);        
+
+        /**
+         * Static Map Unmarshaler, takes an array of bytes and returns a 
+         * new instance of a PrimitiveMap object.  Caller owns the pointer.
+         * @param reference to a byte array to read data from.
+         * @return newly create PrimitiveMap with unmarshaled data.
+         */
+        static PrimitiveMap* unmarshal( const std::vector<unsigned char>& src )

+            throw ( cms::CMSException );
         
     };
 



Mime
View raw message