activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1460467 [3/15] - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq: commands/ wireformat/openwire/marshal/generated/
Date Sun, 24 Mar 2013 21:30:56 GMT
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DestinationInfo.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DestinationInfo.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DestinationInfo.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DestinationInfo.h Sun Mar 24 21:30:52 2013
@@ -32,8 +32,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -61,8 +61,8 @@ namespace commands{
 
     private:
 
-        DestinationInfo( const DestinationInfo& );
-        DestinationInfo& operator= ( const DestinationInfo& );
+        DestinationInfo(const DestinationInfo&);
+        DestinationInfo& operator= (const DestinationInfo&);
 
     public:
 
@@ -74,11 +74,11 @@ namespace commands{
 
         virtual DestinationInfo* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
         virtual const Pointer<ConnectionId>& getConnectionId() const;
         virtual Pointer<ConnectionId>& getConnectionId();
@@ -98,7 +98,7 @@ namespace commands{
         virtual std::vector< decaf::lang::Pointer<BrokerId> >& getBrokerPath();
         virtual void setBrokerPath( const std::vector< decaf::lang::Pointer<BrokerId> >& brokerPath );
 
-        virtual Pointer<Command> visit( activemq::state::CommandVisitor* visitor );
+        virtual Pointer<Command> visit(activemq::state::CommandVisitor* visitor);
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DiscoveryEvent.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DiscoveryEvent.cpp?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DiscoveryEvent.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DiscoveryEvent.cpp Sun Mar 24 21:30:52 2013
@@ -38,8 +38,8 @@ using namespace decaf::lang::exceptions;
  */
 
 ////////////////////////////////////////////////////////////////////////////////
-DiscoveryEvent::DiscoveryEvent() 
-    : BaseDataStructure(), serviceName(""), brokerName("") {
+DiscoveryEvent::DiscoveryEvent() :
+    BaseDataStructure(), serviceName(""), brokerName("") {
 
 }
 
@@ -49,35 +49,35 @@ DiscoveryEvent::~DiscoveryEvent() {
 
 ////////////////////////////////////////////////////////////////////////////////
 DiscoveryEvent* DiscoveryEvent::cloneDataStructure() const {
-    std::auto_ptr<DiscoveryEvent> discoveryEvent( new DiscoveryEvent() );
+    std::auto_ptr<DiscoveryEvent> discoveryEvent(new DiscoveryEvent());
 
     // Copy the data from the base class or classes
-    discoveryEvent->copyDataStructure( this );
+    discoveryEvent->copyDataStructure(this);
 
     return discoveryEvent.release();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DiscoveryEvent::copyDataStructure( const DataStructure* src ) {
+void DiscoveryEvent::copyDataStructure(const DataStructure* src) {
 
     // Protect against invalid self assignment.
-    if( this == src ) {
+    if (this == src) {
         return;
     }
 
-    const DiscoveryEvent* srcPtr = dynamic_cast<const DiscoveryEvent*>( src );
+    const DiscoveryEvent* srcPtr = dynamic_cast<const DiscoveryEvent*>(src);
 
-    if( srcPtr == NULL || src == NULL ) {
+    if (srcPtr == NULL || src == NULL) {
         throw decaf::lang::exceptions::NullPointerException(
             __FILE__, __LINE__,
-            "DiscoveryEvent::copyDataStructure - src is NULL or invalid" );
+            "DiscoveryEvent::copyDataStructure - src is NULL or invalid");
     }
 
     // Copy the data of the base class or classes
-    BaseDataStructure::copyDataStructure( src );
+    BaseDataStructure::copyDataStructure(src);
 
-    this->setServiceName( srcPtr->getServiceName() );
-    this->setBrokerName( srcPtr->getBrokerName() );
+    this->setServiceName(srcPtr->getServiceName());
+    this->setBrokerName(srcPtr->getBrokerName());
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -100,25 +100,25 @@ std::string DiscoveryEvent::toString() c
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool DiscoveryEvent::equals( const DataStructure* value ) const {
+bool DiscoveryEvent::equals(const DataStructure* value) const {
 
-    if( this == value ) {
+    if (this == value) {
         return true;
     }
 
-    const DiscoveryEvent* valuePtr = dynamic_cast<const DiscoveryEvent*>( value );
+    const DiscoveryEvent* valuePtr = dynamic_cast<const DiscoveryEvent*>(value);
 
-    if( valuePtr == NULL || value == NULL ) {
+    if (valuePtr == NULL || value == NULL) {
         return false;
     }
 
-    if( this->getServiceName() != valuePtr->getServiceName() ) {
+    if (this->getServiceName() != valuePtr->getServiceName()) {
         return false;
     }
-    if( this->getBrokerName() != valuePtr->getBrokerName() ) {
+    if (this->getBrokerName() != valuePtr->getBrokerName()) {
         return false;
     }
-    if( !BaseDataStructure::equals( value ) ) {
+    if (!BaseDataStructure::equals(value)) {
         return false;
     }
     return true;
@@ -135,7 +135,7 @@ std::string& DiscoveryEvent::getServiceN
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DiscoveryEvent::setServiceName( const std::string& serviceName ) {
+void DiscoveryEvent::setServiceName(const std::string& serviceName) {
     this->serviceName = serviceName;
 }
 
@@ -150,7 +150,7 @@ std::string& DiscoveryEvent::getBrokerNa
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DiscoveryEvent::setBrokerName( const std::string& brokerName ) {
+void DiscoveryEvent::setBrokerName(const std::string& brokerName) {
     this->brokerName = brokerName;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DiscoveryEvent.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DiscoveryEvent.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DiscoveryEvent.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/DiscoveryEvent.h Sun Mar 24 21:30:52 2013
@@ -29,8 +29,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -55,8 +55,8 @@ namespace commands{
 
     private:
 
-        DiscoveryEvent( const DiscoveryEvent& );
-        DiscoveryEvent& operator= ( const DiscoveryEvent& );
+        DiscoveryEvent(const DiscoveryEvent&);
+        DiscoveryEvent& operator= (const DiscoveryEvent&);
 
     public:
 
@@ -68,11 +68,11 @@ namespace commands{
 
         virtual DiscoveryEvent* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
         virtual const std::string& getServiceName() const;
         virtual std::string& getServiceName();

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ExceptionResponse.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ExceptionResponse.cpp?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ExceptionResponse.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ExceptionResponse.cpp Sun Mar 24 21:30:52 2013
@@ -38,8 +38,8 @@ using namespace decaf::lang::exceptions;
  */
 
 ////////////////////////////////////////////////////////////////////////////////
-ExceptionResponse::ExceptionResponse() 
-    : Response(), exception(NULL) {
+ExceptionResponse::ExceptionResponse() :
+    Response(), exception(NULL) {
 
 }
 
@@ -49,34 +49,34 @@ ExceptionResponse::~ExceptionResponse() 
 
 ////////////////////////////////////////////////////////////////////////////////
 ExceptionResponse* ExceptionResponse::cloneDataStructure() const {
-    std::auto_ptr<ExceptionResponse> exceptionResponse( new ExceptionResponse() );
+    std::auto_ptr<ExceptionResponse> exceptionResponse(new ExceptionResponse());
 
     // Copy the data from the base class or classes
-    exceptionResponse->copyDataStructure( this );
+    exceptionResponse->copyDataStructure(this);
 
     return exceptionResponse.release();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ExceptionResponse::copyDataStructure( const DataStructure* src ) {
+void ExceptionResponse::copyDataStructure(const DataStructure* src) {
 
     // Protect against invalid self assignment.
-    if( this == src ) {
+    if (this == src) {
         return;
     }
 
-    const ExceptionResponse* srcPtr = dynamic_cast<const ExceptionResponse*>( src );
+    const ExceptionResponse* srcPtr = dynamic_cast<const ExceptionResponse*>(src);
 
-    if( srcPtr == NULL || src == NULL ) {
+    if (srcPtr == NULL || src == NULL) {
         throw decaf::lang::exceptions::NullPointerException(
             __FILE__, __LINE__,
-            "ExceptionResponse::copyDataStructure - src is NULL or invalid" );
+            "ExceptionResponse::copyDataStructure - src is NULL or invalid");
     }
 
     // Copy the data of the base class or classes
-    Response::copyDataStructure( src );
+    Response::copyDataStructure(src);
 
-    this->setException( srcPtr->getException() );
+    this->setException(srcPtr->getException());
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -91,7 +91,7 @@ std::string ExceptionResponse::toString(
 
     stream << "ExceptionResponse { ";
     stream << "Exception = ";
-    if( this->getException() != NULL ) {
+    if (this->getException() != NULL) {
         stream << this->getException()->toString();
     } else {
         stream << "NULL";
@@ -102,26 +102,26 @@ std::string ExceptionResponse::toString(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool ExceptionResponse::equals( const DataStructure* value ) const {
+bool ExceptionResponse::equals(const DataStructure* value) const {
 
-    if( this == value ) {
+    if (this == value) {
         return true;
     }
 
-    const ExceptionResponse* valuePtr = dynamic_cast<const ExceptionResponse*>( value );
+    const ExceptionResponse* valuePtr = dynamic_cast<const ExceptionResponse*>(value);
 
-    if( valuePtr == NULL || value == NULL ) {
+    if (valuePtr == NULL || value == NULL) {
         return false;
     }
 
-    if( this->getException() != NULL ) {
-        if( !this->getException()->equals( valuePtr->getException().get() ) ) {
+    if (this->getException() != NULL) {
+        if (!this->getException()->equals( valuePtr->getException().get())) {
             return false;
         }
-    } else if( valuePtr->getException() != NULL ) {
+    } else if (valuePtr->getException() != NULL) {
         return false;
     }
-    if( !Response::equals( value ) ) {
+    if (!Response::equals(value)) {
         return false;
     }
     return true;
@@ -138,7 +138,7 @@ decaf::lang::Pointer<BrokerError>& Excep
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ExceptionResponse::setException( const decaf::lang::Pointer<BrokerError>& exception ) {
+void ExceptionResponse::setException(const decaf::lang::Pointer<BrokerError>& exception) {
     this->exception = exception;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ExceptionResponse.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ExceptionResponse.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ExceptionResponse.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ExceptionResponse.h Sun Mar 24 21:30:52 2013
@@ -30,8 +30,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -55,8 +55,8 @@ namespace commands{
 
     private:
 
-        ExceptionResponse( const ExceptionResponse& );
-        ExceptionResponse& operator= ( const ExceptionResponse& );
+        ExceptionResponse(const ExceptionResponse&);
+        ExceptionResponse& operator= (const ExceptionResponse&);
 
     public:
 
@@ -68,11 +68,11 @@ namespace commands{
 
         virtual ExceptionResponse* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
         virtual const Pointer<BrokerError>& getException() const;
         virtual Pointer<BrokerError>& getException();

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/FlushCommand.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/FlushCommand.cpp?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/FlushCommand.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/FlushCommand.cpp Sun Mar 24 21:30:52 2013
@@ -38,8 +38,8 @@ using namespace decaf::lang::exceptions;
  */
 
 ////////////////////////////////////////////////////////////////////////////////
-FlushCommand::FlushCommand() 
-    : BaseCommand() {
+FlushCommand::FlushCommand() :
+    BaseCommand() {
 
 }
 
@@ -49,32 +49,32 @@ FlushCommand::~FlushCommand() {
 
 ////////////////////////////////////////////////////////////////////////////////
 FlushCommand* FlushCommand::cloneDataStructure() const {
-    std::auto_ptr<FlushCommand> flushCommand( new FlushCommand() );
+    std::auto_ptr<FlushCommand> flushCommand(new FlushCommand());
 
     // Copy the data from the base class or classes
-    flushCommand->copyDataStructure( this );
+    flushCommand->copyDataStructure(this);
 
     return flushCommand.release();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void FlushCommand::copyDataStructure( const DataStructure* src ) {
+void FlushCommand::copyDataStructure(const DataStructure* src) {
 
     // Protect against invalid self assignment.
-    if( this == src ) {
+    if (this == src) {
         return;
     }
 
-    const FlushCommand* srcPtr = dynamic_cast<const FlushCommand*>( src );
+    const FlushCommand* srcPtr = dynamic_cast<const FlushCommand*>(src);
 
-    if( srcPtr == NULL || src == NULL ) {
+    if (srcPtr == NULL || src == NULL) {
         throw decaf::lang::exceptions::NullPointerException(
             __FILE__, __LINE__,
-            "FlushCommand::copyDataStructure - src is NULL or invalid" );
+            "FlushCommand::copyDataStructure - src is NULL or invalid");
     }
 
     // Copy the data of the base class or classes
-    BaseCommand::copyDataStructure( src );
+    BaseCommand::copyDataStructure(src);
 
 }
 
@@ -97,26 +97,25 @@ std::string FlushCommand::toString() con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool FlushCommand::equals( const DataStructure* value ) const {
+bool FlushCommand::equals(const DataStructure* value) const {
 
-    if( this == value ) {
+    if (this == value) {
         return true;
     }
 
-    const FlushCommand* valuePtr = dynamic_cast<const FlushCommand*>( value );
+    const FlushCommand* valuePtr = dynamic_cast<const FlushCommand*>(value);
 
-    if( valuePtr == NULL || value == NULL ) {
+    if (valuePtr == NULL || value == NULL) {
         return false;
     }
 
-    if( !BaseCommand::equals( value ) ) {
+    if (!BaseCommand::equals(value)) {
         return false;
     }
     return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-decaf::lang::Pointer<commands::Command> FlushCommand::visit( activemq::state::CommandVisitor* visitor ) {
-
-    return visitor->processFlushCommand( this );
+decaf::lang::Pointer<commands::Command> FlushCommand::visit(activemq::state::CommandVisitor* visitor) {
+    return visitor->processFlushCommand(this);
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/FlushCommand.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/FlushCommand.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/FlushCommand.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/FlushCommand.h Sun Mar 24 21:30:52 2013
@@ -29,8 +29,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -53,8 +53,8 @@ namespace commands{
 
     private:
 
-        FlushCommand( const FlushCommand& );
-        FlushCommand& operator= ( const FlushCommand& );
+        FlushCommand(const FlushCommand&);
+        FlushCommand& operator= (const FlushCommand&);
 
     public:
 
@@ -66,11 +66,11 @@ namespace commands{
 
         virtual FlushCommand* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
         /**
          * @return an answer of true to the isFlushCommand() query.
@@ -79,7 +79,7 @@ namespace commands{
             return true;
         }
 
-        virtual Pointer<Command> visit( activemq::state::CommandVisitor* visitor );
+        virtual Pointer<Command> visit(activemq::state::CommandVisitor* visitor);
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/IntegerResponse.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/IntegerResponse.cpp?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/IntegerResponse.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/IntegerResponse.cpp Sun Mar 24 21:30:52 2013
@@ -38,8 +38,8 @@ using namespace decaf::lang::exceptions;
  */
 
 ////////////////////////////////////////////////////////////////////////////////
-IntegerResponse::IntegerResponse() 
-    : Response(), result(0) {
+IntegerResponse::IntegerResponse() :
+    Response(), result(0) {
 
 }
 
@@ -49,34 +49,34 @@ IntegerResponse::~IntegerResponse() {
 
 ////////////////////////////////////////////////////////////////////////////////
 IntegerResponse* IntegerResponse::cloneDataStructure() const {
-    std::auto_ptr<IntegerResponse> integerResponse( new IntegerResponse() );
+    std::auto_ptr<IntegerResponse> integerResponse(new IntegerResponse());
 
     // Copy the data from the base class or classes
-    integerResponse->copyDataStructure( this );
+    integerResponse->copyDataStructure(this);
 
     return integerResponse.release();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void IntegerResponse::copyDataStructure( const DataStructure* src ) {
+void IntegerResponse::copyDataStructure(const DataStructure* src) {
 
     // Protect against invalid self assignment.
-    if( this == src ) {
+    if (this == src) {
         return;
     }
 
-    const IntegerResponse* srcPtr = dynamic_cast<const IntegerResponse*>( src );
+    const IntegerResponse* srcPtr = dynamic_cast<const IntegerResponse*>(src);
 
-    if( srcPtr == NULL || src == NULL ) {
+    if (srcPtr == NULL || src == NULL) {
         throw decaf::lang::exceptions::NullPointerException(
             __FILE__, __LINE__,
-            "IntegerResponse::copyDataStructure - src is NULL or invalid" );
+            "IntegerResponse::copyDataStructure - src is NULL or invalid");
     }
 
     // Copy the data of the base class or classes
-    Response::copyDataStructure( src );
+    Response::copyDataStructure(src);
 
-    this->setResult( srcPtr->getResult() );
+    this->setResult(srcPtr->getResult());
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -97,22 +97,22 @@ std::string IntegerResponse::toString() 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool IntegerResponse::equals( const DataStructure* value ) const {
+bool IntegerResponse::equals(const DataStructure* value) const {
 
-    if( this == value ) {
+    if (this == value) {
         return true;
     }
 
-    const IntegerResponse* valuePtr = dynamic_cast<const IntegerResponse*>( value );
+    const IntegerResponse* valuePtr = dynamic_cast<const IntegerResponse*>(value);
 
-    if( valuePtr == NULL || value == NULL ) {
+    if (valuePtr == NULL || value == NULL) {
         return false;
     }
 
-    if( this->getResult() != valuePtr->getResult() ) {
+    if (this->getResult() != valuePtr->getResult()) {
         return false;
     }
-    if( !Response::equals( value ) ) {
+    if (!Response::equals(value)) {
         return false;
     }
     return true;
@@ -124,7 +124,7 @@ int IntegerResponse::getResult() const {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void IntegerResponse::setResult( int result ) {
+void IntegerResponse::setResult(int result) {
     this->result = result;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/IntegerResponse.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/IntegerResponse.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/IntegerResponse.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/IntegerResponse.h Sun Mar 24 21:30:52 2013
@@ -29,8 +29,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -54,8 +54,8 @@ namespace commands{
 
     private:
 
-        IntegerResponse( const IntegerResponse& );
-        IntegerResponse& operator= ( const IntegerResponse& );
+        IntegerResponse(const IntegerResponse&);
+        IntegerResponse& operator= (const IntegerResponse&);
 
     public:
 
@@ -67,11 +67,11 @@ namespace commands{
 
         virtual IntegerResponse* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
         virtual int getResult() const;
         virtual void setResult( int result );

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalQueueAck.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalQueueAck.cpp?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalQueueAck.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalQueueAck.cpp Sun Mar 24 21:30:52 2013
@@ -38,8 +38,8 @@ using namespace decaf::lang::exceptions;
  */
 
 ////////////////////////////////////////////////////////////////////////////////
-JournalQueueAck::JournalQueueAck() 
-    : BaseDataStructure(), destination(NULL), messageAck(NULL) {
+JournalQueueAck::JournalQueueAck() :
+    BaseDataStructure(), destination(NULL), messageAck(NULL) {
 
 }
 
@@ -49,35 +49,35 @@ JournalQueueAck::~JournalQueueAck() {
 
 ////////////////////////////////////////////////////////////////////////////////
 JournalQueueAck* JournalQueueAck::cloneDataStructure() const {
-    std::auto_ptr<JournalQueueAck> journalQueueAck( new JournalQueueAck() );
+    std::auto_ptr<JournalQueueAck> journalQueueAck(new JournalQueueAck());
 
     // Copy the data from the base class or classes
-    journalQueueAck->copyDataStructure( this );
+    journalQueueAck->copyDataStructure(this);
 
     return journalQueueAck.release();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalQueueAck::copyDataStructure( const DataStructure* src ) {
+void JournalQueueAck::copyDataStructure(const DataStructure* src) {
 
     // Protect against invalid self assignment.
-    if( this == src ) {
+    if (this == src) {
         return;
     }
 
-    const JournalQueueAck* srcPtr = dynamic_cast<const JournalQueueAck*>( src );
+    const JournalQueueAck* srcPtr = dynamic_cast<const JournalQueueAck*>(src);
 
-    if( srcPtr == NULL || src == NULL ) {
+    if (srcPtr == NULL || src == NULL) {
         throw decaf::lang::exceptions::NullPointerException(
             __FILE__, __LINE__,
-            "JournalQueueAck::copyDataStructure - src is NULL or invalid" );
+            "JournalQueueAck::copyDataStructure - src is NULL or invalid");
     }
 
     // Copy the data of the base class or classes
-    BaseDataStructure::copyDataStructure( src );
+    BaseDataStructure::copyDataStructure(src);
 
-    this->setDestination( srcPtr->getDestination() );
-    this->setMessageAck( srcPtr->getMessageAck() );
+    this->setDestination(srcPtr->getDestination());
+    this->setMessageAck(srcPtr->getMessageAck());
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -92,14 +92,14 @@ std::string JournalQueueAck::toString() 
 
     stream << "JournalQueueAck { ";
     stream << "Destination = ";
-    if( this->getDestination() != NULL ) {
+    if (this->getDestination() != NULL) {
         stream << this->getDestination()->toString();
     } else {
         stream << "NULL";
     }
     stream << ", ";
     stream << "MessageAck = ";
-    if( this->getMessageAck() != NULL ) {
+    if (this->getMessageAck() != NULL) {
         stream << this->getMessageAck()->toString();
     } else {
         stream << "NULL";
@@ -110,33 +110,33 @@ std::string JournalQueueAck::toString() 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool JournalQueueAck::equals( const DataStructure* value ) const {
+bool JournalQueueAck::equals(const DataStructure* value) const {
 
-    if( this == value ) {
+    if (this == value) {
         return true;
     }
 
-    const JournalQueueAck* valuePtr = dynamic_cast<const JournalQueueAck*>( value );
+    const JournalQueueAck* valuePtr = dynamic_cast<const JournalQueueAck*>(value);
 
-    if( valuePtr == NULL || value == NULL ) {
+    if (valuePtr == NULL || value == NULL) {
         return false;
     }
 
-    if( this->getDestination() != NULL ) {
-        if( !this->getDestination()->equals( valuePtr->getDestination().get() ) ) {
+    if (this->getDestination() != NULL) {
+        if (!this->getDestination()->equals( valuePtr->getDestination().get())) {
             return false;
         }
-    } else if( valuePtr->getDestination() != NULL ) {
+    } else if (valuePtr->getDestination() != NULL) {
         return false;
     }
-    if( this->getMessageAck() != NULL ) {
-        if( !this->getMessageAck()->equals( valuePtr->getMessageAck().get() ) ) {
+    if (this->getMessageAck() != NULL) {
+        if (!this->getMessageAck()->equals( valuePtr->getMessageAck().get())) {
             return false;
         }
-    } else if( valuePtr->getMessageAck() != NULL ) {
+    } else if (valuePtr->getMessageAck() != NULL) {
         return false;
     }
-    if( !BaseDataStructure::equals( value ) ) {
+    if (!BaseDataStructure::equals(value)) {
         return false;
     }
     return true;
@@ -153,7 +153,7 @@ decaf::lang::Pointer<ActiveMQDestination
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalQueueAck::setDestination( const decaf::lang::Pointer<ActiveMQDestination>& destination ) {
+void JournalQueueAck::setDestination(const decaf::lang::Pointer<ActiveMQDestination>& destination) {
     this->destination = destination;
 }
 
@@ -168,7 +168,7 @@ decaf::lang::Pointer<MessageAck>& Journa
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalQueueAck::setMessageAck( const decaf::lang::Pointer<MessageAck>& messageAck ) {
+void JournalQueueAck::setMessageAck(const decaf::lang::Pointer<MessageAck>& messageAck) {
     this->messageAck = messageAck;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalQueueAck.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalQueueAck.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalQueueAck.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalQueueAck.h Sun Mar 24 21:30:52 2013
@@ -31,8 +31,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -57,8 +57,8 @@ namespace commands{
 
     private:
 
-        JournalQueueAck( const JournalQueueAck& );
-        JournalQueueAck& operator= ( const JournalQueueAck& );
+        JournalQueueAck(const JournalQueueAck&);
+        JournalQueueAck& operator= (const JournalQueueAck&);
 
     public:
 
@@ -70,11 +70,11 @@ namespace commands{
 
         virtual JournalQueueAck* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
         virtual const Pointer<ActiveMQDestination>& getDestination() const;
         virtual Pointer<ActiveMQDestination>& getDestination();

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTopicAck.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTopicAck.cpp?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTopicAck.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTopicAck.cpp Sun Mar 24 21:30:52 2013
@@ -38,8 +38,8 @@ using namespace decaf::lang::exceptions;
  */
 
 ////////////////////////////////////////////////////////////////////////////////
-JournalTopicAck::JournalTopicAck() 
-    : BaseDataStructure(), destination(NULL), messageId(NULL), messageSequenceId(0), subscritionName(""), clientId(""), transactionId(NULL) {
+JournalTopicAck::JournalTopicAck() :
+    BaseDataStructure(), destination(NULL), messageId(NULL), messageSequenceId(0), subscritionName(""), clientId(""), transactionId(NULL) {
 
 }
 
@@ -49,39 +49,39 @@ JournalTopicAck::~JournalTopicAck() {
 
 ////////////////////////////////////////////////////////////////////////////////
 JournalTopicAck* JournalTopicAck::cloneDataStructure() const {
-    std::auto_ptr<JournalTopicAck> journalTopicAck( new JournalTopicAck() );
+    std::auto_ptr<JournalTopicAck> journalTopicAck(new JournalTopicAck());
 
     // Copy the data from the base class or classes
-    journalTopicAck->copyDataStructure( this );
+    journalTopicAck->copyDataStructure(this);
 
     return journalTopicAck.release();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTopicAck::copyDataStructure( const DataStructure* src ) {
+void JournalTopicAck::copyDataStructure(const DataStructure* src) {
 
     // Protect against invalid self assignment.
-    if( this == src ) {
+    if (this == src) {
         return;
     }
 
-    const JournalTopicAck* srcPtr = dynamic_cast<const JournalTopicAck*>( src );
+    const JournalTopicAck* srcPtr = dynamic_cast<const JournalTopicAck*>(src);
 
-    if( srcPtr == NULL || src == NULL ) {
+    if (srcPtr == NULL || src == NULL) {
         throw decaf::lang::exceptions::NullPointerException(
             __FILE__, __LINE__,
-            "JournalTopicAck::copyDataStructure - src is NULL or invalid" );
+            "JournalTopicAck::copyDataStructure - src is NULL or invalid");
     }
 
     // Copy the data of the base class or classes
-    BaseDataStructure::copyDataStructure( src );
+    BaseDataStructure::copyDataStructure(src);
 
-    this->setDestination( srcPtr->getDestination() );
-    this->setMessageId( srcPtr->getMessageId() );
-    this->setMessageSequenceId( srcPtr->getMessageSequenceId() );
-    this->setSubscritionName( srcPtr->getSubscritionName() );
-    this->setClientId( srcPtr->getClientId() );
-    this->setTransactionId( srcPtr->getTransactionId() );
+    this->setDestination(srcPtr->getDestination());
+    this->setMessageId(srcPtr->getMessageId());
+    this->setMessageSequenceId(srcPtr->getMessageSequenceId());
+    this->setSubscritionName(srcPtr->getSubscritionName());
+    this->setClientId(srcPtr->getClientId());
+    this->setTransactionId(srcPtr->getTransactionId());
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -96,14 +96,14 @@ std::string JournalTopicAck::toString() 
 
     stream << "JournalTopicAck { ";
     stream << "Destination = ";
-    if( this->getDestination() != NULL ) {
+    if (this->getDestination() != NULL) {
         stream << this->getDestination()->toString();
     } else {
         stream << "NULL";
     }
     stream << ", ";
     stream << "MessageId = ";
-    if( this->getMessageId() != NULL ) {
+    if (this->getMessageId() != NULL) {
         stream << this->getMessageId()->toString();
     } else {
         stream << "NULL";
@@ -116,7 +116,7 @@ std::string JournalTopicAck::toString() 
     stream << "ClientId = " << this->getClientId();
     stream << ", ";
     stream << "TransactionId = ";
-    if( this->getTransactionId() != NULL ) {
+    if (this->getTransactionId() != NULL) {
         stream << this->getTransactionId()->toString();
     } else {
         stream << "NULL";
@@ -127,49 +127,49 @@ std::string JournalTopicAck::toString() 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool JournalTopicAck::equals( const DataStructure* value ) const {
+bool JournalTopicAck::equals(const DataStructure* value) const {
 
-    if( this == value ) {
+    if (this == value) {
         return true;
     }
 
-    const JournalTopicAck* valuePtr = dynamic_cast<const JournalTopicAck*>( value );
+    const JournalTopicAck* valuePtr = dynamic_cast<const JournalTopicAck*>(value);
 
-    if( valuePtr == NULL || value == NULL ) {
+    if (valuePtr == NULL || value == NULL) {
         return false;
     }
 
-    if( this->getDestination() != NULL ) {
-        if( !this->getDestination()->equals( valuePtr->getDestination().get() ) ) {
+    if (this->getDestination() != NULL) {
+        if (!this->getDestination()->equals( valuePtr->getDestination().get())) {
             return false;
         }
-    } else if( valuePtr->getDestination() != NULL ) {
+    } else if (valuePtr->getDestination() != NULL) {
         return false;
     }
-    if( this->getMessageId() != NULL ) {
-        if( !this->getMessageId()->equals( valuePtr->getMessageId().get() ) ) {
+    if (this->getMessageId() != NULL) {
+        if (!this->getMessageId()->equals( valuePtr->getMessageId().get())) {
             return false;
         }
-    } else if( valuePtr->getMessageId() != NULL ) {
+    } else if (valuePtr->getMessageId() != NULL) {
         return false;
     }
-    if( this->getMessageSequenceId() != valuePtr->getMessageSequenceId() ) {
+    if (this->getMessageSequenceId() != valuePtr->getMessageSequenceId()) {
         return false;
     }
-    if( this->getSubscritionName() != valuePtr->getSubscritionName() ) {
+    if (this->getSubscritionName() != valuePtr->getSubscritionName()) {
         return false;
     }
-    if( this->getClientId() != valuePtr->getClientId() ) {
+    if (this->getClientId() != valuePtr->getClientId()) {
         return false;
     }
-    if( this->getTransactionId() != NULL ) {
-        if( !this->getTransactionId()->equals( valuePtr->getTransactionId().get() ) ) {
+    if (this->getTransactionId() != NULL) {
+        if (!this->getTransactionId()->equals( valuePtr->getTransactionId().get())) {
             return false;
         }
-    } else if( valuePtr->getTransactionId() != NULL ) {
+    } else if (valuePtr->getTransactionId() != NULL) {
         return false;
     }
-    if( !BaseDataStructure::equals( value ) ) {
+    if (!BaseDataStructure::equals(value)) {
         return false;
     }
     return true;
@@ -186,7 +186,7 @@ decaf::lang::Pointer<ActiveMQDestination
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTopicAck::setDestination( const decaf::lang::Pointer<ActiveMQDestination>& destination ) {
+void JournalTopicAck::setDestination(const decaf::lang::Pointer<ActiveMQDestination>& destination) {
     this->destination = destination;
 }
 
@@ -201,7 +201,7 @@ decaf::lang::Pointer<MessageId>& Journal
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTopicAck::setMessageId( const decaf::lang::Pointer<MessageId>& messageId ) {
+void JournalTopicAck::setMessageId(const decaf::lang::Pointer<MessageId>& messageId) {
     this->messageId = messageId;
 }
 
@@ -211,7 +211,7 @@ long long JournalTopicAck::getMessageSeq
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTopicAck::setMessageSequenceId( long long messageSequenceId ) {
+void JournalTopicAck::setMessageSequenceId(long long messageSequenceId) {
     this->messageSequenceId = messageSequenceId;
 }
 
@@ -226,7 +226,7 @@ std::string& JournalTopicAck::getSubscri
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTopicAck::setSubscritionName( const std::string& subscritionName ) {
+void JournalTopicAck::setSubscritionName(const std::string& subscritionName) {
     this->subscritionName = subscritionName;
 }
 
@@ -241,7 +241,7 @@ std::string& JournalTopicAck::getClientI
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTopicAck::setClientId( const std::string& clientId ) {
+void JournalTopicAck::setClientId(const std::string& clientId) {
     this->clientId = clientId;
 }
 
@@ -256,7 +256,7 @@ decaf::lang::Pointer<TransactionId>& Jou
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTopicAck::setTransactionId( const decaf::lang::Pointer<TransactionId>& transactionId ) {
+void JournalTopicAck::setTransactionId(const decaf::lang::Pointer<TransactionId>& transactionId) {
     this->transactionId = transactionId;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTopicAck.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTopicAck.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTopicAck.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTopicAck.h Sun Mar 24 21:30:52 2013
@@ -32,8 +32,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -62,8 +62,8 @@ namespace commands{
 
     private:
 
-        JournalTopicAck( const JournalTopicAck& );
-        JournalTopicAck& operator= ( const JournalTopicAck& );
+        JournalTopicAck(const JournalTopicAck&);
+        JournalTopicAck& operator= (const JournalTopicAck&);
 
     public:
 
@@ -75,11 +75,11 @@ namespace commands{
 
         virtual JournalTopicAck* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
         virtual const Pointer<ActiveMQDestination>& getDestination() const;
         virtual Pointer<ActiveMQDestination>& getDestination();

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTrace.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTrace.cpp?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTrace.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTrace.cpp Sun Mar 24 21:30:52 2013
@@ -38,8 +38,8 @@ using namespace decaf::lang::exceptions;
  */
 
 ////////////////////////////////////////////////////////////////////////////////
-JournalTrace::JournalTrace() 
-    : BaseDataStructure(), message("") {
+JournalTrace::JournalTrace() :
+    BaseDataStructure(), message("") {
 
 }
 
@@ -49,34 +49,34 @@ JournalTrace::~JournalTrace() {
 
 ////////////////////////////////////////////////////////////////////////////////
 JournalTrace* JournalTrace::cloneDataStructure() const {
-    std::auto_ptr<JournalTrace> journalTrace( new JournalTrace() );
+    std::auto_ptr<JournalTrace> journalTrace(new JournalTrace());
 
     // Copy the data from the base class or classes
-    journalTrace->copyDataStructure( this );
+    journalTrace->copyDataStructure(this);
 
     return journalTrace.release();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTrace::copyDataStructure( const DataStructure* src ) {
+void JournalTrace::copyDataStructure(const DataStructure* src) {
 
     // Protect against invalid self assignment.
-    if( this == src ) {
+    if (this == src) {
         return;
     }
 
-    const JournalTrace* srcPtr = dynamic_cast<const JournalTrace*>( src );
+    const JournalTrace* srcPtr = dynamic_cast<const JournalTrace*>(src);
 
-    if( srcPtr == NULL || src == NULL ) {
+    if (srcPtr == NULL || src == NULL) {
         throw decaf::lang::exceptions::NullPointerException(
             __FILE__, __LINE__,
-            "JournalTrace::copyDataStructure - src is NULL or invalid" );
+            "JournalTrace::copyDataStructure - src is NULL or invalid");
     }
 
     // Copy the data of the base class or classes
-    BaseDataStructure::copyDataStructure( src );
+    BaseDataStructure::copyDataStructure(src);
 
-    this->setMessage( srcPtr->getMessage() );
+    this->setMessage(srcPtr->getMessage());
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -97,22 +97,22 @@ std::string JournalTrace::toString() con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool JournalTrace::equals( const DataStructure* value ) const {
+bool JournalTrace::equals(const DataStructure* value) const {
 
-    if( this == value ) {
+    if (this == value) {
         return true;
     }
 
-    const JournalTrace* valuePtr = dynamic_cast<const JournalTrace*>( value );
+    const JournalTrace* valuePtr = dynamic_cast<const JournalTrace*>(value);
 
-    if( valuePtr == NULL || value == NULL ) {
+    if (valuePtr == NULL || value == NULL) {
         return false;
     }
 
-    if( this->getMessage() != valuePtr->getMessage() ) {
+    if (this->getMessage() != valuePtr->getMessage()) {
         return false;
     }
-    if( !BaseDataStructure::equals( value ) ) {
+    if (!BaseDataStructure::equals(value)) {
         return false;
     }
     return true;
@@ -129,7 +129,7 @@ std::string& JournalTrace::getMessage() 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTrace::setMessage( const std::string& message ) {
+void JournalTrace::setMessage(const std::string& message) {
     this->message = message;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTrace.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTrace.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTrace.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTrace.h Sun Mar 24 21:30:52 2013
@@ -29,8 +29,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -54,8 +54,8 @@ namespace commands{
 
     private:
 
-        JournalTrace( const JournalTrace& );
-        JournalTrace& operator= ( const JournalTrace& );
+        JournalTrace(const JournalTrace&);
+        JournalTrace& operator= (const JournalTrace&);
 
     public:
 
@@ -67,11 +67,11 @@ namespace commands{
 
         virtual JournalTrace* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
         virtual const std::string& getMessage() const;
         virtual std::string& getMessage();

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTransaction.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTransaction.cpp?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTransaction.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTransaction.cpp Sun Mar 24 21:30:52 2013
@@ -38,8 +38,8 @@ using namespace decaf::lang::exceptions;
  */
 
 ////////////////////////////////////////////////////////////////////////////////
-JournalTransaction::JournalTransaction() 
-    : BaseDataStructure(), transactionId(NULL), type(0), wasPrepared(false) {
+JournalTransaction::JournalTransaction() :
+    BaseDataStructure(), transactionId(NULL), type(0), wasPrepared(false) {
 
 }
 
@@ -49,36 +49,36 @@ JournalTransaction::~JournalTransaction(
 
 ////////////////////////////////////////////////////////////////////////////////
 JournalTransaction* JournalTransaction::cloneDataStructure() const {
-    std::auto_ptr<JournalTransaction> journalTransaction( new JournalTransaction() );
+    std::auto_ptr<JournalTransaction> journalTransaction(new JournalTransaction());
 
     // Copy the data from the base class or classes
-    journalTransaction->copyDataStructure( this );
+    journalTransaction->copyDataStructure(this);
 
     return journalTransaction.release();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTransaction::copyDataStructure( const DataStructure* src ) {
+void JournalTransaction::copyDataStructure(const DataStructure* src) {
 
     // Protect against invalid self assignment.
-    if( this == src ) {
+    if (this == src) {
         return;
     }
 
-    const JournalTransaction* srcPtr = dynamic_cast<const JournalTransaction*>( src );
+    const JournalTransaction* srcPtr = dynamic_cast<const JournalTransaction*>(src);
 
-    if( srcPtr == NULL || src == NULL ) {
+    if (srcPtr == NULL || src == NULL) {
         throw decaf::lang::exceptions::NullPointerException(
             __FILE__, __LINE__,
-            "JournalTransaction::copyDataStructure - src is NULL or invalid" );
+            "JournalTransaction::copyDataStructure - src is NULL or invalid");
     }
 
     // Copy the data of the base class or classes
-    BaseDataStructure::copyDataStructure( src );
+    BaseDataStructure::copyDataStructure(src);
 
-    this->setTransactionId( srcPtr->getTransactionId() );
-    this->setType( srcPtr->getType() );
-    this->setWasPrepared( srcPtr->getWasPrepared() );
+    this->setTransactionId(srcPtr->getTransactionId());
+    this->setType(srcPtr->getType());
+    this->setWasPrepared(srcPtr->getWasPrepared());
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -93,7 +93,7 @@ std::string JournalTransaction::toString
 
     stream << "JournalTransaction { ";
     stream << "TransactionId = ";
-    if( this->getTransactionId() != NULL ) {
+    if (this->getTransactionId() != NULL) {
         stream << this->getTransactionId()->toString();
     } else {
         stream << "NULL";
@@ -108,32 +108,32 @@ std::string JournalTransaction::toString
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool JournalTransaction::equals( const DataStructure* value ) const {
+bool JournalTransaction::equals(const DataStructure* value) const {
 
-    if( this == value ) {
+    if (this == value) {
         return true;
     }
 
-    const JournalTransaction* valuePtr = dynamic_cast<const JournalTransaction*>( value );
+    const JournalTransaction* valuePtr = dynamic_cast<const JournalTransaction*>(value);
 
-    if( valuePtr == NULL || value == NULL ) {
+    if (valuePtr == NULL || value == NULL) {
         return false;
     }
 
-    if( this->getTransactionId() != NULL ) {
-        if( !this->getTransactionId()->equals( valuePtr->getTransactionId().get() ) ) {
+    if (this->getTransactionId() != NULL) {
+        if (!this->getTransactionId()->equals( valuePtr->getTransactionId().get())) {
             return false;
         }
-    } else if( valuePtr->getTransactionId() != NULL ) {
+    } else if (valuePtr->getTransactionId() != NULL) {
         return false;
     }
-    if( this->getType() != valuePtr->getType() ) {
+    if (this->getType() != valuePtr->getType()) {
         return false;
     }
-    if( this->getWasPrepared() != valuePtr->getWasPrepared() ) {
+    if (this->getWasPrepared() != valuePtr->getWasPrepared()) {
         return false;
     }
-    if( !BaseDataStructure::equals( value ) ) {
+    if (!BaseDataStructure::equals(value)) {
         return false;
     }
     return true;
@@ -150,7 +150,7 @@ decaf::lang::Pointer<TransactionId>& Jou
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTransaction::setTransactionId( const decaf::lang::Pointer<TransactionId>& transactionId ) {
+void JournalTransaction::setTransactionId(const decaf::lang::Pointer<TransactionId>& transactionId) {
     this->transactionId = transactionId;
 }
 
@@ -160,7 +160,7 @@ unsigned char JournalTransaction::getTyp
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTransaction::setType( unsigned char type ) {
+void JournalTransaction::setType(unsigned char type) {
     this->type = type;
 }
 
@@ -170,7 +170,7 @@ bool JournalTransaction::getWasPrepared(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void JournalTransaction::setWasPrepared( bool wasPrepared ) {
+void JournalTransaction::setWasPrepared(bool wasPrepared) {
     this->wasPrepared = wasPrepared;
 }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTransaction.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTransaction.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTransaction.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/JournalTransaction.h Sun Mar 24 21:30:52 2013
@@ -30,8 +30,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -57,8 +57,8 @@ namespace commands{
 
     private:
 
-        JournalTransaction( const JournalTransaction& );
-        JournalTransaction& operator= ( const JournalTransaction& );
+        JournalTransaction(const JournalTransaction&);
+        JournalTransaction& operator= (const JournalTransaction&);
 
     public:
 
@@ -70,11 +70,11 @@ namespace commands{
 
         virtual JournalTransaction* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
         virtual const Pointer<TransactionId>& getTransactionId() const;
         virtual Pointer<TransactionId>& getTransactionId();

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/KeepAliveInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/KeepAliveInfo.cpp?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/KeepAliveInfo.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/KeepAliveInfo.cpp Sun Mar 24 21:30:52 2013
@@ -38,8 +38,8 @@ using namespace decaf::lang::exceptions;
  */
 
 ////////////////////////////////////////////////////////////////////////////////
-KeepAliveInfo::KeepAliveInfo() 
-    : BaseCommand() {
+KeepAliveInfo::KeepAliveInfo() :
+    BaseCommand() {
 
 }
 
@@ -49,32 +49,32 @@ KeepAliveInfo::~KeepAliveInfo() {
 
 ////////////////////////////////////////////////////////////////////////////////
 KeepAliveInfo* KeepAliveInfo::cloneDataStructure() const {
-    std::auto_ptr<KeepAliveInfo> keepAliveInfo( new KeepAliveInfo() );
+    std::auto_ptr<KeepAliveInfo> keepAliveInfo(new KeepAliveInfo());
 
     // Copy the data from the base class or classes
-    keepAliveInfo->copyDataStructure( this );
+    keepAliveInfo->copyDataStructure(this);
 
     return keepAliveInfo.release();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void KeepAliveInfo::copyDataStructure( const DataStructure* src ) {
+void KeepAliveInfo::copyDataStructure(const DataStructure* src) {
 
     // Protect against invalid self assignment.
-    if( this == src ) {
+    if (this == src) {
         return;
     }
 
-    const KeepAliveInfo* srcPtr = dynamic_cast<const KeepAliveInfo*>( src );
+    const KeepAliveInfo* srcPtr = dynamic_cast<const KeepAliveInfo*>(src);
 
-    if( srcPtr == NULL || src == NULL ) {
+    if (srcPtr == NULL || src == NULL) {
         throw decaf::lang::exceptions::NullPointerException(
             __FILE__, __LINE__,
-            "KeepAliveInfo::copyDataStructure - src is NULL or invalid" );
+            "KeepAliveInfo::copyDataStructure - src is NULL or invalid");
     }
 
     // Copy the data of the base class or classes
-    BaseCommand::copyDataStructure( src );
+    BaseCommand::copyDataStructure(src);
 
 }
 
@@ -97,26 +97,25 @@ std::string KeepAliveInfo::toString() co
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool KeepAliveInfo::equals( const DataStructure* value ) const {
+bool KeepAliveInfo::equals(const DataStructure* value) const {
 
-    if( this == value ) {
+    if (this == value) {
         return true;
     }
 
-    const KeepAliveInfo* valuePtr = dynamic_cast<const KeepAliveInfo*>( value );
+    const KeepAliveInfo* valuePtr = dynamic_cast<const KeepAliveInfo*>(value);
 
-    if( valuePtr == NULL || value == NULL ) {
+    if (valuePtr == NULL || value == NULL) {
         return false;
     }
 
-    if( !BaseCommand::equals( value ) ) {
+    if (!BaseCommand::equals(value)) {
         return false;
     }
     return true;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-decaf::lang::Pointer<commands::Command> KeepAliveInfo::visit( activemq::state::CommandVisitor* visitor ) {
-
-    return visitor->processKeepAliveInfo( this );
+decaf::lang::Pointer<commands::Command> KeepAliveInfo::visit(activemq::state::CommandVisitor* visitor) {
+    return visitor->processKeepAliveInfo(this);
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/KeepAliveInfo.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/KeepAliveInfo.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/KeepAliveInfo.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/KeepAliveInfo.h Sun Mar 24 21:30:52 2013
@@ -29,8 +29,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -53,8 +53,8 @@ namespace commands{
 
     private:
 
-        KeepAliveInfo( const KeepAliveInfo& );
-        KeepAliveInfo& operator= ( const KeepAliveInfo& );
+        KeepAliveInfo(const KeepAliveInfo&);
+        KeepAliveInfo& operator= (const KeepAliveInfo&);
 
     public:
 
@@ -66,11 +66,11 @@ namespace commands{
 
         virtual KeepAliveInfo* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
         /**
          * @return an answer of true to the isKeepAliveInfo() query.
@@ -79,7 +79,7 @@ namespace commands{
             return true;
         }
 
-        virtual Pointer<Command> visit( activemq::state::CommandVisitor* visitor );
+        virtual Pointer<Command> visit(activemq::state::CommandVisitor* visitor);
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LastPartialCommand.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LastPartialCommand.cpp?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LastPartialCommand.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LastPartialCommand.cpp Sun Mar 24 21:30:52 2013
@@ -38,8 +38,8 @@ using namespace decaf::lang::exceptions;
  */
 
 ////////////////////////////////////////////////////////////////////////////////
-LastPartialCommand::LastPartialCommand() 
-    : PartialCommand() {
+LastPartialCommand::LastPartialCommand() :
+    PartialCommand() {
 
 }
 
@@ -49,32 +49,32 @@ LastPartialCommand::~LastPartialCommand(
 
 ////////////////////////////////////////////////////////////////////////////////
 LastPartialCommand* LastPartialCommand::cloneDataStructure() const {
-    std::auto_ptr<LastPartialCommand> lastPartialCommand( new LastPartialCommand() );
+    std::auto_ptr<LastPartialCommand> lastPartialCommand(new LastPartialCommand());
 
     // Copy the data from the base class or classes
-    lastPartialCommand->copyDataStructure( this );
+    lastPartialCommand->copyDataStructure(this);
 
     return lastPartialCommand.release();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void LastPartialCommand::copyDataStructure( const DataStructure* src ) {
+void LastPartialCommand::copyDataStructure(const DataStructure* src) {
 
     // Protect against invalid self assignment.
-    if( this == src ) {
+    if (this == src) {
         return;
     }
 
-    const LastPartialCommand* srcPtr = dynamic_cast<const LastPartialCommand*>( src );
+    const LastPartialCommand* srcPtr = dynamic_cast<const LastPartialCommand*>(src);
 
-    if( srcPtr == NULL || src == NULL ) {
+    if (srcPtr == NULL || src == NULL) {
         throw decaf::lang::exceptions::NullPointerException(
             __FILE__, __LINE__,
-            "LastPartialCommand::copyDataStructure - src is NULL or invalid" );
+            "LastPartialCommand::copyDataStructure - src is NULL or invalid");
     }
 
     // Copy the data of the base class or classes
-    PartialCommand::copyDataStructure( src );
+    PartialCommand::copyDataStructure(src);
 
 }
 
@@ -95,19 +95,19 @@ std::string LastPartialCommand::toString
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool LastPartialCommand::equals( const DataStructure* value ) const {
+bool LastPartialCommand::equals(const DataStructure* value) const {
 
-    if( this == value ) {
+    if (this == value) {
         return true;
     }
 
-    const LastPartialCommand* valuePtr = dynamic_cast<const LastPartialCommand*>( value );
+    const LastPartialCommand* valuePtr = dynamic_cast<const LastPartialCommand*>(value);
 
-    if( valuePtr == NULL || value == NULL ) {
+    if (valuePtr == NULL || value == NULL) {
         return false;
     }
 
-    if( !PartialCommand::equals( value ) ) {
+    if (!PartialCommand::equals(value)) {
         return false;
     }
     return true;

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LastPartialCommand.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LastPartialCommand.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LastPartialCommand.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LastPartialCommand.h Sun Mar 24 21:30:52 2013
@@ -29,8 +29,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -53,8 +53,8 @@ namespace commands{
 
     private:
 
-        LastPartialCommand( const LastPartialCommand& );
-        LastPartialCommand& operator= ( const LastPartialCommand& );
+        LastPartialCommand(const LastPartialCommand&);
+        LastPartialCommand& operator= (const LastPartialCommand&);
 
     public:
 
@@ -66,11 +66,11 @@ namespace commands{
 
         virtual LastPartialCommand* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.cpp?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.cpp Sun Mar 24 21:30:52 2013
@@ -18,8 +18,9 @@
 #include <activemq/commands/LocalTransactionId.h>
 #include <activemq/exceptions/ActiveMQException.h>
 #include <activemq/state/CommandVisitor.h>
-#include <apr_strings.h>
+#include <decaf/internal/util/StringUtils.h>
 #include <decaf/lang/exceptions/NullPointerException.h>
+#include <decaf/util/HashCode.h>
 
 using namespace std;
 using namespace activemq;
@@ -27,6 +28,7 @@ using namespace activemq::exceptions;
 using namespace activemq::commands;
 using namespace decaf::lang;
 using namespace decaf::lang::exceptions;
+using namespace decaf::internal::util;
 
 /*
  *
@@ -39,16 +41,16 @@ using namespace decaf::lang::exceptions;
  */
 
 ////////////////////////////////////////////////////////////////////////////////
-LocalTransactionId::LocalTransactionId() 
-    : TransactionId(), value(0), connectionId(NULL) {
+LocalTransactionId::LocalTransactionId() :
+    TransactionId(), value(0), connectionId(NULL) {
 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-LocalTransactionId::LocalTransactionId( const LocalTransactionId& other )
-    : TransactionId(), value(0), connectionId(NULL) {
+LocalTransactionId::LocalTransactionId(const LocalTransactionId& other) :
+    TransactionId(), value(0), connectionId(NULL) {
 
-    this->copyDataStructure( &other );
+    this->copyDataStructure(&other);
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -57,35 +59,35 @@ LocalTransactionId::~LocalTransactionId(
 
 ////////////////////////////////////////////////////////////////////////////////
 LocalTransactionId* LocalTransactionId::cloneDataStructure() const {
-    std::auto_ptr<LocalTransactionId> localTransactionId( new LocalTransactionId() );
+    std::auto_ptr<LocalTransactionId> localTransactionId(new LocalTransactionId());
 
     // Copy the data from the base class or classes
-    localTransactionId->copyDataStructure( this );
+    localTransactionId->copyDataStructure(this);
 
     return localTransactionId.release();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void LocalTransactionId::copyDataStructure( const DataStructure* src ) {
+void LocalTransactionId::copyDataStructure(const DataStructure* src) {
 
     // Protect against invalid self assignment.
-    if( this == src ) {
+    if (this == src) {
         return;
     }
 
-    const LocalTransactionId* srcPtr = dynamic_cast<const LocalTransactionId*>( src );
+    const LocalTransactionId* srcPtr = dynamic_cast<const LocalTransactionId*>(src);
 
-    if( srcPtr == NULL || src == NULL ) {
+    if (srcPtr == NULL || src == NULL) {
         throw decaf::lang::exceptions::NullPointerException(
             __FILE__, __LINE__,
-            "LocalTransactionId::copyDataStructure - src is NULL or invalid" );
+            "LocalTransactionId::copyDataStructure - src is NULL or invalid");
     }
 
     // Copy the data of the base class or classes
-    TransactionId::copyDataStructure( src );
+    TransactionId::copyDataStructure(src);
 
-    this->setValue( srcPtr->getValue() );
-    this->setConnectionId( srcPtr->getConnectionId() );
+    this->setValue(srcPtr->getValue());
+    this->setConnectionId(srcPtr->getConnectionId());
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -102,7 +104,7 @@ std::string LocalTransactionId::toString
     stream << "Value = " << this->getValue();
     stream << ", ";
     stream << "ConnectionId = ";
-    if( this->getConnectionId() != NULL ) {
+    if (this->getConnectionId() != NULL) {
         stream << this->getConnectionId()->toString();
     } else {
         stream << "NULL";
@@ -113,29 +115,29 @@ std::string LocalTransactionId::toString
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool LocalTransactionId::equals( const DataStructure* value ) const {
+bool LocalTransactionId::equals(const DataStructure* value) const {
 
-    if( this == value ) {
+    if (this == value) {
         return true;
     }
 
-    const LocalTransactionId* valuePtr = dynamic_cast<const LocalTransactionId*>( value );
+    const LocalTransactionId* valuePtr = dynamic_cast<const LocalTransactionId*>(value);
 
-    if( valuePtr == NULL || value == NULL ) {
+    if (valuePtr == NULL || value == NULL) {
         return false;
     }
 
-    if( this->getValue() != valuePtr->getValue() ) {
+    if (this->getValue() != valuePtr->getValue()) {
         return false;
     }
-    if( this->getConnectionId() != NULL ) {
-        if( !this->getConnectionId()->equals( valuePtr->getConnectionId().get() ) ) {
+    if (this->getConnectionId() != NULL) {
+        if (!this->getConnectionId()->equals( valuePtr->getConnectionId().get())) {
             return false;
         }
-    } else if( valuePtr->getConnectionId() != NULL ) {
+    } else if (valuePtr->getConnectionId() != NULL) {
         return false;
     }
-    if( !TransactionId::equals( value ) ) {
+    if (!TransactionId::equals(value)) {
         return false;
     }
     return true;
@@ -147,7 +149,7 @@ long long LocalTransactionId::getValue()
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void LocalTransactionId::setValue( long long value ) {
+void LocalTransactionId::setValue(long long value) {
     this->value = value;
 }
 
@@ -162,25 +164,25 @@ decaf::lang::Pointer<ConnectionId>& Loca
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void LocalTransactionId::setConnectionId( const decaf::lang::Pointer<ConnectionId>& connectionId ) {
+void LocalTransactionId::setConnectionId(const decaf::lang::Pointer<ConnectionId>& connectionId) {
     this->connectionId = connectionId;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int LocalTransactionId::compareTo( const LocalTransactionId& value ) const {
+int LocalTransactionId::compareTo(const LocalTransactionId& value) const {
 
-    if( this == &value ) {
+    if (this == &value) {
         return 0;
     }
 
-    if( this->value > value.value ) {
+    if (this->value > value.value) {
         return 1;
-    } else if( this->value < value.value ) {
+    } else if(this->value < value.value) {
         return -1;
     }
 
-    int connectionIdComp = this->connectionId->compareTo( *( value.connectionId ) );
-    if( connectionIdComp != 0 ) {
+    int connectionIdComp = this->connectionId->compareTo(*(value.connectionId));
+    if (connectionIdComp != 0) {
         return connectionIdComp;
     }
 
@@ -188,23 +190,28 @@ int LocalTransactionId::compareTo( const
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool LocalTransactionId::equals( const LocalTransactionId& value ) const {
-    return this->equals( (const DataStructure*)&value );
+bool LocalTransactionId::equals(const LocalTransactionId& value) const {
+    return this->equals((const DataStructure*)&value);
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool LocalTransactionId::operator==( const LocalTransactionId& value ) const {
-    return this->compareTo( value ) == 0;
+bool LocalTransactionId::operator==(const LocalTransactionId& value) const {
+    return this->compareTo(value) == 0;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool LocalTransactionId::operator<( const LocalTransactionId& value ) const {
-    return this->compareTo( value ) < 0;
+bool LocalTransactionId::operator<(const LocalTransactionId& value) const {
+    return this->compareTo(value) < 0;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-LocalTransactionId& LocalTransactionId::operator= ( const LocalTransactionId& other ) {
-    this->copyDataStructure( &other );
+LocalTransactionId& LocalTransactionId::operator= (const LocalTransactionId& other) {
+    this->copyDataStructure(&other);
     return *this;
 }
 
+////////////////////////////////////////////////////////////////////////////////
+int LocalTransactionId::getHashCode() const {
+    return decaf::util::HashCode<std::string>()(this->toString());
+}
+

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.h?rev=1460467&r1=1460466&r2=1460467&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.h Sun Mar 24 21:30:52 2013
@@ -31,8 +31,8 @@
 #include <string>
 #include <vector>
 
-namespace activemq{
-namespace commands{
+namespace activemq {
+namespace commands {
 
     using decaf::lang::Pointer;
 
@@ -61,7 +61,7 @@ namespace commands{
 
         LocalTransactionId();
 
-        LocalTransactionId( const LocalTransactionId& other );
+        LocalTransactionId(const LocalTransactionId& other);
 
         virtual ~LocalTransactionId();
 
@@ -69,11 +69,11 @@ namespace commands{
 
         virtual LocalTransactionId* cloneDataStructure() const;
 
-        virtual void copyDataStructure( const DataStructure* src );
+        virtual void copyDataStructure(const DataStructure* src);
 
         virtual std::string toString() const;
 
-        virtual bool equals( const DataStructure* value ) const;
+        virtual bool equals(const DataStructure* value) const;
 
         virtual bool isLocalTransactionId() const {
             return true;
@@ -86,15 +86,17 @@ namespace commands{
         virtual Pointer<ConnectionId>& getConnectionId();
         virtual void setConnectionId( const Pointer<ConnectionId>& connectionId );
 
-        virtual int compareTo( const LocalTransactionId& value ) const;
+        virtual int compareTo(const LocalTransactionId& value) const;
 
-        virtual bool equals( const LocalTransactionId& value ) const;
+        virtual bool equals(const LocalTransactionId& value) const;
 
-        virtual bool operator==( const LocalTransactionId& value ) const;
+        virtual bool operator==(const LocalTransactionId& value) const;
 
-        virtual bool operator<( const LocalTransactionId& value ) const;
+        virtual bool operator<(const LocalTransactionId& value) const;
 
-        LocalTransactionId& operator= ( const LocalTransactionId& other );
+        LocalTransactionId& operator= (const LocalTransactionId& other);
+
+        int getHashCode() const;
 
     };
 



Mime
View raw message