Return-Path: Delivered-To: apmail-geronimo-activemq-commits-archive@www.apache.org Received: (qmail 98485 invoked from network); 15 May 2006 13:46:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 May 2006 13:46:34 -0000 Received: (qmail 3880 invoked by uid 500); 15 May 2006 13:46:30 -0000 Delivered-To: apmail-geronimo-activemq-commits-archive@geronimo.apache.org Received: (qmail 3733 invoked by uid 500); 15 May 2006 13:46:29 -0000 Mailing-List: contact activemq-commits-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-commits@geronimo.apache.org Received: (qmail 3625 invoked by uid 99); 15 May 2006 13:46:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2006 06:46:29 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 15 May 2006 06:46:18 -0700 Received: (qmail 98264 invoked by uid 65534); 15 May 2006 13:45:57 -0000 Message-ID: <20060515134557.98263.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r406628 [7/10] - in /incubator/activemq/trunk/openwire-cpp: ./ src/gram/java/org/apache/activemq/openwire/tool/ src/gram/script/ src/main/cpp/activemq/ src/main/cpp/activemq/command/ src/main/cpp/activemq/protocol/ src/main/cpp/activemq/pro... Date: Mon, 15 May 2006 13:39:33 -0000 To: activemq-commits@geronimo.apache.org From: nmittler@apache.org X-Mailer: svnmailer-1.0.8 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveSubscriptionInfo.cpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveSubscriptionInfo.cpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveSubscriptionInfo.cpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveSubscriptionInfo.cpp Mon May 15 06:38:57 2006 @@ -1,99 +1,97 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#include "activemq/command/RemoveSubscriptionInfo.hpp" - -using namespace apache::activemq::command; - -/* - * - * Marshalling code for Open Wire Format for RemoveSubscriptionInfo - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -RemoveSubscriptionInfo::RemoveSubscriptionInfo() -{ - this->connectionId = NULL ; - this->subcriptionName = NULL ; - this->clientId = NULL ; -} - -RemoveSubscriptionInfo::~RemoveSubscriptionInfo() -{ -} - -unsigned char RemoveSubscriptionInfo::getDataStructureType() -{ - return RemoveSubscriptionInfo::TYPE ; -} - - -p RemoveSubscriptionInfo::getConnectionId() -{ - return connectionId ; -} - -void RemoveSubscriptionInfo::setConnectionId(p connectionId) -{ - this->connectionId = connectionId ; -} - - -p RemoveSubscriptionInfo::getSubcriptionName() -{ - return subcriptionName ; -} - -void RemoveSubscriptionInfo::setSubcriptionName(p subcriptionName) -{ - this->subcriptionName = subcriptionName ; -} - - -p RemoveSubscriptionInfo::getClientId() -{ - return clientId ; -} - -void RemoveSubscriptionInfo::setClientId(p clientId) -{ - this->clientId = clientId ; -} - -int RemoveSubscriptionInfo::marshal(p marshaller, int mode, p writer) throw (IOException) -{ - int size = 0 ; - - size += marshaller->marshalInt(commandId, mode, writer) ; - size += marshaller->marshalBoolean(responseRequired, mode, writer) ; - size += marshaller->marshalObject(connectionId, mode, writer) ; - size += marshaller->marshalString(subcriptionName, mode, writer) ; - size += marshaller->marshalString(clientId, mode, writer) ; - return size ; -} - -void RemoveSubscriptionInfo::unmarshal(p marshaller, int mode, p reader) throw (IOException) -{ - commandId = marshaller->unmarshalInt(mode, reader) ; - responseRequired = marshaller->unmarshalBoolean(mode, reader) ; - connectionId = p_cast(marshaller->unmarshalObject(mode, reader)) ; - subcriptionName = p_cast(marshaller->unmarshalString(mode, reader)) ; - clientId = p_cast(marshaller->unmarshalString(mode, reader)) ; -} +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#include "activemq/command/RemoveSubscriptionInfo.hpp" + +using namespace apache::activemq::command; + +/* + * + * Command and marshalling code for OpenWire format for RemoveSubscriptionInfo + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +RemoveSubscriptionInfo::RemoveSubscriptionInfo() +{ + this->connectionId = NULL ; + this->subcriptionName = NULL ; + this->clientId = NULL ; +} + +RemoveSubscriptionInfo::~RemoveSubscriptionInfo() +{ +} + +unsigned char RemoveSubscriptionInfo::getDataStructureType() +{ + return RemoveSubscriptionInfo::TYPE ; +} + + +p RemoveSubscriptionInfo::getConnectionId() +{ + return connectionId ; +} + +void RemoveSubscriptionInfo::setConnectionId(p connectionId) +{ + this->connectionId = connectionId ; +} + + +p RemoveSubscriptionInfo::getSubcriptionName() +{ + return subcriptionName ; +} + +void RemoveSubscriptionInfo::setSubcriptionName(p subcriptionName) +{ + this->subcriptionName = subcriptionName ; +} + + +p RemoveSubscriptionInfo::getClientId() +{ + return clientId ; +} + +void RemoveSubscriptionInfo::setClientId(p clientId) +{ + this->clientId = clientId ; +} + +int RemoveSubscriptionInfo::marshal(p marshaller, int mode, p ostream) throw (IOException) +{ + int size = 0 ; + + size += BaseCommand::marshal(marshaller, mode, ostream) ; + size += marshaller->marshalObject(connectionId, mode, ostream) ; + size += marshaller->marshalString(subcriptionName, mode, ostream) ; + size += marshaller->marshalString(clientId, mode, ostream) ; + return size ; +} + +void RemoveSubscriptionInfo::unmarshal(p marshaller, int mode, p istream) throw (IOException) +{ + BaseCommand::unmarshal(marshaller, mode, istream) ; + connectionId = p_cast(marshaller->unmarshalObject(mode, istream)) ; + subcriptionName = p_cast(marshaller->unmarshalString(mode, istream)) ; + clientId = p_cast(marshaller->unmarshalString(mode, istream)) ; +} Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveSubscriptionInfo.hpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveSubscriptionInfo.hpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveSubscriptionInfo.hpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveSubscriptionInfo.hpp Mon May 15 06:38:57 2006 @@ -1,91 +1,92 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#ifndef ActiveMQ_RemoveSubscriptionInfo_hpp_ -#define ActiveMQ_RemoveSubscriptionInfo_hpp_ - -// Turn off warning message for ignored exception specification -#ifdef _MSC_VER -#pragma warning( disable : 4290 ) -#endif - -#include -#include "activemq/command/BaseCommand.hpp" -#include "activemq/command/ConnectionId.hpp" -#include "activemq/protocol/IMarshaller.hpp" -#include "ppr/io/IOutputStream.hpp" -#include "ppr/io/IInputStream.hpp" -#include "ppr/io/IOException.hpp" -#include "ppr/util/ifr/array" -#include "ppr/util/ifr/p" - -namespace apache -{ - namespace activemq - { - namespace command - { - using namespace ifr; - using namespace std; - using namespace apache::activemq; - using namespace apache::activemq::protocol; - using namespace apache::ppr::io; - -/* - * - * Marshalling code for Open Wire Format for RemoveSubscriptionInfo - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -class RemoveSubscriptionInfo : public BaseCommand -{ -protected: - p connectionId ; - p subcriptionName ; - p clientId ; - -public: - const static unsigned char TYPE = 0; - -public: - RemoveSubscriptionInfo() ; - virtual ~RemoveSubscriptionInfo() ; - - virtual unsigned char getDataStructureType() ; - - virtual p getConnectionId() ; - virtual void setConnectionId(p connectionId) ; - - virtual p getSubcriptionName() ; - virtual void setSubcriptionName(p subcriptionName) ; - - virtual p getClientId() ; - virtual void setClientId(p clientId) ; - - virtual int marshal(p marshaller, int mode, p writer) throw (IOException) ; - virtual void unmarshal(p marshaller, int mode, p reader) throw (IOException) ; -} ; - -/* namespace */ - } - } -} - -#endif /*ActiveMQ_RemoveSubscriptionInfo_hpp_*/ +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#ifndef ActiveMQ_RemoveSubscriptionInfo_hpp_ +#define ActiveMQ_RemoveSubscriptionInfo_hpp_ + +// Turn off warning message for ignored exception specification +#ifdef _MSC_VER +#pragma warning( disable : 4290 ) +#endif + +#include +#include "activemq/command/BaseCommand.hpp" +#include "activemq/command/ConnectionId.hpp" + +#include "activemq/protocol/IMarshaller.hpp" +#include "ppr/io/IOutputStream.hpp" +#include "ppr/io/IInputStream.hpp" +#include "ppr/io/IOException.hpp" +#include "ppr/util/ifr/array" +#include "ppr/util/ifr/p" + +namespace apache +{ + namespace activemq + { + namespace command + { + using namespace ifr; + using namespace std; + using namespace apache::activemq; + using namespace apache::activemq::protocol; + using namespace apache::ppr::io; + +/* + * + * Command and marshalling code for OpenWire format for RemoveSubscriptionInfo + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +class RemoveSubscriptionInfo : public BaseCommand +{ +protected: + p connectionId ; + p subcriptionName ; + p clientId ; + +public: + const static unsigned char TYPE = 0; + +public: + RemoveSubscriptionInfo() ; + virtual ~RemoveSubscriptionInfo() ; + + virtual unsigned char getDataStructureType() ; + + virtual p getConnectionId() ; + virtual void setConnectionId(p connectionId) ; + + virtual p getSubcriptionName() ; + virtual void setSubcriptionName(p subcriptionName) ; + + virtual p getClientId() ; + virtual void setClientId(p clientId) ; + + virtual int marshal(p marshaller, int mode, p ostream) throw (IOException) ; + virtual void unmarshal(p marshaller, int mode, p istream) throw (IOException) ; +} ; + +/* namespace */ + } + } +} + +#endif /*ActiveMQ_RemoveSubscriptionInfo_hpp_*/ Added: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ReplayCommand.cpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ReplayCommand.cpp?rev=406628&view=auto ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ReplayCommand.cpp (added) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ReplayCommand.cpp Mon May 15 06:38:57 2006 @@ -0,0 +1,83 @@ +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#include "activemq/command/ReplayCommand.hpp" + +using namespace apache::activemq::command; + +/* + * + * Command and marshalling code for OpenWire format for ReplayCommand + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +ReplayCommand::ReplayCommand() +{ + this->firstNakNumber = 0 ; + this->lastNakNumber = 0 ; +} + +ReplayCommand::~ReplayCommand() +{ +} + +unsigned char ReplayCommand::getDataStructureType() +{ + return ReplayCommand::TYPE ; +} + + +int ReplayCommand::getFirstNakNumber() +{ + return firstNakNumber ; +} + +void ReplayCommand::setFirstNakNumber(int firstNakNumber) +{ + this->firstNakNumber = firstNakNumber ; +} + + +int ReplayCommand::getLastNakNumber() +{ + return lastNakNumber ; +} + +void ReplayCommand::setLastNakNumber(int lastNakNumber) +{ + this->lastNakNumber = lastNakNumber ; +} + +int ReplayCommand::marshal(p marshaller, int mode, p ostream) throw (IOException) +{ + int size = 0 ; + + size += BaseCommand::marshal(marshaller, mode, ostream) ; + size += marshaller->marshalInt(firstNakNumber, mode, ostream) ; + size += marshaller->marshalInt(lastNakNumber, mode, ostream) ; + return size ; +} + +void ReplayCommand::unmarshal(p marshaller, int mode, p istream) throw (IOException) +{ + BaseCommand::unmarshal(marshaller, mode, istream) ; + firstNakNumber = (marshaller->unmarshalInt(mode, istream)) ; + lastNakNumber = (marshaller->unmarshalInt(mode, istream)) ; +} Added: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ReplayCommand.hpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ReplayCommand.hpp?rev=406628&view=auto ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ReplayCommand.hpp (added) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ReplayCommand.hpp Mon May 15 06:38:57 2006 @@ -0,0 +1,87 @@ +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#ifndef ActiveMQ_ReplayCommand_hpp_ +#define ActiveMQ_ReplayCommand_hpp_ + +// Turn off warning message for ignored exception specification +#ifdef _MSC_VER +#pragma warning( disable : 4290 ) +#endif + +#include +#include "activemq/command/BaseCommand.hpp" + +#include "activemq/protocol/IMarshaller.hpp" +#include "ppr/io/IOutputStream.hpp" +#include "ppr/io/IInputStream.hpp" +#include "ppr/io/IOException.hpp" +#include "ppr/util/ifr/array" +#include "ppr/util/ifr/p" + +namespace apache +{ + namespace activemq + { + namespace command + { + using namespace ifr; + using namespace std; + using namespace apache::activemq; + using namespace apache::activemq::protocol; + using namespace apache::ppr::io; + +/* + * + * Command and marshalling code for OpenWire format for ReplayCommand + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +class ReplayCommand : public BaseCommand +{ +protected: + int firstNakNumber ; + int lastNakNumber ; + +public: + const static unsigned char TYPE = 65; + +public: + ReplayCommand() ; + virtual ~ReplayCommand() ; + + virtual unsigned char getDataStructureType() ; + + virtual int getFirstNakNumber() ; + virtual void setFirstNakNumber(int firstNakNumber) ; + + virtual int getLastNakNumber() ; + virtual void setLastNakNumber(int lastNakNumber) ; + + virtual int marshal(p marshaller, int mode, p ostream) throw (IOException) ; + virtual void unmarshal(p marshaller, int mode, p istream) throw (IOException) ; +} ; + +/* namespace */ + } + } +} + +#endif /*ActiveMQ_ReplayCommand_hpp_*/ Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/Response.cpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/Response.cpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/Response.cpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/Response.cpp Mon May 15 06:38:57 2006 @@ -1,70 +1,69 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#include "activemq/command/Response.hpp" - -using namespace apache::activemq::command; - -/* - * - * Marshalling code for Open Wire Format for Response - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -Response::Response() -{ - this->correlationId = 0 ; -} - -Response::~Response() -{ -} - -unsigned char Response::getDataStructureType() -{ - return Response::TYPE ; -} - -int Response::getCorrelationId() -{ - return correlationId ; -} - -void Response::setCorrelationId(int correlationId) -{ - this->correlationId = correlationId ; -} - -int Response::marshal(p marshaller, int mode, p writer) throw (IOException) -{ - int size = 0 ; - - size += marshaller->marshalInt(commandId, mode, writer) ; - size += marshaller->marshalBoolean(responseRequired, mode, writer) ; - size += marshaller->marshalInt(correlationId, mode, writer) ; - return size ; -} - -void Response::unmarshal(p marshaller, int mode, p reader) throw (IOException) -{ - commandId = marshaller->unmarshalInt(mode, reader) ; - responseRequired = marshaller->unmarshalBoolean(mode, reader) ; - correlationId = (marshaller->unmarshalInt(mode, reader)) ; -} +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#include "activemq/command/Response.hpp" + +using namespace apache::activemq::command; + +/* + * + * Command and marshalling code for OpenWire format for Response + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +Response::Response() +{ + this->correlationId = 0 ; +} + +Response::~Response() +{ +} + +unsigned char Response::getDataStructureType() +{ + return Response::TYPE ; +} + + +int Response::getCorrelationId() +{ + return correlationId ; +} + +void Response::setCorrelationId(int correlationId) +{ + this->correlationId = correlationId ; +} + +int Response::marshal(p marshaller, int mode, p ostream) throw (IOException) +{ + int size = 0 ; + + size += BaseCommand::marshal(marshaller, mode, ostream) ; + size += marshaller->marshalInt(correlationId, mode, ostream) ; + return size ; +} + +void Response::unmarshal(p marshaller, int mode, p istream) throw (IOException) +{ + BaseCommand::unmarshal(marshaller, mode, istream) ; + correlationId = (marshaller->unmarshalInt(mode, istream)) ; +} Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/Response.hpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/Response.hpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/Response.hpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/Response.hpp Mon May 15 06:38:57 2006 @@ -1,82 +1,83 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#ifndef ActiveMQ_Response_hpp_ -#define ActiveMQ_Response_hpp_ - -// Turn off warning message for ignored exception specification -#ifdef _MSC_VER -#pragma warning( disable : 4290 ) -#endif - -#include -#include "activemq/command/BaseCommand.hpp" -#include "activemq/protocol/IMarshaller.hpp" -#include "ppr/io/IOutputStream.hpp" -#include "ppr/io/IInputStream.hpp" -#include "ppr/io/IOException.hpp" -#include "ppr/util/ifr/array" -#include "ppr/util/ifr/p" - -namespace apache -{ - namespace activemq - { - namespace command - { - using namespace ifr; - using namespace std; - using namespace apache::activemq; - using namespace apache::activemq::protocol; - using namespace apache::ppr::io; - -/* - * - * Marshalling code for Open Wire Format for Response - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -class Response : public BaseCommand -{ -protected: - int correlationId ; - -public: - const static unsigned char TYPE = 30; - -public: - Response() ; - virtual ~Response() ; - - virtual unsigned char getDataStructureType() ; - - virtual int getCorrelationId() ; - virtual void setCorrelationId(int correlationId) ; - - virtual int marshal(p marshaller, int mode, p writer) throw (IOException) ; - virtual void unmarshal(p marshaller, int mode, p reader) throw (IOException) ; -} ; - -/* namespace */ - } - } -} - -#endif /*ActiveMQ_Response_hpp_*/ +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#ifndef ActiveMQ_Response_hpp_ +#define ActiveMQ_Response_hpp_ + +// Turn off warning message for ignored exception specification +#ifdef _MSC_VER +#pragma warning( disable : 4290 ) +#endif + +#include +#include "activemq/command/BaseCommand.hpp" + +#include "activemq/protocol/IMarshaller.hpp" +#include "ppr/io/IOutputStream.hpp" +#include "ppr/io/IInputStream.hpp" +#include "ppr/io/IOException.hpp" +#include "ppr/util/ifr/array" +#include "ppr/util/ifr/p" + +namespace apache +{ + namespace activemq + { + namespace command + { + using namespace ifr; + using namespace std; + using namespace apache::activemq; + using namespace apache::activemq::protocol; + using namespace apache::ppr::io; + +/* + * + * Command and marshalling code for OpenWire format for Response + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +class Response : public BaseCommand +{ +protected: + int correlationId ; + +public: + const static unsigned char TYPE = 30; + +public: + Response() ; + virtual ~Response() ; + + virtual unsigned char getDataStructureType() ; + + virtual int getCorrelationId() ; + virtual void setCorrelationId(int correlationId) ; + + virtual int marshal(p marshaller, int mode, p ostream) throw (IOException) ; + virtual void unmarshal(p marshaller, int mode, p istream) throw (IOException) ; +} ; + +/* namespace */ + } + } +} + +#endif /*ActiveMQ_Response_hpp_*/ Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionId.cpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionId.cpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionId.cpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionId.cpp Mon May 15 06:38:57 2006 @@ -1,81 +1,83 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#include "activemq/command/SessionId.hpp" - -using namespace apache::activemq::command; - -/* - * - * Marshalling code for Open Wire Format for SessionId - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -SessionId::SessionId() -{ - this->connectionId = NULL ; - this->value = 0 ; -} - -SessionId::~SessionId() -{ -} - -unsigned char SessionId::getDataStructureType() -{ - return SessionId::TYPE ; -} - - -p SessionId::getConnectionId() -{ - return connectionId ; -} - -void SessionId::setConnectionId(p connectionId) -{ - this->connectionId = connectionId ; -} - - -long long SessionId::getValue() -{ - return value ; -} - -void SessionId::setValue(long long value) -{ - this->value = value ; -} - -int SessionId::marshal(p marshaller, int mode, p writer) throw (IOException) -{ - int size = 0 ; - - size += marshaller->marshalString(connectionId, mode, writer) ; - size += marshaller->marshalLong(value, mode, writer) ; - return size ; -} - -void SessionId::unmarshal(p marshaller, int mode, p reader) throw (IOException) -{ - connectionId = p_cast(marshaller->unmarshalString(mode, reader)) ; - value = (marshaller->unmarshalLong(mode, reader)) ; -} +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#include "activemq/command/SessionId.hpp" + +using namespace apache::activemq::command; + +/* + * + * Command and marshalling code for OpenWire format for SessionId + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +SessionId::SessionId() +{ + this->connectionId = NULL ; + this->value = 0 ; +} + +SessionId::~SessionId() +{ +} + +unsigned char SessionId::getDataStructureType() +{ + return SessionId::TYPE ; +} + + +p SessionId::getConnectionId() +{ + return connectionId ; +} + +void SessionId::setConnectionId(p connectionId) +{ + this->connectionId = connectionId ; +} + + +long long SessionId::getValue() +{ + return value ; +} + +void SessionId::setValue(long long value) +{ + this->value = value ; +} + +int SessionId::marshal(p marshaller, int mode, p ostream) throw (IOException) +{ + int size = 0 ; + + size += BaseDataStructure::marshal(marshaller, mode, ostream) ; + size += marshaller->marshalString(connectionId, mode, ostream) ; + size += marshaller->marshalLong(value, mode, ostream) ; + return size ; +} + +void SessionId::unmarshal(p marshaller, int mode, p istream) throw (IOException) +{ + BaseDataStructure::unmarshal(marshaller, mode, istream) ; + connectionId = p_cast(marshaller->unmarshalString(mode, istream)) ; + value = (marshaller->unmarshalLong(mode, istream)) ; +} Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionId.hpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionId.hpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionId.hpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionId.hpp Mon May 15 06:38:57 2006 @@ -1,86 +1,87 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#ifndef ActiveMQ_SessionId_hpp_ -#define ActiveMQ_SessionId_hpp_ - -// Turn off warning message for ignored exception specification -#ifdef _MSC_VER -#pragma warning( disable : 4290 ) -#endif - -#include -#include "activemq/command/AbstractCommand.hpp" -#include "activemq/protocol/IMarshaller.hpp" -#include "ppr/io/IOutputStream.hpp" -#include "ppr/io/IInputStream.hpp" -#include "ppr/io/IOException.hpp" -#include "ppr/util/ifr/array" -#include "ppr/util/ifr/p" - -namespace apache -{ - namespace activemq - { - namespace command - { - using namespace ifr; - using namespace std; - using namespace apache::activemq; - using namespace apache::activemq::protocol; - using namespace apache::ppr::io; - -/* - * - * Marshalling code for Open Wire Format for SessionId - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -class SessionId : public AbstractCommand -{ -protected: - p connectionId ; - long long value ; - -public: - const static unsigned char TYPE = 121; - -public: - SessionId() ; - virtual ~SessionId() ; - - virtual unsigned char getDataStructureType() ; - - virtual p getConnectionId() ; - virtual void setConnectionId(p connectionId) ; - - virtual long long getValue() ; - virtual void setValue(long long value) ; - - virtual int marshal(p marshaller, int mode, p writer) throw (IOException) ; - virtual void unmarshal(p marshaller, int mode, p reader) throw (IOException) ; -} ; - -/* namespace */ - } - } -} - -#endif /*ActiveMQ_SessionId_hpp_*/ +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#ifndef ActiveMQ_SessionId_hpp_ +#define ActiveMQ_SessionId_hpp_ + +// Turn off warning message for ignored exception specification +#ifdef _MSC_VER +#pragma warning( disable : 4290 ) +#endif + +#include +#include "activemq/command/BaseDataStructure.hpp" + +#include "activemq/protocol/IMarshaller.hpp" +#include "ppr/io/IOutputStream.hpp" +#include "ppr/io/IInputStream.hpp" +#include "ppr/io/IOException.hpp" +#include "ppr/util/ifr/array" +#include "ppr/util/ifr/p" + +namespace apache +{ + namespace activemq + { + namespace command + { + using namespace ifr; + using namespace std; + using namespace apache::activemq; + using namespace apache::activemq::protocol; + using namespace apache::ppr::io; + +/* + * + * Command and marshalling code for OpenWire format for SessionId + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +class SessionId : public BaseDataStructure +{ +protected: + p connectionId ; + long long value ; + +public: + const static unsigned char TYPE = 121; + +public: + SessionId() ; + virtual ~SessionId() ; + + virtual unsigned char getDataStructureType() ; + + virtual p getConnectionId() ; + virtual void setConnectionId(p connectionId) ; + + virtual long long getValue() ; + virtual void setValue(long long value) ; + + virtual int marshal(p marshaller, int mode, p ostream) throw (IOException) ; + virtual void unmarshal(p marshaller, int mode, p istream) throw (IOException) ; +} ; + +/* namespace */ + } + } +} + +#endif /*ActiveMQ_SessionId_hpp_*/ Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionInfo.cpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionInfo.cpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionInfo.cpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionInfo.cpp Mon May 15 06:38:57 2006 @@ -1,63 +1,69 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#include "activemq/command/SessionInfo.hpp" - -using namespace apache::activemq::command; - -/* - * - * Marshalling code for Open Wire Format for SessionInfo - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ - -unsigned char SessionInfo::getDataStructureType() -{ - return SessionInfo::TYPE ; -} - - -p SessionInfo::getSessionId() -{ - return sessionId ; -} - -void SessionInfo::setSessionId(p sessionId) -{ - this->sessionId = sessionId ; -} - -int SessionInfo::marshal(p marshaller, int mode, p writer) throw (IOException) -{ - int size = 0 ; - - size += marshaller->marshalInt(commandId, mode, writer) ; - size += marshaller->marshalBoolean(responseRequired, mode, writer) ; - size += marshaller->marshalObject(sessionId, mode, writer) ; - return size ; -} - -void SessionInfo::unmarshal(p marshaller, int mode, p reader) throw (IOException) -{ - commandId = marshaller->unmarshalInt(mode, reader) ; - responseRequired = marshaller->unmarshalBoolean(mode, reader) ; - sessionId = p_cast(marshaller->unmarshalObject(mode, reader)) ; -} +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#include "activemq/command/SessionInfo.hpp" + +using namespace apache::activemq::command; + +/* + * + * Command and marshalling code for OpenWire format for SessionInfo + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +SessionInfo::SessionInfo() +{ + this->sessionId = NULL ; +} + +SessionInfo::~SessionInfo() +{ +} + +unsigned char SessionInfo::getDataStructureType() +{ + return SessionInfo::TYPE ; +} + + +p SessionInfo::getSessionId() +{ + return sessionId ; +} + +void SessionInfo::setSessionId(p sessionId) +{ + this->sessionId = sessionId ; +} + +int SessionInfo::marshal(p marshaller, int mode, p ostream) throw (IOException) +{ + int size = 0 ; + + size += BaseCommand::marshal(marshaller, mode, ostream) ; + size += marshaller->marshalObject(sessionId, mode, ostream) ; + return size ; +} + +void SessionInfo::unmarshal(p marshaller, int mode, p istream) throw (IOException) +{ + BaseCommand::unmarshal(marshaller, mode, istream) ; + sessionId = p_cast(marshaller->unmarshalObject(mode, istream)) ; +} Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionInfo.hpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionInfo.hpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionInfo.hpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SessionInfo.hpp Mon May 15 06:38:57 2006 @@ -1,80 +1,84 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#ifndef ActiveMQ_SessionInfo_hpp_ -#define ActiveMQ_SessionInfo_hpp_ - -// Turn off warning message for ignored exception specification -#ifdef _MSC_VER -#pragma warning( disable : 4290 ) -#endif - -#include -#include "activemq/command/BaseCommand.hpp" -#include "activemq/command/SessionId.hpp" -#include "activemq/protocol/IMarshaller.hpp" -#include "ppr/io/IOutputStream.hpp" -#include "ppr/io/IInputStream.hpp" -#include "ppr/io/IOException.hpp" -#include "ppr/util/ifr/array" -#include "ppr/util/ifr/p" - -namespace apache -{ - namespace activemq - { - namespace command - { - using namespace ifr; - using namespace std; - using namespace apache::activemq; - using namespace apache::activemq::protocol; - using namespace apache::ppr::io; - -/* - * - * Marshalling code for Open Wire Format for SessionInfo - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -class SessionInfo : public BaseCommand -{ -protected: - p sessionId ; - -public: - const static unsigned char TYPE = 4; - -public: - virtual unsigned char getDataStructureType() ; - - virtual p getSessionId() ; - virtual void setSessionId(p sessionId) ; - - virtual int marshal(p marshaller, int mode, p writer) throw (IOException) ; - virtual void unmarshal(p marshaller, int mode, p reader) throw (IOException) ; -} ; - -/* namespace */ - } - } -} - -#endif /*ActiveMQ_SessionInfo_hpp_*/ +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#ifndef ActiveMQ_SessionInfo_hpp_ +#define ActiveMQ_SessionInfo_hpp_ + +// Turn off warning message for ignored exception specification +#ifdef _MSC_VER +#pragma warning( disable : 4290 ) +#endif + +#include +#include "activemq/command/BaseCommand.hpp" +#include "activemq/command/SessionId.hpp" + +#include "activemq/protocol/IMarshaller.hpp" +#include "ppr/io/IOutputStream.hpp" +#include "ppr/io/IInputStream.hpp" +#include "ppr/io/IOException.hpp" +#include "ppr/util/ifr/array" +#include "ppr/util/ifr/p" + +namespace apache +{ + namespace activemq + { + namespace command + { + using namespace ifr; + using namespace std; + using namespace apache::activemq; + using namespace apache::activemq::protocol; + using namespace apache::ppr::io; + +/* + * + * Command and marshalling code for OpenWire format for SessionInfo + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +class SessionInfo : public BaseCommand +{ +protected: + p sessionId ; + +public: + const static unsigned char TYPE = 4; + +public: + SessionInfo() ; + virtual ~SessionInfo() ; + + virtual unsigned char getDataStructureType() ; + + virtual p getSessionId() ; + virtual void setSessionId(p sessionId) ; + + virtual int marshal(p marshaller, int mode, p ostream) throw (IOException) ; + virtual void unmarshal(p marshaller, int mode, p istream) throw (IOException) ; +} ; + +/* namespace */ + } + } +} + +#endif /*ActiveMQ_SessionInfo_hpp_*/ Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ShutdownInfo.cpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ShutdownInfo.cpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ShutdownInfo.cpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ShutdownInfo.cpp Mon May 15 06:38:57 2006 @@ -1,57 +1,55 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#include "activemq/command/ShutdownInfo.hpp" - -using namespace apache::activemq::command; - -/* - * - * Marshalling code for Open Wire Format for ShutdownInfo - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -ShutdownInfo::ShutdownInfo() -{ -} - -ShutdownInfo::~ShutdownInfo() -{ -} - -unsigned char ShutdownInfo::getDataStructureType() -{ - return ShutdownInfo::TYPE ; -} - -int ShutdownInfo::marshal(p marshaller, int mode, p writer) throw (IOException) -{ - int size = 0 ; - - size += marshaller->marshalInt(commandId, mode, writer) ; - size += marshaller->marshalBoolean(responseRequired, mode, writer) ; - return size ; -} - -void ShutdownInfo::unmarshal(p marshaller, int mode, p reader) throw (IOException) -{ - commandId = marshaller->unmarshalInt(mode, reader) ; - responseRequired = marshaller->unmarshalBoolean(mode, reader) ; -} +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#include "activemq/command/ShutdownInfo.hpp" + +using namespace apache::activemq::command; + +/* + * + * Command and marshalling code for OpenWire format for ShutdownInfo + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +ShutdownInfo::ShutdownInfo() +{ +} + +ShutdownInfo::~ShutdownInfo() +{ +} + +unsigned char ShutdownInfo::getDataStructureType() +{ + return ShutdownInfo::TYPE ; +} + +int ShutdownInfo::marshal(p marshaller, int mode, p ostream) throw (IOException) +{ + int size = 0 ; + + size += BaseCommand::marshal(marshaller, mode, ostream) ; + return size ; +} + +void ShutdownInfo::unmarshal(p marshaller, int mode, p istream) throw (IOException) +{ + BaseCommand::unmarshal(marshaller, mode, istream) ; +} Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ShutdownInfo.hpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ShutdownInfo.hpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ShutdownInfo.hpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ShutdownInfo.hpp Mon May 15 06:38:57 2006 @@ -1,78 +1,79 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#ifndef ActiveMQ_ShutdownInfo_hpp_ -#define ActiveMQ_ShutdownInfo_hpp_ - -// Turn off warning message for ignored exception specification -#ifdef _MSC_VER -#pragma warning( disable : 4290 ) -#endif - -#include -#include "activemq/command/BaseCommand.hpp" -#include "activemq/protocol/IMarshaller.hpp" -#include "ppr/io/IOutputStream.hpp" -#include "ppr/io/IInputStream.hpp" -#include "ppr/io/IOException.hpp" -#include "ppr/util/ifr/array" -#include "ppr/util/ifr/p" - -namespace apache -{ - namespace activemq - { - namespace command - { - using namespace ifr; - using namespace std; - using namespace apache::activemq; - using namespace apache::activemq::protocol; - using namespace apache::ppr::io; - -/* - * - * Marshalling code for Open Wire Format for ShutdownInfo - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -class ShutdownInfo : public BaseCommand -{ -protected: - -public: - const static unsigned char TYPE = 11; - -public: - ShutdownInfo() ; - virtual ~ShutdownInfo() ; - - virtual unsigned char getDataStructureType() ; - - virtual int marshal(p marshaller, int mode, p writer) throw (IOException) ; - virtual void unmarshal(p marshaller, int mode, p reader) throw (IOException) ; -} ; - -/* namespace */ - } - } -} - -#endif /*ActiveMQ_ShutdownInfo_hpp_*/ +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#ifndef ActiveMQ_ShutdownInfo_hpp_ +#define ActiveMQ_ShutdownInfo_hpp_ + +// Turn off warning message for ignored exception specification +#ifdef _MSC_VER +#pragma warning( disable : 4290 ) +#endif + +#include +#include "activemq/command/BaseCommand.hpp" + +#include "activemq/protocol/IMarshaller.hpp" +#include "ppr/io/IOutputStream.hpp" +#include "ppr/io/IInputStream.hpp" +#include "ppr/io/IOException.hpp" +#include "ppr/util/ifr/array" +#include "ppr/util/ifr/p" + +namespace apache +{ + namespace activemq + { + namespace command + { + using namespace ifr; + using namespace std; + using namespace apache::activemq; + using namespace apache::activemq::protocol; + using namespace apache::ppr::io; + +/* + * + * Command and marshalling code for OpenWire format for ShutdownInfo + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +class ShutdownInfo : public BaseCommand +{ +protected: + +public: + const static unsigned char TYPE = 11; + +public: + ShutdownInfo() ; + virtual ~ShutdownInfo() ; + + virtual unsigned char getDataStructureType() ; + + virtual int marshal(p marshaller, int mode, p ostream) throw (IOException) ; + virtual void unmarshal(p marshaller, int mode, p istream) throw (IOException) ; +} ; + +/* namespace */ + } + } +} + +#endif /*ActiveMQ_ShutdownInfo_hpp_*/ Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SubscriptionInfo.cpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SubscriptionInfo.cpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SubscriptionInfo.cpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SubscriptionInfo.cpp Mon May 15 06:38:57 2006 @@ -1,113 +1,111 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#include "activemq/command/SubscriptionInfo.hpp" - -using namespace apache::activemq::command; - -/* - * - * Marshalling code for Open Wire Format for SubscriptionInfo - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -SubscriptionInfo::SubscriptionInfo() -{ - this->clientId = NULL ; - this->destination = NULL ; - this->selector = NULL ; - this->subcriptionName = NULL ; -} - -SubscriptionInfo::~SubscriptionInfo() -{ -} - -unsigned char SubscriptionInfo::getDataStructureType() -{ - return SubscriptionInfo::TYPE ; -} - - -p SubscriptionInfo::getClientId() -{ - return clientId ; -} - -void SubscriptionInfo::setClientId(p clientId) -{ - this->clientId = clientId ; -} - - -p SubscriptionInfo::getDestination() -{ - return destination ; -} - -void SubscriptionInfo::setDestination(p destination) -{ - this->destination = destination ; -} - - -p SubscriptionInfo::getSelector() -{ - return selector ; -} - -void SubscriptionInfo::setSelector(p selector) -{ - this->selector = selector ; -} - - -p SubscriptionInfo::getSubcriptionName() -{ - return subcriptionName ; -} - -void SubscriptionInfo::setSubcriptionName(p subcriptionName) -{ - this->subcriptionName = subcriptionName ; -} - -int SubscriptionInfo::marshal(p marshaller, int mode, p writer) throw (IOException) -{ - int size = 0 ; - - size += marshaller->marshalInt(commandId, mode, writer) ; - size += marshaller->marshalBoolean(responseRequired, mode, writer) ; - size += marshaller->marshalString(clientId, mode, writer) ; - size += marshaller->marshalObject(destination, mode, writer) ; - size += marshaller->marshalString(selector, mode, writer) ; - size += marshaller->marshalString(subcriptionName, mode, writer) ; - return size ; -} - -void SubscriptionInfo::unmarshal(p marshaller, int mode, p reader) throw (IOException) -{ - commandId = marshaller->unmarshalInt(mode, reader) ; - responseRequired = marshaller->unmarshalBoolean(mode, reader) ; - clientId = p_cast(marshaller->unmarshalString(mode, reader)) ; - destination = p_cast(marshaller->unmarshalObject(mode, reader)) ; - selector = p_cast(marshaller->unmarshalString(mode, reader)) ; - subcriptionName = p_cast(marshaller->unmarshalString(mode, reader)) ; -} +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#include "activemq/command/SubscriptionInfo.hpp" + +using namespace apache::activemq::command; + +/* + * + * Command and marshalling code for OpenWire format for SubscriptionInfo + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +SubscriptionInfo::SubscriptionInfo() +{ + this->clientId = NULL ; + this->destination = NULL ; + this->selector = NULL ; + this->subcriptionName = NULL ; +} + +SubscriptionInfo::~SubscriptionInfo() +{ +} + +unsigned char SubscriptionInfo::getDataStructureType() +{ + return SubscriptionInfo::TYPE ; +} + + +p SubscriptionInfo::getClientId() +{ + return clientId ; +} + +void SubscriptionInfo::setClientId(p clientId) +{ + this->clientId = clientId ; +} + + +p SubscriptionInfo::getDestination() +{ + return destination ; +} + +void SubscriptionInfo::setDestination(p destination) +{ + this->destination = destination ; +} + + +p SubscriptionInfo::getSelector() +{ + return selector ; +} + +void SubscriptionInfo::setSelector(p selector) +{ + this->selector = selector ; +} + + +p SubscriptionInfo::getSubcriptionName() +{ + return subcriptionName ; +} + +void SubscriptionInfo::setSubcriptionName(p subcriptionName) +{ + this->subcriptionName = subcriptionName ; +} + +int SubscriptionInfo::marshal(p marshaller, int mode, p ostream) throw (IOException) +{ + int size = 0 ; + + size += BaseDataStructure::marshal(marshaller, mode, ostream) ; + size += marshaller->marshalString(clientId, mode, ostream) ; + size += marshaller->marshalObject(destination, mode, ostream) ; + size += marshaller->marshalString(selector, mode, ostream) ; + size += marshaller->marshalString(subcriptionName, mode, ostream) ; + return size ; +} + +void SubscriptionInfo::unmarshal(p marshaller, int mode, p istream) throw (IOException) +{ + BaseDataStructure::unmarshal(marshaller, mode, istream) ; + clientId = p_cast(marshaller->unmarshalString(mode, istream)) ; + destination = p_cast(marshaller->unmarshalObject(mode, istream)) ; + selector = p_cast(marshaller->unmarshalString(mode, istream)) ; + subcriptionName = p_cast(marshaller->unmarshalString(mode, istream)) ; +} Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SubscriptionInfo.hpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SubscriptionInfo.hpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SubscriptionInfo.hpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/SubscriptionInfo.hpp Mon May 15 06:38:57 2006 @@ -1,95 +1,96 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#ifndef ActiveMQ_SubscriptionInfo_hpp_ -#define ActiveMQ_SubscriptionInfo_hpp_ - -// Turn off warning message for ignored exception specification -#ifdef _MSC_VER -#pragma warning( disable : 4290 ) -#endif - -#include -#include "activemq/command/AbstractCommand.hpp" -#include "activemq/command/ActiveMQDestination.hpp" -#include "activemq/protocol/IMarshaller.hpp" -#include "ppr/io/IOutputStream.hpp" -#include "ppr/io/IInputStream.hpp" -#include "ppr/io/IOException.hpp" -#include "ppr/util/ifr/array" -#include "ppr/util/ifr/p" - -namespace apache -{ - namespace activemq - { - namespace command - { - using namespace ifr; - using namespace std; - using namespace apache::activemq; - using namespace apache::activemq::protocol; - using namespace apache::ppr::io; - -/* - * - * Marshalling code for Open Wire Format for SubscriptionInfo - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -class SubscriptionInfo : public AbstractCommand -{ -protected: - p clientId ; - p destination ; - p selector ; - p subcriptionName ; - -public: - const static unsigned char TYPE = 55; - -public: - SubscriptionInfo() ; - virtual ~SubscriptionInfo() ; - - virtual unsigned char getDataStructureType() ; - - virtual p getClientId() ; - virtual void setClientId(p clientId) ; - - virtual p getDestination() ; - virtual void setDestination(p destination) ; - - virtual p getSelector() ; - virtual void setSelector(p selector) ; - - virtual p getSubcriptionName() ; - virtual void setSubcriptionName(p subcriptionName) ; - - virtual int marshal(p marshaller, int mode, p writer) throw (IOException) ; - virtual void unmarshal(p marshaller, int mode, p reader) throw (IOException) ; -} ; - -/* namespace */ - } - } -} - -#endif /*ActiveMQ_SubscriptionInfo_hpp_*/ +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#ifndef ActiveMQ_SubscriptionInfo_hpp_ +#define ActiveMQ_SubscriptionInfo_hpp_ + +// Turn off warning message for ignored exception specification +#ifdef _MSC_VER +#pragma warning( disable : 4290 ) +#endif + +#include +#include "activemq/command/BaseDataStructure.hpp" +#include "activemq/command/ActiveMQDestination.hpp" + +#include "activemq/protocol/IMarshaller.hpp" +#include "ppr/io/IOutputStream.hpp" +#include "ppr/io/IInputStream.hpp" +#include "ppr/io/IOException.hpp" +#include "ppr/util/ifr/array" +#include "ppr/util/ifr/p" + +namespace apache +{ + namespace activemq + { + namespace command + { + using namespace ifr; + using namespace std; + using namespace apache::activemq; + using namespace apache::activemq::protocol; + using namespace apache::ppr::io; + +/* + * + * Command and marshalling code for OpenWire format for SubscriptionInfo + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +class SubscriptionInfo : public BaseDataStructure +{ +protected: + p clientId ; + p destination ; + p selector ; + p subcriptionName ; + +public: + const static unsigned char TYPE = 55; + +public: + SubscriptionInfo() ; + virtual ~SubscriptionInfo() ; + + virtual unsigned char getDataStructureType() ; + + virtual p getClientId() ; + virtual void setClientId(p clientId) ; + + virtual p getDestination() ; + virtual void setDestination(p destination) ; + + virtual p getSelector() ; + virtual void setSelector(p selector) ; + + virtual p getSubcriptionName() ; + virtual void setSubcriptionName(p subcriptionName) ; + + virtual int marshal(p marshaller, int mode, p ostream) throw (IOException) ; + virtual void unmarshal(p marshaller, int mode, p istream) throw (IOException) ; +} ; + +/* namespace */ + } + } +} + +#endif /*ActiveMQ_SubscriptionInfo_hpp_*/ Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionId.cpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionId.cpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionId.cpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionId.cpp Mon May 15 06:38:57 2006 @@ -1,53 +1,55 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#include "activemq/command/TransactionId.hpp" - -using namespace apache::activemq::command; - -/* - * - * Marshalling code for Open Wire Format for TransactionId - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -TransactionId::TransactionId() -{ -} - -TransactionId::~TransactionId() -{ -} - -unsigned char TransactionId::getDataStructureType() -{ - return TransactionId::TYPE ; -} - -int TransactionId::marshal(p marshaller, int mode, p writer) throw (IOException) -{ - int size = 0 ; - - return size ; -} - -void TransactionId::unmarshal(p marshaller, int mode, p reader) throw (IOException) -{ -} +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#include "activemq/command/TransactionId.hpp" + +using namespace apache::activemq::command; + +/* + * + * Command and marshalling code for OpenWire format for TransactionId + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +TransactionId::TransactionId() +{ +} + +TransactionId::~TransactionId() +{ +} + +unsigned char TransactionId::getDataStructureType() +{ + return TransactionId::TYPE ; +} + +int TransactionId::marshal(p marshaller, int mode, p ostream) throw (IOException) +{ + int size = 0 ; + + size += BaseDataStructure::marshal(marshaller, mode, ostream) ; + return size ; +} + +void TransactionId::unmarshal(p marshaller, int mode, p istream) throw (IOException) +{ + BaseDataStructure::unmarshal(marshaller, mode, istream) ; +} Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionId.hpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionId.hpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionId.hpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionId.hpp Mon May 15 06:38:57 2006 @@ -1,78 +1,79 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#ifndef ActiveMQ_TransactionId_hpp_ -#define ActiveMQ_TransactionId_hpp_ - -// Turn off warning message for ignored exception specification -#ifdef _MSC_VER -#pragma warning( disable : 4290 ) -#endif - -#include -#include "activemq/command/AbstractCommand.hpp" -#include "activemq/protocol/IMarshaller.hpp" -#include "ppr/io/IOutputStream.hpp" -#include "ppr/io/IInputStream.hpp" -#include "ppr/io/IOException.hpp" -#include "ppr/util/ifr/array" -#include "ppr/util/ifr/p" - -namespace apache -{ - namespace activemq - { - namespace command - { - using namespace ifr; - using namespace std; - using namespace apache::activemq; - using namespace apache::activemq::protocol; - using namespace apache::ppr::io; - -/* - * - * Marshalling code for Open Wire Format for TransactionId - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -class TransactionId : public AbstractCommand -{ -protected: - -public: - const static unsigned char TYPE = 0; - -public: - TransactionId() ; - virtual ~TransactionId() ; - - virtual unsigned char getDataStructureType() ; - - virtual int marshal(p marshaller, int mode, p writer) throw (IOException) ; - virtual void unmarshal(p marshaller, int mode, p reader) throw (IOException) ; -} ; - -/* namespace */ - } - } -} - -#endif /*ActiveMQ_TransactionId_hpp_*/ +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#ifndef ActiveMQ_TransactionId_hpp_ +#define ActiveMQ_TransactionId_hpp_ + +// Turn off warning message for ignored exception specification +#ifdef _MSC_VER +#pragma warning( disable : 4290 ) +#endif + +#include +#include "activemq/command/BaseDataStructure.hpp" + +#include "activemq/protocol/IMarshaller.hpp" +#include "ppr/io/IOutputStream.hpp" +#include "ppr/io/IInputStream.hpp" +#include "ppr/io/IOException.hpp" +#include "ppr/util/ifr/array" +#include "ppr/util/ifr/p" + +namespace apache +{ + namespace activemq + { + namespace command + { + using namespace ifr; + using namespace std; + using namespace apache::activemq; + using namespace apache::activemq::protocol; + using namespace apache::ppr::io; + +/* + * + * Command and marshalling code for OpenWire format for TransactionId + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +class TransactionId : public BaseDataStructure +{ +protected: + +public: + const static unsigned char TYPE = 0; + +public: + TransactionId() ; + virtual ~TransactionId() ; + + virtual unsigned char getDataStructureType() ; + + virtual int marshal(p marshaller, int mode, p ostream) throw (IOException) ; + virtual void unmarshal(p marshaller, int mode, p istream) throw (IOException) ; +} ; + +/* namespace */ + } + } +} + +#endif /*ActiveMQ_TransactionId_hpp_*/ Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionInfo.cpp URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionInfo.cpp?rev=406628&r1=406627&r2=406628&view=diff ============================================================================== --- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionInfo.cpp (original) +++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/TransactionInfo.cpp Mon May 15 06:38:57 2006 @@ -1,99 +1,97 @@ -/* -* Copyright 2006 The Apache Software Foundation or its licensors, as -* applicable. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -#include "activemq/command/TransactionInfo.hpp" - -using namespace apache::activemq::command; - -/* - * - * Marshalling code for Open Wire Format for TransactionInfo - * - * - * NOTE!: This file is autogenerated - do not modify! - * if you need to make a change, please see the Groovy scripts in the - * activemq-core module - * - */ -TransactionInfo::TransactionInfo() -{ - this->connectionId = NULL ; - this->transactionId = NULL ; - this->type = 0 ; -} - -TransactionInfo::~TransactionInfo() -{ -} - -unsigned char TransactionInfo::getDataStructureType() -{ - return TransactionInfo::TYPE ; -} - - -p TransactionInfo::getConnectionId() -{ - return connectionId ; -} - -void TransactionInfo::setConnectionId(p connectionId) -{ - this->connectionId = connectionId ; -} - - -p TransactionInfo::getTransactionId() -{ - return transactionId ; -} - -void TransactionInfo::setTransactionId(p transactionId) -{ - this->transactionId = transactionId ; -} - - -char TransactionInfo::getType() -{ - return type ; -} - -void TransactionInfo::setType(char type) -{ - this->type = type ; -} - -int TransactionInfo::marshal(p marshaller, int mode, p writer) throw (IOException) -{ - int size = 0 ; - - size += marshaller->marshalInt(commandId, mode, writer) ; - size += marshaller->marshalBoolean(responseRequired, mode, writer) ; - size += marshaller->marshalObject(connectionId, mode, writer) ; - size += marshaller->marshalObject(transactionId, mode, writer) ; - size += marshaller->marshalByte(type, mode, writer) ; - return size ; -} - -void TransactionInfo::unmarshal(p marshaller, int mode, p reader) throw (IOException) -{ - commandId = marshaller->unmarshalInt(mode, reader) ; - responseRequired = marshaller->unmarshalBoolean(mode, reader) ; - connectionId = p_cast(marshaller->unmarshalObject(mode, reader)) ; - transactionId = p_cast(marshaller->unmarshalObject(mode, reader)) ; - type = (marshaller->unmarshalByte(mode, reader)) ; -} +/* +* Copyright 2006 The Apache Software Foundation or its licensors, as +* applicable. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#include "activemq/command/TransactionInfo.hpp" + +using namespace apache::activemq::command; + +/* + * + * Command and marshalling code for OpenWire format for TransactionInfo + * + * + * NOTE!: This file is autogenerated - do not modify! + * if you need to make a change, please see the Groovy scripts in the + * activemq-core module + * + */ +TransactionInfo::TransactionInfo() +{ + this->connectionId = NULL ; + this->transactionId = NULL ; + this->type = 0 ; +} + +TransactionInfo::~TransactionInfo() +{ +} + +unsigned char TransactionInfo::getDataStructureType() +{ + return TransactionInfo::TYPE ; +} + + +p TransactionInfo::getConnectionId() +{ + return connectionId ; +} + +void TransactionInfo::setConnectionId(p connectionId) +{ + this->connectionId = connectionId ; +} + + +p TransactionInfo::getTransactionId() +{ + return transactionId ; +} + +void TransactionInfo::setTransactionId(p transactionId) +{ + this->transactionId = transactionId ; +} + + +char TransactionInfo::getType() +{ + return type ; +} + +void TransactionInfo::setType(char type) +{ + this->type = type ; +} + +int TransactionInfo::marshal(p marshaller, int mode, p ostream) throw (IOException) +{ + int size = 0 ; + + size += BaseCommand::marshal(marshaller, mode, ostream) ; + size += marshaller->marshalObject(connectionId, mode, ostream) ; + size += marshaller->marshalObject(transactionId, mode, ostream) ; + size += marshaller->marshalByte(type, mode, ostream) ; + return size ; +} + +void TransactionInfo::unmarshal(p marshaller, int mode, p istream) throw (IOException) +{ + BaseCommand::unmarshal(marshaller, mode, istream) ; + connectionId = p_cast(marshaller->unmarshalObject(mode, istream)) ; + transactionId = p_cast(marshaller->unmarshalObject(mode, istream)) ; + type = (marshaller->unmarshalByte(mode, istream)) ; +}