activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r507303 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/
Date Tue, 13 Feb 2007 23:28:04 GMT
Author: tabish
Date: Tue Feb 13 15:28:01 2007
New Revision: 507303

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

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerId.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionControl.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionError.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionId.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerControl.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerId.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ControlCommand.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataResponse.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DiscoveryEvent.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ExceptionResponse.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/FlushCommand.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/IntegerResponse.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalQueueAck.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTopicAck.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTrace.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTransaction.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/KeepAliveInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/LastPartialCommand.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/LocalTransactionId.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageAck.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageDispatch.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageDispatchNotification.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageId.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessagePull.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/NetworkBridgeFilter.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerId.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/RemoveInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/RemoveSubscriptionInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ReplayCommand.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Response.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SessionId.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SessionInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ShutdownInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SubscriptionInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/TransactionId.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/TransactionInfo.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerId.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerId.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerId.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerId.cpp Tue Feb 13 15:28:01 2007
@@ -85,7 +85,6 @@
     stream << "Begin Class = BrokerId" << std::endl;
     stream << " Value of BrokerId::ID_BROKERID = 124" << std::endl; 
     stream << " Value of Value = " << this->getValue() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = BrokerId" << std::endl;
 
@@ -99,7 +98,13 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getValue() != valuePtr->getValue() ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.cpp Tue Feb 13 15:28:01 2007
@@ -139,7 +139,6 @@
     stream << " Value of DuplexConnection = " << this->isDuplexConnection() << std::endl;
     stream << " Value of NetworkConnection = " << this->isNetworkConnection() << std::endl;
     stream << " Value of ConnectionId = " << this->getConnectionId() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = BrokerInfo" << std::endl;
 
@@ -153,7 +152,50 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getBrokerId() != NULL ) {
+        if( !this->getBrokerId()->equals( valuePtr->getBrokerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getBrokerId() != NULL ) {
+        return false;
+    }
+    if( this->getBrokerURL() != valuePtr->getBrokerURL() ) {
+        return false;
+    }
+    for( size_t ipeerBrokerInfos = 0; ipeerBrokerInfos < this->getPeerBrokerInfos().size(); ++ipeerBrokerInfos ) {
+        if( this->getPeerBrokerInfos()[ipeerBrokerInfos] != NULL ) {
+            if( !this->getPeerBrokerInfos()[ipeerBrokerInfos]->equals( valuePtr->getPeerBrokerInfos()[ipeerBrokerInfos] ) ) {
+                return false;
+            }
+        } else if( valuePtr->getPeerBrokerInfos()[ipeerBrokerInfos] != NULL ) {
+            return false;
+        }
+    }
+    if( this->getBrokerName() != valuePtr->getBrokerName() ) {
+        return false;
+    }
+    if( this->isSlaveBroker() != valuePtr->isSlaveBroker() ) {
+        return false;
+    }
+    if( this->isMasterBroker() != valuePtr->isMasterBroker() ) {
+        return false;
+    }
+    if( this->isFaultTolerantConfiguration() != valuePtr->isFaultTolerantConfiguration() ) {
+        return false;
+    }
+    if( this->isDuplexConnection() != valuePtr->isDuplexConnection() ) {
+        return false;
+    }
+    if( this->isNetworkConnection() != valuePtr->isNetworkConnection() ) {
+        return false;
+    }
+    if( this->getConnectionId() != valuePtr->getConnectionId() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionControl.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionControl.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionControl.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionControl.cpp Tue Feb 13 15:28:01 2007
@@ -97,7 +97,6 @@
     stream << " Value of FaultTolerant = " << this->isFaultTolerant() << std::endl;
     stream << " Value of Resume = " << this->isResume() << std::endl;
     stream << " Value of Suspend = " << this->isSuspend() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = ConnectionControl" << std::endl;
 
@@ -111,7 +110,25 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->isClose() != valuePtr->isClose() ) {
+        return false;
+    }
+    if( this->isExit() != valuePtr->isExit() ) {
+        return false;
+    }
+    if( this->isFaultTolerant() != valuePtr->isFaultTolerant() ) {
+        return false;
+    }
+    if( this->isResume() != valuePtr->isResume() ) {
+        return false;
+    }
+    if( this->isSuspend() != valuePtr->isSuspend() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionError.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionError.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionError.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionError.cpp Tue Feb 13 15:28:01 2007
@@ -108,7 +108,6 @@
     } else {
         stream << "   Object is NULL" << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = ConnectionError" << std::endl;
 
@@ -122,7 +121,24 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getException() != NULL ) {
+        if( !this->getException()->equals( valuePtr->getException() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getException() != NULL ) {
+        return false;
+    }
+    if( this->getConnectionId() != NULL ) {
+        if( !this->getConnectionId()->equals( valuePtr->getConnectionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConnectionId() != NULL ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionId.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionId.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionId.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionId.cpp Tue Feb 13 15:28:01 2007
@@ -85,7 +85,6 @@
     stream << "Begin Class = ConnectionId" << std::endl;
     stream << " Value of ConnectionId::ID_CONNECTIONID = 120" << std::endl; 
     stream << " Value of Value = " << this->getValue() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = ConnectionId" << std::endl;
 
@@ -99,7 +98,13 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getValue() != valuePtr->getValue() ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.cpp Tue Feb 13 15:28:01 2007
@@ -133,7 +133,6 @@
     stream << " Value of BrokerMasterConnector = " << this->isBrokerMasterConnector() << std::endl;
     stream << " Value of Manageable = " << this->isManageable() << std::endl;
     stream << " Value of ClientMaster = " << this->isClientMaster() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = ConnectionInfo" << std::endl;
 
@@ -147,7 +146,44 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getConnectionId() != NULL ) {
+        if( !this->getConnectionId()->equals( valuePtr->getConnectionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConnectionId() != NULL ) {
+        return false;
+    }
+    if( this->getClientId() != valuePtr->getClientId() ) {
+        return false;
+    }
+    if( this->getPassword() != valuePtr->getPassword() ) {
+        return false;
+    }
+    if( this->getUserName() != valuePtr->getUserName() ) {
+        return false;
+    }
+    for( size_t ibrokerPath = 0; ibrokerPath < this->getBrokerPath().size(); ++ibrokerPath ) {
+        if( this->getBrokerPath()[ibrokerPath] != NULL ) {
+            if( !this->getBrokerPath()[ibrokerPath]->equals( valuePtr->getBrokerPath()[ibrokerPath] ) ) {
+                return false;
+            }
+        } else if( valuePtr->getBrokerPath()[ibrokerPath] != NULL ) {
+            return false;
+        }
+    }
+    if( this->isBrokerMasterConnector() != valuePtr->isBrokerMasterConnector() ) {
+        return false;
+    }
+    if( this->isManageable() != valuePtr->isManageable() ) {
+        return false;
+    }
+    if( this->isClientMaster() != valuePtr->isClientMaster() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerControl.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerControl.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerControl.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerControl.cpp Tue Feb 13 15:28:01 2007
@@ -110,7 +110,6 @@
     stream << " Value of Flush = " << this->isFlush() << std::endl;
     stream << " Value of Start = " << this->isStart() << std::endl;
     stream << " Value of Stop = " << this->isStop() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = ConsumerControl" << std::endl;
 
@@ -124,7 +123,32 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->isClose() != valuePtr->isClose() ) {
+        return false;
+    }
+    if( this->getConsumerId() != NULL ) {
+        if( !this->getConsumerId()->equals( valuePtr->getConsumerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConsumerId() != NULL ) {
+        return false;
+    }
+    if( this->getPrefetch() != valuePtr->getPrefetch() ) {
+        return false;
+    }
+    if( this->isFlush() != valuePtr->isFlush() ) {
+        return false;
+    }
+    if( this->isStart() != valuePtr->isStart() ) {
+        return false;
+    }
+    if( this->isStop() != valuePtr->isStop() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerId.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerId.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerId.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerId.cpp Tue Feb 13 15:28:01 2007
@@ -91,7 +91,6 @@
     stream << " Value of ConnectionId = " << this->getConnectionId() << std::endl;
     stream << " Value of SessionId = " << this->getSessionId() << std::endl;
     stream << " Value of Value = " << this->getValue() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = ConsumerId" << std::endl;
 
@@ -105,7 +104,19 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getConnectionId() != valuePtr->getConnectionId() ) {
+        return false;
+    }
+    if( this->getSessionId() != valuePtr->getSessionId() ) {
+        return false;
+    }
+    if( this->getValue() != valuePtr->getValue() ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.cpp Tue Feb 13 15:28:01 2007
@@ -180,7 +180,6 @@
     stream << " Value of NetworkSubscription = " << this->isNetworkSubscription() << std::endl;
     stream << " Value of OptimizedAcknowledge = " << this->isOptimizedAcknowledge() << std::endl;
     stream << " Value of NoRangeAcks = " << this->isNoRangeAcks() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = ConsumerInfo" << std::endl;
 
@@ -194,7 +193,79 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getConsumerId() != NULL ) {
+        if( !this->getConsumerId()->equals( valuePtr->getConsumerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConsumerId() != NULL ) {
+        return false;
+    }
+    if( this->isBrowser() != valuePtr->isBrowser() ) {
+        return false;
+    }
+    if( this->getDestination() != NULL ) {
+        if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDestination() != NULL ) {
+        return false;
+    }
+    if( this->getPrefetchSize() != valuePtr->getPrefetchSize() ) {
+        return false;
+    }
+    if( this->getMaximumPendingMessageLimit() != valuePtr->getMaximumPendingMessageLimit() ) {
+        return false;
+    }
+    if( this->isDispatchAsync() != valuePtr->isDispatchAsync() ) {
+        return false;
+    }
+    if( this->getSelector() != valuePtr->getSelector() ) {
+        return false;
+    }
+    if( this->getSubscriptionName() != valuePtr->getSubscriptionName() ) {
+        return false;
+    }
+    if( this->isNoLocal() != valuePtr->isNoLocal() ) {
+        return false;
+    }
+    if( this->isExclusive() != valuePtr->isExclusive() ) {
+        return false;
+    }
+    if( this->isRetroactive() != valuePtr->isRetroactive() ) {
+        return false;
+    }
+    if( this->getPriority() != valuePtr->getPriority() ) {
+        return false;
+    }
+    for( size_t ibrokerPath = 0; ibrokerPath < this->getBrokerPath().size(); ++ibrokerPath ) {
+        if( this->getBrokerPath()[ibrokerPath] != NULL ) {
+            if( !this->getBrokerPath()[ibrokerPath]->equals( valuePtr->getBrokerPath()[ibrokerPath] ) ) {
+                return false;
+            }
+        } else if( valuePtr->getBrokerPath()[ibrokerPath] != NULL ) {
+            return false;
+        }
+    }
+    if( this->getAdditionalPredicate() != NULL ) {
+        if( !this->getAdditionalPredicate()->equals( valuePtr->getAdditionalPredicate() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getAdditionalPredicate() != NULL ) {
+        return false;
+    }
+    if( this->isNetworkSubscription() != valuePtr->isNetworkSubscription() ) {
+        return false;
+    }
+    if( this->isOptimizedAcknowledge() != valuePtr->isOptimizedAcknowledge() ) {
+        return false;
+    }
+    if( this->isNoRangeAcks() != valuePtr->isNoRangeAcks() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ControlCommand.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ControlCommand.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ControlCommand.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ControlCommand.cpp Tue Feb 13 15:28:01 2007
@@ -85,7 +85,6 @@
     stream << "Begin Class = ControlCommand" << std::endl;
     stream << " Value of ControlCommand::ID_CONTROLCOMMAND = 14" << std::endl; 
     stream << " Value of Command = " << this->getCommand() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = ControlCommand" << std::endl;
 
@@ -99,7 +98,13 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getCommand() != valuePtr->getCommand() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.cpp Tue Feb 13 15:28:01 2007
@@ -102,7 +102,6 @@
             stream << "   Object is NULL" << std::endl;
         }
     }
-    // Copy the data of the base class or classes
     stream << Response::toString();
     stream << "End Class = DataArrayResponse" << std::endl;
 
@@ -116,7 +115,19 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    for( size_t idata = 0; idata < this->getData().size(); ++idata ) {
+        if( this->getData()[idata] != NULL ) {
+            if( !this->getData()[idata]->equals( valuePtr->getData()[idata] ) ) {
+                return false;
+            }
+        } else if( valuePtr->getData()[idata] != NULL ) {
+            return false;
+        }
+    }
+    if( !Response::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataResponse.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataResponse.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataResponse.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataResponse.cpp Tue Feb 13 15:28:01 2007
@@ -95,7 +95,6 @@
     } else {
         stream << "   Object is NULL" << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << Response::toString();
     stream << "End Class = DataResponse" << std::endl;
 
@@ -109,7 +108,17 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getData() != NULL ) {
+        if( !this->getData()->equals( valuePtr->getData() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getData() != NULL ) {
+        return false;
+    }
+    if( !Response::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.cpp Tue Feb 13 15:28:01 2007
@@ -134,7 +134,6 @@
             stream << "   Object is NULL" << std::endl;
         }
     }
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = DestinationInfo" << std::endl;
 
@@ -148,7 +147,39 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getConnectionId() != NULL ) {
+        if( !this->getConnectionId()->equals( valuePtr->getConnectionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConnectionId() != NULL ) {
+        return false;
+    }
+    if( this->getDestination() != NULL ) {
+        if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDestination() != NULL ) {
+        return false;
+    }
+    if( this->getOperationType() != valuePtr->getOperationType() ) {
+        return false;
+    }
+    if( this->getTimeout() != valuePtr->getTimeout() ) {
+        return false;
+    }
+    for( size_t ibrokerPath = 0; ibrokerPath < this->getBrokerPath().size(); ++ibrokerPath ) {
+        if( this->getBrokerPath()[ibrokerPath] != NULL ) {
+            if( !this->getBrokerPath()[ibrokerPath]->equals( valuePtr->getBrokerPath()[ibrokerPath] ) ) {
+                return false;
+            }
+        } else if( valuePtr->getBrokerPath()[ibrokerPath] != NULL ) {
+            return false;
+        }
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DiscoveryEvent.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DiscoveryEvent.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DiscoveryEvent.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DiscoveryEvent.cpp Tue Feb 13 15:28:01 2007
@@ -88,7 +88,6 @@
     stream << " Value of DiscoveryEvent::ID_DISCOVERYEVENT = 40" << std::endl; 
     stream << " Value of ServiceName = " << this->getServiceName() << std::endl;
     stream << " Value of BrokerName = " << this->getBrokerName() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = DiscoveryEvent" << std::endl;
 
@@ -102,7 +101,16 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getServiceName() != valuePtr->getServiceName() ) {
+        return false;
+    }
+    if( this->getBrokerName() != valuePtr->getBrokerName() ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ExceptionResponse.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ExceptionResponse.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ExceptionResponse.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ExceptionResponse.cpp Tue Feb 13 15:28:01 2007
@@ -95,7 +95,6 @@
     } else {
         stream << "   Object is NULL" << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << Response::toString();
     stream << "End Class = ExceptionResponse" << std::endl;
 
@@ -109,7 +108,17 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getException() != NULL ) {
+        if( !this->getException()->equals( valuePtr->getException() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getException() != NULL ) {
+        return false;
+    }
+    if( !Response::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/FlushCommand.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/FlushCommand.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/FlushCommand.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/FlushCommand.cpp Tue Feb 13 15:28:01 2007
@@ -82,7 +82,6 @@
 
     stream << "Begin Class = FlushCommand" << std::endl;
     stream << " Value of FlushCommand::ID_FLUSHCOMMAND = 15" << std::endl; 
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = FlushCommand" << std::endl;
 
@@ -96,6 +95,9 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/IntegerResponse.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/IntegerResponse.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/IntegerResponse.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/IntegerResponse.cpp Tue Feb 13 15:28:01 2007
@@ -85,7 +85,6 @@
     stream << "Begin Class = IntegerResponse" << std::endl;
     stream << " Value of IntegerResponse::ID_INTEGERRESPONSE = 34" << std::endl; 
     stream << " Value of Result = " << this->getResult() << std::endl;
-    // Copy the data of the base class or classes
     stream << Response::toString();
     stream << "End Class = IntegerResponse" << std::endl;
 
@@ -99,7 +98,13 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getResult() != valuePtr->getResult() ) {
+        return false;
+    }
+    if( !Response::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalQueueAck.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalQueueAck.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalQueueAck.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalQueueAck.cpp Tue Feb 13 15:28:01 2007
@@ -108,7 +108,6 @@
     } else {
         stream << "   Object is NULL" << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = JournalQueueAck" << std::endl;
 
@@ -122,7 +121,24 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getDestination() != NULL ) {
+        if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDestination() != NULL ) {
+        return false;
+    }
+    if( this->getMessageAck() != NULL ) {
+        if( !this->getMessageAck()->equals( valuePtr->getMessageAck() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getMessageAck() != NULL ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTopicAck.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTopicAck.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTopicAck.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTopicAck.cpp Tue Feb 13 15:28:01 2007
@@ -130,7 +130,6 @@
     } else {
         stream << "   Object is NULL" << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = JournalTopicAck" << std::endl;
 
@@ -144,7 +143,40 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getDestination() != NULL ) {
+        if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDestination() != NULL ) {
+        return false;
+    }
+    if( this->getMessageId() != NULL ) {
+        if( !this->getMessageId()->equals( valuePtr->getMessageId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getMessageId() != NULL ) {
+        return false;
+    }
+    if( this->getMessageSequenceId() != valuePtr->getMessageSequenceId() ) {
+        return false;
+    }
+    if( this->getSubscritionName() != valuePtr->getSubscritionName() ) {
+        return false;
+    }
+    if( this->getClientId() != valuePtr->getClientId() ) {
+        return false;
+    }
+    if( this->getTransactionId() != NULL ) {
+        if( !this->getTransactionId()->equals( valuePtr->getTransactionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getTransactionId() != NULL ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTrace.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTrace.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTrace.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTrace.cpp Tue Feb 13 15:28:01 2007
@@ -85,7 +85,6 @@
     stream << "Begin Class = JournalTrace" << std::endl;
     stream << " Value of JournalTrace::ID_JOURNALTRACE = 53" << std::endl; 
     stream << " Value of Message = " << this->getMessage() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = JournalTrace" << std::endl;
 
@@ -99,7 +98,13 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getMessage() != valuePtr->getMessage() ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTransaction.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTransaction.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTransaction.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/JournalTransaction.cpp Tue Feb 13 15:28:01 2007
@@ -101,7 +101,6 @@
     }
     stream << " Value of Type = " << this->getType() << std::endl;
     stream << " Value of WasPrepared = " << this->getWasPrepared() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = JournalTransaction" << std::endl;
 
@@ -115,7 +114,23 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getTransactionId() != NULL ) {
+        if( !this->getTransactionId()->equals( valuePtr->getTransactionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getTransactionId() != NULL ) {
+        return false;
+    }
+    if( this->getType() != valuePtr->getType() ) {
+        return false;
+    }
+    if( this->getWasPrepared() != valuePtr->getWasPrepared() ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/KeepAliveInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/KeepAliveInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/KeepAliveInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/KeepAliveInfo.cpp Tue Feb 13 15:28:01 2007
@@ -82,7 +82,6 @@
 
     stream << "Begin Class = KeepAliveInfo" << std::endl;
     stream << " Value of KeepAliveInfo::ID_KEEPALIVEINFO = 10" << std::endl; 
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = KeepAliveInfo" << std::endl;
 
@@ -96,6 +95,9 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/LastPartialCommand.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/LastPartialCommand.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/LastPartialCommand.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/LastPartialCommand.cpp Tue Feb 13 15:28:01 2007
@@ -82,7 +82,6 @@
 
     stream << "Begin Class = LastPartialCommand" << std::endl;
     stream << " Value of LastPartialCommand::ID_LASTPARTIALCOMMAND = 61" << std::endl; 
-    // Copy the data of the base class or classes
     stream << PartialCommand::toString();
     stream << "End Class = LastPartialCommand" << std::endl;
 
@@ -96,6 +95,9 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( !PartialCommand::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/LocalTransactionId.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/LocalTransactionId.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/LocalTransactionId.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/LocalTransactionId.cpp Tue Feb 13 15:28:01 2007
@@ -98,7 +98,6 @@
     } else {
         stream << "   Object is NULL" << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << TransactionId::toString();
     stream << "End Class = LocalTransactionId" << std::endl;
 
@@ -112,7 +111,20 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getValue() != valuePtr->getValue() ) {
+        return false;
+    }
+    if( this->getConnectionId() != NULL ) {
+        if( !this->getConnectionId()->equals( valuePtr->getConnectionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConnectionId() != NULL ) {
+        return false;
+    }
+    if( !TransactionId::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.cpp Tue Feb 13 15:28:01 2007
@@ -269,7 +269,6 @@
     stream << " Value of UserID = " << this->getUserID() << std::endl;
     stream << " Value of RecievedByDFBridge = " << this->isRecievedByDFBridge() << std::endl;
     stream << " Value of Droppable = " << this->isDroppable() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = Message" << std::endl;
 
@@ -283,7 +282,134 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getProducerId() != NULL ) {
+        if( !this->getProducerId()->equals( valuePtr->getProducerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getProducerId() != NULL ) {
+        return false;
+    }
+    if( this->getDestination() != NULL ) {
+        if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDestination() != NULL ) {
+        return false;
+    }
+    if( this->getTransactionId() != NULL ) {
+        if( !this->getTransactionId()->equals( valuePtr->getTransactionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getTransactionId() != NULL ) {
+        return false;
+    }
+    if( this->getOriginalDestination() != NULL ) {
+        if( !this->getOriginalDestination()->equals( valuePtr->getOriginalDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getOriginalDestination() != NULL ) {
+        return false;
+    }
+    if( this->getMessageId() != NULL ) {
+        if( !this->getMessageId()->equals( valuePtr->getMessageId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getMessageId() != NULL ) {
+        return false;
+    }
+    if( this->getOriginalTransactionId() != NULL ) {
+        if( !this->getOriginalTransactionId()->equals( valuePtr->getOriginalTransactionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getOriginalTransactionId() != NULL ) {
+        return false;
+    }
+    if( this->getGroupID() != valuePtr->getGroupID() ) {
+        return false;
+    }
+    if( this->getGroupSequence() != valuePtr->getGroupSequence() ) {
+        return false;
+    }
+    if( this->getCorrelationId() != valuePtr->getCorrelationId() ) {
+        return false;
+    }
+    if( this->isPersistent() != valuePtr->isPersistent() ) {
+        return false;
+    }
+    if( this->getExpiration() != valuePtr->getExpiration() ) {
+        return false;
+    }
+    if( this->getPriority() != valuePtr->getPriority() ) {
+        return false;
+    }
+    if( this->getReplyTo() != NULL ) {
+        if( !this->getReplyTo()->equals( valuePtr->getReplyTo() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getReplyTo() != NULL ) {
+        return false;
+    }
+    if( this->getTimestamp() != valuePtr->getTimestamp() ) {
+        return false;
+    }
+    if( this->getType() != valuePtr->getType() ) {
+        return false;
+    }
+    for( size_t icontent = 0; icontent < this->getContent().size(); ++icontent ) {
+        if( this->getContent()[icontent] != valuePtr->getContent()[icontent] ) {
+            return false;
+        }
+    }
+    for( size_t imarshalledProperties = 0; imarshalledProperties < this->getMarshalledProperties().size(); ++imarshalledProperties ) {
+        if( this->getMarshalledProperties()[imarshalledProperties] != valuePtr->getMarshalledProperties()[imarshalledProperties] ) {
+            return false;
+        }
+    }
+    if( this->getDataStructure() != NULL ) {
+        if( !this->getDataStructure()->equals( valuePtr->getDataStructure() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDataStructure() != NULL ) {
+        return false;
+    }
+    if( this->getTargetConsumerId() != NULL ) {
+        if( !this->getTargetConsumerId()->equals( valuePtr->getTargetConsumerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getTargetConsumerId() != NULL ) {
+        return false;
+    }
+    if( this->isCompressed() != valuePtr->isCompressed() ) {
+        return false;
+    }
+    if( this->getRedeliveryCounter() != valuePtr->getRedeliveryCounter() ) {
+        return false;
+    }
+    for( size_t ibrokerPath = 0; ibrokerPath < this->getBrokerPath().size(); ++ibrokerPath ) {
+        if( this->getBrokerPath()[ibrokerPath] != NULL ) {
+            if( !this->getBrokerPath()[ibrokerPath]->equals( valuePtr->getBrokerPath()[ibrokerPath] ) ) {
+                return false;
+            }
+        } else if( valuePtr->getBrokerPath()[ibrokerPath] != NULL ) {
+            return false;
+        }
+    }
+    if( this->getArrival() != valuePtr->getArrival() ) {
+        return false;
+    }
+    if( this->getUserID() != valuePtr->getUserID() ) {
+        return false;
+    }
+    if( this->isRecievedByDFBridge() != valuePtr->isRecievedByDFBridge() ) {
+        return false;
+    }
+    if( this->isDroppable() != valuePtr->isDroppable() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageAck.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageAck.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageAck.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageAck.cpp Tue Feb 13 15:28:01 2007
@@ -153,7 +153,6 @@
         stream << "   Object is NULL" << std::endl;
     }
     stream << " Value of MessageCount = " << this->getMessageCount() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = MessageAck" << std::endl;
 
@@ -167,7 +166,51 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getDestination() != NULL ) {
+        if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDestination() != NULL ) {
+        return false;
+    }
+    if( this->getTransactionId() != NULL ) {
+        if( !this->getTransactionId()->equals( valuePtr->getTransactionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getTransactionId() != NULL ) {
+        return false;
+    }
+    if( this->getConsumerId() != NULL ) {
+        if( !this->getConsumerId()->equals( valuePtr->getConsumerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConsumerId() != NULL ) {
+        return false;
+    }
+    if( this->getAckType() != valuePtr->getAckType() ) {
+        return false;
+    }
+    if( this->getFirstMessageId() != NULL ) {
+        if( !this->getFirstMessageId()->equals( valuePtr->getFirstMessageId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getFirstMessageId() != NULL ) {
+        return false;
+    }
+    if( this->getLastMessageId() != NULL ) {
+        if( !this->getLastMessageId()->equals( valuePtr->getLastMessageId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getLastMessageId() != NULL ) {
+        return false;
+    }
+    if( this->getMessageCount() != valuePtr->getMessageCount() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageDispatch.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageDispatch.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageDispatch.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageDispatch.cpp Tue Feb 13 15:28:01 2007
@@ -124,7 +124,6 @@
         stream << "   Object is NULL" << std::endl;
     }
     stream << " Value of RedeliveryCounter = " << this->getRedeliveryCounter() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = MessageDispatch" << std::endl;
 
@@ -138,7 +137,34 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getConsumerId() != NULL ) {
+        if( !this->getConsumerId()->equals( valuePtr->getConsumerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConsumerId() != NULL ) {
+        return false;
+    }
+    if( this->getDestination() != NULL ) {
+        if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDestination() != NULL ) {
+        return false;
+    }
+    if( this->getMessage() != NULL ) {
+        if( !this->getMessage()->equals( valuePtr->getMessage() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getMessage() != NULL ) {
+        return false;
+    }
+    if( this->getRedeliveryCounter() != valuePtr->getRedeliveryCounter() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageDispatchNotification.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageDispatchNotification.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageDispatchNotification.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageDispatchNotification.cpp Tue Feb 13 15:28:01 2007
@@ -124,7 +124,6 @@
     } else {
         stream << "   Object is NULL" << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = MessageDispatchNotification" << std::endl;
 
@@ -138,7 +137,34 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getConsumerId() != NULL ) {
+        if( !this->getConsumerId()->equals( valuePtr->getConsumerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConsumerId() != NULL ) {
+        return false;
+    }
+    if( this->getDestination() != NULL ) {
+        if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDestination() != NULL ) {
+        return false;
+    }
+    if( this->getDeliverySequenceId() != valuePtr->getDeliverySequenceId() ) {
+        return false;
+    }
+    if( this->getMessageId() != NULL ) {
+        if( !this->getMessageId()->equals( valuePtr->getMessageId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getMessageId() != NULL ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageId.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageId.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageId.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessageId.cpp Tue Feb 13 15:28:01 2007
@@ -101,7 +101,6 @@
     }
     stream << " Value of ProducerSequenceId = " << this->getProducerSequenceId() << std::endl;
     stream << " Value of BrokerSequenceId = " << this->getBrokerSequenceId() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = MessageId" << std::endl;
 
@@ -115,7 +114,23 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getProducerId() != NULL ) {
+        if( !this->getProducerId()->equals( valuePtr->getProducerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getProducerId() != NULL ) {
+        return false;
+    }
+    if( this->getProducerSequenceId() != valuePtr->getProducerSequenceId() ) {
+        return false;
+    }
+    if( this->getBrokerSequenceId() != valuePtr->getBrokerSequenceId() ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessagePull.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessagePull.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessagePull.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/MessagePull.cpp Tue Feb 13 15:28:01 2007
@@ -111,7 +111,6 @@
         stream << "   Object is NULL" << std::endl;
     }
     stream << " Value of Timeout = " << this->getTimeout() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = MessagePull" << std::endl;
 
@@ -125,7 +124,27 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getConsumerId() != NULL ) {
+        if( !this->getConsumerId()->equals( valuePtr->getConsumerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConsumerId() != NULL ) {
+        return false;
+    }
+    if( this->getDestination() != NULL ) {
+        if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDestination() != NULL ) {
+        return false;
+    }
+    if( this->getTimeout() != valuePtr->getTimeout() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/NetworkBridgeFilter.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/NetworkBridgeFilter.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/NetworkBridgeFilter.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/NetworkBridgeFilter.cpp Tue Feb 13 15:28:01 2007
@@ -98,7 +98,6 @@
     } else {
         stream << "   Object is NULL" << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = NetworkBridgeFilter" << std::endl;
 
@@ -112,7 +111,20 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getNetworkTTL() != valuePtr->getNetworkTTL() ) {
+        return false;
+    }
+    if( this->getNetworkBrokerId() != NULL ) {
+        if( !this->getNetworkBrokerId()->equals( valuePtr->getNetworkBrokerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getNetworkBrokerId() != NULL ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.cpp Tue Feb 13 15:28:01 2007
@@ -89,7 +89,6 @@
     for( size_t idata = 0; idata < this->getData().size(); ++idata ) {
         stream << " Value of Data[" << idata << "] = " << this->getData()[idata] << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = PartialCommand" << std::endl;
 
@@ -103,7 +102,18 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getCommandId() != valuePtr->getCommandId() ) {
+        return false;
+    }
+    for( size_t idata = 0; idata < this->getData().size(); ++idata ) {
+        if( this->getData()[idata] != valuePtr->getData()[idata] ) {
+            return false;
+        }
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerId.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerId.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerId.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerId.cpp Tue Feb 13 15:28:01 2007
@@ -91,7 +91,6 @@
     stream << " Value of ConnectionId = " << this->getConnectionId() << std::endl;
     stream << " Value of Value = " << this->getValue() << std::endl;
     stream << " Value of SessionId = " << this->getSessionId() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = ProducerId" << std::endl;
 
@@ -105,7 +104,19 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getConnectionId() != valuePtr->getConnectionId() ) {
+        return false;
+    }
+    if( this->getValue() != valuePtr->getValue() ) {
+        return false;
+    }
+    if( this->getSessionId() != valuePtr->getSessionId() ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.cpp Tue Feb 13 15:28:01 2007
@@ -131,7 +131,6 @@
         }
     }
     stream << " Value of DispatchAsync = " << this->isDispatchAsync() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = ProducerInfo" << std::endl;
 
@@ -145,7 +144,36 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getProducerId() != NULL ) {
+        if( !this->getProducerId()->equals( valuePtr->getProducerId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getProducerId() != NULL ) {
+        return false;
+    }
+    if( this->getDestination() != NULL ) {
+        if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDestination() != NULL ) {
+        return false;
+    }
+    for( size_t ibrokerPath = 0; ibrokerPath < this->getBrokerPath().size(); ++ibrokerPath ) {
+        if( this->getBrokerPath()[ibrokerPath] != NULL ) {
+            if( !this->getBrokerPath()[ibrokerPath]->equals( valuePtr->getBrokerPath()[ibrokerPath] ) ) {
+                return false;
+            }
+        } else if( valuePtr->getBrokerPath()[ibrokerPath] != NULL ) {
+            return false;
+        }
+    }
+    if( this->isDispatchAsync() != valuePtr->isDispatchAsync() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/RemoveInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/RemoveInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/RemoveInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/RemoveInfo.cpp Tue Feb 13 15:28:01 2007
@@ -95,7 +95,6 @@
     } else {
         stream << "   Object is NULL" << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = RemoveInfo" << std::endl;
 
@@ -109,7 +108,17 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getObjectId() != NULL ) {
+        if( !this->getObjectId()->equals( valuePtr->getObjectId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getObjectId() != NULL ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/RemoveSubscriptionInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/RemoveSubscriptionInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/RemoveSubscriptionInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/RemoveSubscriptionInfo.cpp Tue Feb 13 15:28:01 2007
@@ -101,7 +101,6 @@
     }
     stream << " Value of SubcriptionName = " << this->getSubcriptionName() << std::endl;
     stream << " Value of ClientId = " << this->getClientId() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = RemoveSubscriptionInfo" << std::endl;
 
@@ -115,7 +114,23 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getConnectionId() != NULL ) {
+        if( !this->getConnectionId()->equals( valuePtr->getConnectionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConnectionId() != NULL ) {
+        return false;
+    }
+    if( this->getSubcriptionName() != valuePtr->getSubcriptionName() ) {
+        return false;
+    }
+    if( this->getClientId() != valuePtr->getClientId() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ReplayCommand.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ReplayCommand.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ReplayCommand.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ReplayCommand.cpp Tue Feb 13 15:28:01 2007
@@ -88,7 +88,6 @@
     stream << " Value of ReplayCommand::ID_REPLAYCOMMAND = 65" << std::endl; 
     stream << " Value of FirstNakNumber = " << this->getFirstNakNumber() << std::endl;
     stream << " Value of LastNakNumber = " << this->getLastNakNumber() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = ReplayCommand" << std::endl;
 
@@ -102,7 +101,16 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getFirstNakNumber() != valuePtr->getFirstNakNumber() ) {
+        return false;
+    }
+    if( this->getLastNakNumber() != valuePtr->getLastNakNumber() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Response.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Response.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Response.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Response.cpp Tue Feb 13 15:28:01 2007
@@ -85,7 +85,6 @@
     stream << "Begin Class = Response" << std::endl;
     stream << " Value of Response::ID_RESPONSE = 30" << std::endl; 
     stream << " Value of CorrelationId = " << this->getCorrelationId() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Response>::toString();
     stream << "End Class = Response" << std::endl;
 
@@ -99,7 +98,13 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getCorrelationId() != valuePtr->getCorrelationId() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Response>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SessionId.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SessionId.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SessionId.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SessionId.cpp Tue Feb 13 15:28:01 2007
@@ -88,7 +88,6 @@
     stream << " Value of SessionId::ID_SESSIONID = 121" << std::endl; 
     stream << " Value of ConnectionId = " << this->getConnectionId() << std::endl;
     stream << " Value of Value = " << this->getValue() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = SessionId" << std::endl;
 
@@ -102,7 +101,16 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getConnectionId() != valuePtr->getConnectionId() ) {
+        return false;
+    }
+    if( this->getValue() != valuePtr->getValue() ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SessionInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SessionInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SessionInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SessionInfo.cpp Tue Feb 13 15:28:01 2007
@@ -95,7 +95,6 @@
     } else {
         stream << "   Object is NULL" << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = SessionInfo" << std::endl;
 
@@ -109,7 +108,17 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getSessionId() != NULL ) {
+        if( !this->getSessionId()->equals( valuePtr->getSessionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getSessionId() != NULL ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ShutdownInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ShutdownInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ShutdownInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ShutdownInfo.cpp Tue Feb 13 15:28:01 2007
@@ -82,7 +82,6 @@
 
     stream << "Begin Class = ShutdownInfo" << std::endl;
     stream << " Value of ShutdownInfo::ID_SHUTDOWNINFO = 11" << std::endl; 
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = ShutdownInfo" << std::endl;
 
@@ -96,6 +95,9 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SubscriptionInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SubscriptionInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SubscriptionInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/SubscriptionInfo.cpp Tue Feb 13 15:28:01 2007
@@ -104,7 +104,6 @@
     }
     stream << " Value of Selector = " << this->getSelector() << std::endl;
     stream << " Value of SubcriptionName = " << this->getSubcriptionName() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = SubscriptionInfo" << std::endl;
 
@@ -118,7 +117,26 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getClientId() != valuePtr->getClientId() ) {
+        return false;
+    }
+    if( this->getDestination() != NULL ) {
+        if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getDestination() != NULL ) {
+        return false;
+    }
+    if( this->getSelector() != valuePtr->getSelector() ) {
+        return false;
+    }
+    if( this->getSubcriptionName() != valuePtr->getSubcriptionName() ) {
+        return false;
+    }
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/TransactionId.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/TransactionId.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/TransactionId.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/TransactionId.cpp Tue Feb 13 15:28:01 2007
@@ -82,7 +82,6 @@
 
     stream << "Begin Class = TransactionId" << std::endl;
     stream << " Value of TransactionId::ID_TRANSACTIONID = 0" << std::endl; 
-    // Copy the data of the base class or classes
     stream << BaseDataStructure::toString();
     stream << "End Class = TransactionId" << std::endl;
 
@@ -96,6 +95,9 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( !BaseDataStructure::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/TransactionInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/TransactionInfo.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/TransactionInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/TransactionInfo.cpp Tue Feb 13 15:28:01 2007
@@ -111,7 +111,6 @@
         stream << "   Object is NULL" << std::endl;
     }
     stream << " Value of Type = " << this->getType() << std::endl;
-    // Copy the data of the base class or classes
     stream << BaseCommand<transport::Command>::toString();
     stream << "End Class = TransactionInfo" << std::endl;
 
@@ -125,7 +124,27 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getConnectionId() != NULL ) {
+        if( !this->getConnectionId()->equals( valuePtr->getConnectionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getConnectionId() != NULL ) {
+        return false;
+    }
+    if( this->getTransactionId() != NULL ) {
+        if( !this->getTransactionId()->equals( valuePtr->getTransactionId() ) ) {
+            return false;
+        }
+    } else if( valuePtr->getTransactionId() != NULL ) {
+        return false;
+    }
+    if( this->getType() != valuePtr->getType() ) {
+        return false;
+    }
+    if( !BaseCommand<transport::Command>::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.cpp?view=diff&rev=507303&r1=507302&r2=507303
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.cpp Tue Feb 13 15:28:01 2007
@@ -93,7 +93,6 @@
     for( size_t ibranchQualifier = 0; ibranchQualifier < this->getBranchQualifier().size(); ++ibranchQualifier ) {
         stream << " Value of BranchQualifier[" << ibranchQualifier << "] = " << this->getBranchQualifier()[ibranchQualifier] << std::endl;
     }
-    // Copy the data of the base class or classes
     stream << TransactionId::toString();
     stream << "End Class = XATransactionId" << std::endl;
 
@@ -107,7 +106,23 @@
     if( valuePtr == NULL || value == NULL ) {
         return false;
     }
-    return false;
+    if( this->getFormatId() != valuePtr->getFormatId() ) {
+        return false;
+    }
+    for( size_t iglobalTransactionId = 0; iglobalTransactionId < this->getGlobalTransactionId().size(); ++iglobalTransactionId ) {
+        if( this->getGlobalTransactionId()[iglobalTransactionId] != valuePtr->getGlobalTransactionId()[iglobalTransactionId] ) {
+            return false;
+        }
+    }
+    for( size_t ibranchQualifier = 0; ibranchQualifier < this->getBranchQualifier().size(); ++ibranchQualifier ) {
+        if( this->getBranchQualifier()[ibranchQualifier] != valuePtr->getBranchQualifier()[ibranchQualifier] ) {
+            return false;
+        }
+    }
+    if( !TransactionId::equals( value ) ) {
+        return false;
+    }
+    return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////



Mime
View raw message