You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/06/16 15:05:19 UTC

svn commit: r547918 - /activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMessage.h

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.