Modified: activemq/activemq-cpp/trunk/src/main/activemq/commands/TransactionInfo.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/TransactionInfo.cpp?rev=747816&r1=747815&r2=747816&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/src/main/activemq/commands/TransactionInfo.cpp (original) +++ activemq/activemq-cpp/trunk/src/main/activemq/commands/TransactionInfo.cpp Wed Feb 25 15:23:48 2009 @@ -14,9 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +#include <activemq/exceptions/ActiveMQException.h> #include <activemq/commands/TransactionInfo.h> #include <activemq/state/CommandVisitor.h> -#include <activemq/exceptions/ActiveMQException.h> #include <decaf/lang/exceptions/NullPointerException.h> using namespace std; @@ -28,14 +29,14 @@ /* * - * Command and marshaling code for OpenWire format for TransactionInfo - * + * Command code for OpenWire format for TransactionInfo * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the Java Classes in the - * activemq-core module + * activemq-cpp-openwire-generator module * */ + //////////////////////////////////////////////////////////////////////////////// TransactionInfo::TransactionInfo() { @@ -44,7 +45,6 @@ //////////////////////////////////////////////////////////////////////////////// TransactionInfo::~TransactionInfo() { - } //////////////////////////////////////////////////////////////////////////////// @@ -149,13 +149,6 @@ } //////////////////////////////////////////////////////////////////////////////// -decaf::lang::Pointer<commands::Command> TransactionInfo::visit( activemq::state::CommandVisitor* visitor ) - throw( exceptions::ActiveMQException ) { - - return visitor->processTransactionInfo( this ); -} - -//////////////////////////////////////////////////////////////////////////////// const decaf::lang::Pointer<ConnectionId>& TransactionInfo::getConnectionId() const { return connectionId; } @@ -195,3 +188,9 @@ this->type = type; } +//////////////////////////////////////////////////////////////////////////////// +decaf::lang::Pointer<commands::Command> TransactionInfo::visit( activemq::state::CommandVisitor* visitor ) + throw( exceptions::ActiveMQException ) { + + return visitor->processTransactionInfo( this ); +}
Modified: activemq/activemq-cpp/trunk/src/main/activemq/commands/TransactionInfo.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/TransactionInfo.h?rev=747816&r1=747815&r2=747816&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/src/main/activemq/commands/TransactionInfo.h (original) +++ activemq/activemq-cpp/trunk/src/main/activemq/commands/TransactionInfo.h Wed Feb 25 15:23:48 2009 @@ -15,6 +15,7 @@ * limitations under the License. */ + #ifndef _ACTIVEMQ_COMMANDS_TRANSACTIONINFO_H_ #define _ACTIVEMQ_COMMANDS_TRANSACTIONINFO_H_ @@ -23,25 +24,24 @@ #pragma warning( disable : 4290 ) #endif -#include <activemq/util/Config.h> -#include <activemq/commands/BaseCommand.h> #include <decaf/lang/Pointer.h> -#include <activemq/commands/TransactionId.h> #include <activemq/commands/ConnectionId.h> -#include <vector> +#include <activemq/util/Config.h> #include <string> +#include <activemq/commands/BaseCommand.h> +#include <vector> +#include <activemq/commands/TransactionId.h> namespace activemq{ namespace commands{ /* * - * Command and marshaling code for OpenWire format for TransactionInfo - * + * Command code for OpenWire format for TransactionInfo * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the Java Classes - * in the activemq-openwire-generator module + * in the activemq-cpp-openwire-generator module * */ class AMQCPP_API TransactionInfo : public BaseCommand { @@ -51,6 +51,10 @@ decaf::lang::Pointer<TransactionId> transactionId; unsigned char type; + public: + + const static unsigned char ID_TRANSACTIONINFO = 7; + protected: TransactionInfo( const TransactionInfo& other ); @@ -58,11 +62,8 @@ public: - const static unsigned char ID_TRANSACTIONINFO = 7; - - public: - TransactionInfo(); + virtual ~TransactionInfo(); /** @@ -101,16 +102,6 @@ */ virtual bool equals( const DataStructure* value ) const; - /** - * Allows a Visitor to visit this command and return a response to the - * command based on the command type being visited. The command will call - * the proper processXXX method in the visitor. - * - * @return a Response to the visitor being called or NULL if no response. - */ - virtual decaf::lang::Pointer<commands::Command> visit( activemq::state::CommandVisitor* visitor ) - throw( exceptions::ActiveMQException ); - virtual const decaf::lang::Pointer<ConnectionId>& getConnectionId() const; virtual decaf::lang::Pointer<ConnectionId>& getConnectionId(); virtual void setConnectionId( const decaf::lang::Pointer<ConnectionId>& connectionId ); @@ -122,6 +113,16 @@ virtual unsigned char getType() const; virtual void setType( unsigned char type ); + /** + * Allows a Visitor to visit this command and return a response to the + * command based on the command type being visited. The command will call + * the proper processXXX method in the visitor. + * + * @return a Response to the visitor being called or NULL if no response. + */ + virtual decaf::lang::Pointer<commands::Command> visit( activemq::state::CommandVisitor* visitor ) + throw( exceptions::ActiveMQException ); + }; }} Modified: activemq/activemq-cpp/trunk/src/main/activemq/commands/XATransactionId.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/XATransactionId.cpp?rev=747816&r1=747815&r2=747816&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/src/main/activemq/commands/XATransactionId.cpp (original) +++ activemq/activemq-cpp/trunk/src/main/activemq/commands/XATransactionId.cpp Wed Feb 25 15:23:48 2009 @@ -14,11 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +#include <activemq/exceptions/ActiveMQException.h> #include <activemq/commands/XATransactionId.h> +#include <apr_strings.h> #include <activemq/state/CommandVisitor.h> -#include <activemq/exceptions/ActiveMQException.h> #include <decaf/lang/exceptions/NullPointerException.h> -#include <apr_strings.h> using namespace std; using namespace activemq; @@ -29,14 +30,14 @@ /* * - * Command and marshaling code for OpenWire format for XATransactionId - * + * Command code for OpenWire format for XATransactionId * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the Java Classes in the - * activemq-core module + * activemq-cpp-openwire-generator module * */ + //////////////////////////////////////////////////////////////////////////////// XATransactionId::XATransactionId() { @@ -50,7 +51,6 @@ //////////////////////////////////////////////////////////////////////////////// XATransactionId::~XATransactionId() { - } //////////////////////////////////////////////////////////////////////////////// @@ -226,6 +226,7 @@ bool XATransactionId::operator<( const XATransactionId& value ) const { return this->compareTo( value ) < 0; } + //////////////////////////////////////////////////////////////////////////////// XATransactionId& XATransactionId::operator= ( const XATransactionId& other ) { this->copyDataStructure( &other ); Modified: activemq/activemq-cpp/trunk/src/main/activemq/commands/XATransactionId.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/XATransactionId.h?rev=747816&r1=747815&r2=747816&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/src/main/activemq/commands/XATransactionId.h (original) +++ activemq/activemq-cpp/trunk/src/main/activemq/commands/XATransactionId.h Wed Feb 25 15:23:48 2009 @@ -15,6 +15,7 @@ * limitations under the License. */ + #ifndef _ACTIVEMQ_COMMANDS_XATRANSACTIONID_H_ #define _ACTIVEMQ_COMMANDS_XATRANSACTIONID_H_ @@ -23,24 +24,23 @@ #pragma warning( disable : 4290 ) #endif -#include <activemq/util/Config.h> -#include <activemq/commands/TransactionId.h> #include <decaf/lang/Pointer.h> #include <decaf/lang/Comparable.h> -#include <vector> +#include <activemq/util/Config.h> #include <string> +#include <vector> +#include <activemq/commands/TransactionId.h> namespace activemq{ namespace commands{ /* * - * Command and marshaling code for OpenWire format for XATransactionId - * + * Command code for OpenWire format for XATransactionId * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the Java Classes - * in the activemq-openwire-generator module + * in the activemq-cpp-openwire-generator module * */ class AMQCPP_API XATransactionId : public TransactionId, public decaf::lang::Comparable<XATransactionId> { @@ -59,7 +59,9 @@ public: XATransactionId(); + XATransactionId( const XATransactionId& other ); + virtual ~XATransactionId(); /** @@ -118,6 +120,7 @@ virtual bool operator<( const XATransactionId& value ) const; XATransactionId& operator= ( const XATransactionId& other ); + }; }}
