activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r476608 - /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerError.h
Date Sat, 18 Nov 2006 21:16:27 GMT
Author: tabish
Date: Sat Nov 18 13:16:26 2006
New Revision: 476608

URL: http://svn.apache.org/viewvc?view=rev&rev=476608
Log:
Updates for planned Openwire Support

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

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerError.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerError.h?view=diff&rev=476608&r1=476607&r2=476608
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerError.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerError.h
Sat Nov 18 13:16:26 2006
@@ -55,11 +55,31 @@
         }
 
         /**
+         * Get the DataStructure Type as defined in CommandTypes.h
+         * @return The type of the data structure
+         */
+        virtual unsigned char getDataStructureType() const {
+            return 0;
+        }
+
+        /**
+         * Clone this obbject 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 {
+
+            BrokerError error = new BrokerError();
+            error->copyDataStructure( this );
+            return error;
+        }            
+        
+        /**
          * Copy the contents of the passed object into this objects
          * members, overwriting any existing data.
          * @return src - Source Object
          */
-        virtual void copyCommand( const DataStructure* src ) {
+        virtual void copyDataStructure( const DataStructure* src ) {
             
             const BrokerError* srcErr = dynamic_cast<const BrokerError*>( src );
             
@@ -148,10 +168,10 @@
          * Sets the Stack Trace Elements for this Exception
          * @param stackTraceElements - Stack Trace Elements
          */
-        virtual void getStackTraceElements( const std::vector<StackTraceElement*>&
stackTraceElements ) {
+        virtual void setStackTraceElements( const std::vector<StackTraceElement*>&
stackTraceElements ) {
             this->stackTraceElements = stackTraceElements;
         }
-
+        
     private:
 
         std::string message;



Mime
View raw message