activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r547918 - /activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMessage.h
Date Sat, 16 Jun 2007 13:05:19 GMT
Author: tabish
Date: Sat Jun 16 06:05:18 2007
New Revision: 547918

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

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMessage.h

Modified: activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMessage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMessage.h?view=diff&rev=547918&r1=547917&r2=547918
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMessage.h
(original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMessage.h
Sat Jun 16 06:05:18 2007
@@ -49,6 +49,17 @@
         }
 
         /**
+         * Clone this object and return a new instance that the
+         * caller now owns, this will be an exact copy of this one
+         * @returns new copy of this object.
+         */
+        virtual DataStructure* cloneDataStructure() const {
+            ActiveMQMessage* message = new ActiveMQMessage();
+            message->copyDataStructure( this );
+            return message;
+        }
+
+        /**
          * Returns a string containing the information for this DataStructure
          * such as its type and value of its elements.
          * @return formatted string useful for debugging.



Mime
View raw message