You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2009/07/24 22:09:44 UTC
svn commit: r797633 [9/37] - in /activemq/activemq-cpp/trunk/activemq-cpp:
./ src/main/ src/main/activemq/commands/ src/main/activemq/core/
src/main/activemq/wireformat/openwire/
src/main/activemq/wireformat/openwire/marshal/v1/ src/main/activemq/wiref...
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/KeepAliveInfoMarshaller.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/KeepAliveInfoMarshaller.h?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/KeepAliveInfoMarshaller.h (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/KeepAliveInfoMarshaller.h Fri Jul 24 20:09:31 2009
@@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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_WIREFORMAT_OPENWIRE_MARSAHAL_V4_KEEPALIVEINFOMARSHALLER_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V4_KEEPALIVEINFOMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/marshal/v4/BaseCommandMarshaller.h>
+
+#include <decaf/io/DataInputStream.h>
+#include <decaf/io/DataOutputStream.h>
+#include <decaf/io/IOException.h>
+#include <activemq/util/Config.h>
+#include <activemq/commands/DataStructure.h>
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+#include <activemq/wireformat/openwire/utils/BooleanStream.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v4{
+
+ /**
+ * Marshaling code for Open Wire Format for KeepAliveInfoMarshaller
+ *
+ * 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
+ */
+ class AMQCPP_API KeepAliveInfoMarshaller : public BaseCommandMarshaller {
+ public:
+
+ KeepAliveInfoMarshaller() {}
+ virtual ~KeepAliveInfoMarshaller() {}
+
+ /**
+ * Creates a new instance of this marshalable type.
+ *
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual commands::DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this Marshaler
+ *
+ * @return byte holding the data structure type value
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Un-marshal an object instance from the data input stream.
+ *
+ * @param wireFormat - describes the wire format of the broker.
+ * @param dataStructure - Object to be un-marshaled.
+ * @param dataIn - BinaryReader that provides that data.
+ * @param bs - BooleanStream stream used to unpack bits from the wire.
+ *
+ * @throws IOException if an error occurs during the unmarshal.
+ */
+ virtual void tightUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataInputStream* dataIn,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Write the booleans that this object uses to a BooleanStream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param bs - BooleanStream stream used to pack bits from the wire.
+ * @returns int value indicating the size of the marshaled object.
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual int tightMarshal1( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataOut - BinaryReader that provides that data sink
+ * @param bs - BooleanStream stream used to pack bits from the wire.
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual void tightMarshal2( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Un-marshal an object instance from the data input stream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataIn - BinaryReader that provides that data source
+ *
+ * @throws IOException if an error occurs during the unmarshal.
+ */
+ virtual void looseUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ *
+ * @param wireFormat - describs the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V4_KEEPALIVEINFOMARSHALLER_H_*/
+
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/KeepAliveInfoMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.cpp?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.cpp Fri Jul 24 20:09:31 2009
@@ -0,0 +1,117 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.h>
+
+#include <activemq/commands/LastPartialCommand.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/Pointer.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v4;
+using namespace decaf;
+using namespace decaf::io;
+using namespace decaf::lang;
+
+///////////////////////////////////////////////////////////////////////////////
+DataStructure* LastPartialCommandMarshaller::createObject() const {
+ return new LastPartialCommand();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char LastPartialCommandMarshaller::getDataStructureType() const {
+ return LastPartialCommand::ID_LASTPARTIALCOMMAND;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LastPartialCommandMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ PartialCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int LastPartialCommandMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ int rc = PartialCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+
+ return rc + 0;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LastPartialCommandMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ PartialCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LastPartialCommandMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ PartialCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LastPartialCommandMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ PartialCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.h?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.h (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.h Fri Jul 24 20:09:31 2009
@@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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_WIREFORMAT_OPENWIRE_MARSAHAL_V4_LASTPARTIALCOMMANDMARSHALLER_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V4_LASTPARTIALCOMMANDMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/marshal/v4/PartialCommandMarshaller.h>
+
+#include <decaf/io/DataInputStream.h>
+#include <decaf/io/DataOutputStream.h>
+#include <decaf/io/IOException.h>
+#include <activemq/util/Config.h>
+#include <activemq/commands/DataStructure.h>
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+#include <activemq/wireformat/openwire/utils/BooleanStream.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v4{
+
+ /**
+ * Marshaling code for Open Wire Format for LastPartialCommandMarshaller
+ *
+ * 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
+ */
+ class AMQCPP_API LastPartialCommandMarshaller : public PartialCommandMarshaller {
+ public:
+
+ LastPartialCommandMarshaller() {}
+ virtual ~LastPartialCommandMarshaller() {}
+
+ /**
+ * Creates a new instance of this marshalable type.
+ *
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual commands::DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this Marshaler
+ *
+ * @return byte holding the data structure type value
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Un-marshal an object instance from the data input stream.
+ *
+ * @param wireFormat - describes the wire format of the broker.
+ * @param dataStructure - Object to be un-marshaled.
+ * @param dataIn - BinaryReader that provides that data.
+ * @param bs - BooleanStream stream used to unpack bits from the wire.
+ *
+ * @throws IOException if an error occurs during the unmarshal.
+ */
+ virtual void tightUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataInputStream* dataIn,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Write the booleans that this object uses to a BooleanStream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param bs - BooleanStream stream used to pack bits from the wire.
+ * @returns int value indicating the size of the marshaled object.
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual int tightMarshal1( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataOut - BinaryReader that provides that data sink
+ * @param bs - BooleanStream stream used to pack bits from the wire.
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual void tightMarshal2( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Un-marshal an object instance from the data input stream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataIn - BinaryReader that provides that data source
+ *
+ * @throws IOException if an error occurs during the unmarshal.
+ */
+ virtual void looseUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ *
+ * @param wireFormat - describs the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V4_LASTPARTIALCOMMANDMARSHALLER_H_*/
+
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.cpp?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.cpp Fri Jul 24 20:09:31 2009
@@ -0,0 +1,140 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.h>
+
+#include <activemq/commands/LocalTransactionId.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/Pointer.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v4;
+using namespace decaf;
+using namespace decaf::io;
+using namespace decaf::lang;
+
+///////////////////////////////////////////////////////////////////////////////
+DataStructure* LocalTransactionIdMarshaller::createObject() const {
+ return new LocalTransactionId();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char LocalTransactionIdMarshaller::getDataStructureType() const {
+ return LocalTransactionId::ID_LOCALTRANSACTIONID;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LocalTransactionIdMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ TransactionIdMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ LocalTransactionId* info =
+ dynamic_cast<LocalTransactionId*>( dataStructure );
+ info->setValue( tightUnmarshalLong( wireFormat, dataIn, bs ) );
+ info->setConnectionId( Pointer<ConnectionId>( dynamic_cast< ConnectionId* >(
+ tightUnmarshalCachedObject( wireFormat, dataIn, bs ) ) ) );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int LocalTransactionIdMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ LocalTransactionId* info =
+ dynamic_cast<LocalTransactionId*>( dataStructure );
+
+ int rc = TransactionIdMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ rc += tightMarshalLong1( wireFormat, info->getValue(), bs );
+ rc += tightMarshalCachedObject1( wireFormat, info->getConnectionId().get(), bs );
+
+ return rc + 0;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LocalTransactionIdMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ TransactionIdMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ LocalTransactionId* info =
+ dynamic_cast<LocalTransactionId*>( dataStructure );
+ tightMarshalLong2( wireFormat, info->getValue(), dataOut, bs );
+ tightMarshalCachedObject2( wireFormat, info->getConnectionId().get(), dataOut, bs );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LocalTransactionIdMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ TransactionIdMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ LocalTransactionId* info =
+ dynamic_cast<LocalTransactionId*>( dataStructure );
+ info->setValue( looseUnmarshalLong( wireFormat, dataIn ) );
+ info->setConnectionId( Pointer<ConnectionId>( dynamic_cast< ConnectionId* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) ) );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LocalTransactionIdMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ LocalTransactionId* info =
+ dynamic_cast<LocalTransactionId*>( dataStructure );
+ TransactionIdMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ looseMarshalLong( wireFormat, info->getValue(), dataOut );
+ looseMarshalCachedObject( wireFormat, info->getConnectionId().get(), dataOut );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.h?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.h (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.h Fri Jul 24 20:09:31 2009
@@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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_WIREFORMAT_OPENWIRE_MARSAHAL_V4_LOCALTRANSACTIONIDMARSHALLER_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V4_LOCALTRANSACTIONIDMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/marshal/v4/TransactionIdMarshaller.h>
+
+#include <decaf/io/DataInputStream.h>
+#include <decaf/io/DataOutputStream.h>
+#include <decaf/io/IOException.h>
+#include <activemq/util/Config.h>
+#include <activemq/commands/DataStructure.h>
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+#include <activemq/wireformat/openwire/utils/BooleanStream.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v4{
+
+ /**
+ * Marshaling code for Open Wire Format for LocalTransactionIdMarshaller
+ *
+ * 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
+ */
+ class AMQCPP_API LocalTransactionIdMarshaller : public TransactionIdMarshaller {
+ public:
+
+ LocalTransactionIdMarshaller() {}
+ virtual ~LocalTransactionIdMarshaller() {}
+
+ /**
+ * Creates a new instance of this marshalable type.
+ *
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual commands::DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this Marshaler
+ *
+ * @return byte holding the data structure type value
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Un-marshal an object instance from the data input stream.
+ *
+ * @param wireFormat - describes the wire format of the broker.
+ * @param dataStructure - Object to be un-marshaled.
+ * @param dataIn - BinaryReader that provides that data.
+ * @param bs - BooleanStream stream used to unpack bits from the wire.
+ *
+ * @throws IOException if an error occurs during the unmarshal.
+ */
+ virtual void tightUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataInputStream* dataIn,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Write the booleans that this object uses to a BooleanStream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param bs - BooleanStream stream used to pack bits from the wire.
+ * @returns int value indicating the size of the marshaled object.
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual int tightMarshal1( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataOut - BinaryReader that provides that data sink
+ * @param bs - BooleanStream stream used to pack bits from the wire.
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual void tightMarshal2( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Un-marshal an object instance from the data input stream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataIn - BinaryReader that provides that data source
+ *
+ * @throws IOException if an error occurs during the unmarshal.
+ */
+ virtual void looseUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ *
+ * @param wireFormat - describs the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V4_LOCALTRANSACTIONIDMARSHALLER_H_*/
+
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MarshallerFactory.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MarshallerFactory.cpp?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MarshallerFactory.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MarshallerFactory.cpp Fri Jul 24 20:09:31 2009
@@ -0,0 +1,152 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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/wireformat/openwire/marshal/v4/MarshallerFactory.h>
+#include <activemq/wireformat/openwire/marshal/v4/ActiveMQBlobMessageMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ActiveMQBytesMessageMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ActiveMQMapMessageMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ActiveMQMessageMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ActiveMQObjectMessageMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ActiveMQQueueMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ActiveMQStreamMessageMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ActiveMQTempQueueMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ActiveMQTempTopicMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ActiveMQTextMessageMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ActiveMQTopicMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/BrokerIdMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/BrokerInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ConnectionControlMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ConnectionErrorMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ConnectionIdMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ConnectionInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ConsumerControlMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ConsumerIdMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ConsumerInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ControlCommandMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/DataArrayResponseMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/DataResponseMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/DestinationInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/DiscoveryEventMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ExceptionResponseMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/FlushCommandMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/IntegerResponseMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/JournalQueueAckMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/JournalTopicAckMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/JournalTraceMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/JournalTransactionMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/KeepAliveInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/LastPartialCommandMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/LocalTransactionIdMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/MessageAckMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/MessageDispatchNotificationMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/MessageIdMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/MessagePullMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/NetworkBridgeFilterMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/PartialCommandMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ProducerAckMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ProducerIdMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ProducerInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/RemoveInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/RemoveSubscriptionInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ReplayCommandMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ResponseMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/SessionIdMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/SessionInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/ShutdownInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/SubscriptionInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/TransactionInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/WireFormatInfoMarshaller.h>
+#include <activemq/wireformat/openwire/marshal/v4/XATransactionIdMarshaller.h>
+
+/*
+ *
+ * Command and marshaling code for OpenWire format for MarshallerFactory
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Java Classes
+ * in the activemq-openwire-generator module
+ *
+ */
+
+using namespace activemq;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::marshal::v4;
+
+///////////////////////////////////////////////////////////////////////////////
+void MarshallerFactory::configure( OpenWireFormat* format ) {
+
+ format->addMarshaller( new ActiveMQBlobMessageMarshaller() );
+ format->addMarshaller( new ActiveMQBytesMessageMarshaller() );
+ format->addMarshaller( new ActiveMQMapMessageMarshaller() );
+ format->addMarshaller( new ActiveMQMessageMarshaller() );
+ format->addMarshaller( new ActiveMQObjectMessageMarshaller() );
+ format->addMarshaller( new ActiveMQQueueMarshaller() );
+ format->addMarshaller( new ActiveMQStreamMessageMarshaller() );
+ format->addMarshaller( new ActiveMQTempQueueMarshaller() );
+ format->addMarshaller( new ActiveMQTempTopicMarshaller() );
+ format->addMarshaller( new ActiveMQTextMessageMarshaller() );
+ format->addMarshaller( new ActiveMQTopicMarshaller() );
+ format->addMarshaller( new BrokerIdMarshaller() );
+ format->addMarshaller( new BrokerInfoMarshaller() );
+ format->addMarshaller( new ConnectionControlMarshaller() );
+ format->addMarshaller( new ConnectionErrorMarshaller() );
+ format->addMarshaller( new ConnectionIdMarshaller() );
+ format->addMarshaller( new ConnectionInfoMarshaller() );
+ format->addMarshaller( new ConsumerControlMarshaller() );
+ format->addMarshaller( new ConsumerIdMarshaller() );
+ format->addMarshaller( new ConsumerInfoMarshaller() );
+ format->addMarshaller( new ControlCommandMarshaller() );
+ format->addMarshaller( new DataArrayResponseMarshaller() );
+ format->addMarshaller( new DataResponseMarshaller() );
+ format->addMarshaller( new DestinationInfoMarshaller() );
+ format->addMarshaller( new DiscoveryEventMarshaller() );
+ format->addMarshaller( new ExceptionResponseMarshaller() );
+ format->addMarshaller( new FlushCommandMarshaller() );
+ format->addMarshaller( new IntegerResponseMarshaller() );
+ format->addMarshaller( new JournalQueueAckMarshaller() );
+ format->addMarshaller( new JournalTopicAckMarshaller() );
+ format->addMarshaller( new JournalTraceMarshaller() );
+ format->addMarshaller( new JournalTransactionMarshaller() );
+ format->addMarshaller( new KeepAliveInfoMarshaller() );
+ format->addMarshaller( new LastPartialCommandMarshaller() );
+ format->addMarshaller( new LocalTransactionIdMarshaller() );
+ format->addMarshaller( new MessageAckMarshaller() );
+ format->addMarshaller( new MessageDispatchMarshaller() );
+ format->addMarshaller( new MessageDispatchNotificationMarshaller() );
+ format->addMarshaller( new MessageIdMarshaller() );
+ format->addMarshaller( new MessagePullMarshaller() );
+ format->addMarshaller( new NetworkBridgeFilterMarshaller() );
+ format->addMarshaller( new PartialCommandMarshaller() );
+ format->addMarshaller( new ProducerAckMarshaller() );
+ format->addMarshaller( new ProducerIdMarshaller() );
+ format->addMarshaller( new ProducerInfoMarshaller() );
+ format->addMarshaller( new RemoveInfoMarshaller() );
+ format->addMarshaller( new RemoveSubscriptionInfoMarshaller() );
+ format->addMarshaller( new ReplayCommandMarshaller() );
+ format->addMarshaller( new ResponseMarshaller() );
+ format->addMarshaller( new SessionIdMarshaller() );
+ format->addMarshaller( new SessionInfoMarshaller() );
+ format->addMarshaller( new ShutdownInfoMarshaller() );
+ format->addMarshaller( new SubscriptionInfoMarshaller() );
+ format->addMarshaller( new TransactionInfoMarshaller() );
+ format->addMarshaller( new WireFormatInfoMarshaller() );
+ format->addMarshaller( new XATransactionIdMarshaller() );
+}
+
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MarshallerFactory.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MarshallerFactory.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MarshallerFactory.h?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MarshallerFactory.h (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MarshallerFactory.h Fri Jul 24 20:09:31 2009
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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_WIREFORMAT_OPENWIRE_MARSAHAL_V4_MARSHALERFACTORY_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V4_MARSHALERFACTORY_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v4{
+
+ /**
+ * Used to create marshallers for a specific version of the wire
+ * protocol.
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the Groovy scripts
+ * in the activemq-openwire-generator module
+ */
+ class MarshallerFactory {
+ public:
+
+ virtual ~MarshallerFactory() {};
+
+ virtual void configure( OpenWireFormat* format );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSHAL_V4_MARSHALLERFACTORY_H_*/
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MarshallerFactory.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageAckMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageAckMarshaller.cpp?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageAckMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageAckMarshaller.cpp Fri Jul 24 20:09:31 2009
@@ -0,0 +1,171 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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/wireformat/openwire/marshal/v4/MessageAckMarshaller.h>
+
+#include <activemq/commands/MessageAck.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/Pointer.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v4;
+using namespace decaf;
+using namespace decaf::io;
+using namespace decaf::lang;
+
+///////////////////////////////////////////////////////////////////////////////
+DataStructure* MessageAckMarshaller::createObject() const {
+ return new MessageAck();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char MessageAckMarshaller::getDataStructureType() const {
+ return MessageAck::ID_MESSAGEACK;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageAckMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ MessageAck* info =
+ dynamic_cast<MessageAck*>( dataStructure );
+ info->setDestination( Pointer<ActiveMQDestination>( dynamic_cast< ActiveMQDestination* >(
+ tightUnmarshalCachedObject( wireFormat, dataIn, bs ) ) ) );
+ info->setTransactionId( Pointer<TransactionId>( dynamic_cast< TransactionId* >(
+ tightUnmarshalCachedObject( wireFormat, dataIn, bs ) ) ) );
+ info->setConsumerId( Pointer<ConsumerId>( dynamic_cast< ConsumerId* >(
+ tightUnmarshalCachedObject( wireFormat, dataIn, bs ) ) ) );
+ info->setAckType( dataIn->readByte() );
+ info->setFirstMessageId( Pointer<MessageId>( dynamic_cast< MessageId* >(
+ tightUnmarshalNestedObject( wireFormat, dataIn, bs ) ) ) );
+ info->setLastMessageId( Pointer<MessageId>( dynamic_cast< MessageId* >(
+ tightUnmarshalNestedObject( wireFormat, dataIn, bs ) ) ) );
+ info->setMessageCount( dataIn->readInt() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int MessageAckMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ MessageAck* info =
+ dynamic_cast<MessageAck*>( dataStructure );
+
+ int rc = BaseCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ rc += tightMarshalCachedObject1( wireFormat, info->getDestination().get(), bs );
+ rc += tightMarshalCachedObject1( wireFormat, info->getTransactionId().get(), bs );
+ rc += tightMarshalCachedObject1( wireFormat, info->getConsumerId().get(), bs );
+ rc += tightMarshalNestedObject1( wireFormat, info->getFirstMessageId().get(), bs );
+ rc += tightMarshalNestedObject1( wireFormat, info->getLastMessageId().get(), bs );
+
+ return rc + 5;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageAckMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ MessageAck* info =
+ dynamic_cast<MessageAck*>( dataStructure );
+ tightMarshalCachedObject2( wireFormat, info->getDestination().get(), dataOut, bs );
+ tightMarshalCachedObject2( wireFormat, info->getTransactionId().get(), dataOut, bs );
+ tightMarshalCachedObject2( wireFormat, info->getConsumerId().get(), dataOut, bs );
+ dataOut->write( info->getAckType() );
+ tightMarshalNestedObject2( wireFormat, info->getFirstMessageId().get(), dataOut, bs );
+ tightMarshalNestedObject2( wireFormat, info->getLastMessageId().get(), dataOut, bs );
+ dataOut->writeInt( info->getMessageCount() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageAckMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ MessageAck* info =
+ dynamic_cast<MessageAck*>( dataStructure );
+ info->setDestination( Pointer<ActiveMQDestination>( dynamic_cast< ActiveMQDestination* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) ) );
+ info->setTransactionId( Pointer<TransactionId>( dynamic_cast< TransactionId* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) ) );
+ info->setConsumerId( Pointer<ConsumerId>( dynamic_cast< ConsumerId* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) ) );
+ info->setAckType( dataIn->readByte() );
+ info->setFirstMessageId( Pointer<MessageId>( dynamic_cast< MessageId* >(
+ looseUnmarshalNestedObject( wireFormat, dataIn ) ) ) );
+ info->setLastMessageId( Pointer<MessageId>( dynamic_cast< MessageId* >(
+ looseUnmarshalNestedObject( wireFormat, dataIn ) ) ) );
+ info->setMessageCount( dataIn->readInt() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageAckMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ MessageAck* info =
+ dynamic_cast<MessageAck*>( dataStructure );
+ BaseCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ looseMarshalCachedObject( wireFormat, info->getDestination().get(), dataOut );
+ looseMarshalCachedObject( wireFormat, info->getTransactionId().get(), dataOut );
+ looseMarshalCachedObject( wireFormat, info->getConsumerId().get(), dataOut );
+ dataOut->write( info->getAckType() );
+ looseMarshalNestedObject( wireFormat, info->getFirstMessageId().get(), dataOut );
+ looseMarshalNestedObject( wireFormat, info->getLastMessageId().get(), dataOut );
+ dataOut->writeInt( info->getMessageCount() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageAckMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageAckMarshaller.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageAckMarshaller.h?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageAckMarshaller.h (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageAckMarshaller.h Fri Jul 24 20:09:31 2009
@@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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_WIREFORMAT_OPENWIRE_MARSAHAL_V4_MESSAGEACKMARSHALLER_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V4_MESSAGEACKMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/marshal/v4/BaseCommandMarshaller.h>
+
+#include <decaf/io/DataInputStream.h>
+#include <decaf/io/DataOutputStream.h>
+#include <decaf/io/IOException.h>
+#include <activemq/util/Config.h>
+#include <activemq/commands/DataStructure.h>
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+#include <activemq/wireformat/openwire/utils/BooleanStream.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v4{
+
+ /**
+ * Marshaling code for Open Wire Format for MessageAckMarshaller
+ *
+ * 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
+ */
+ class AMQCPP_API MessageAckMarshaller : public BaseCommandMarshaller {
+ public:
+
+ MessageAckMarshaller() {}
+ virtual ~MessageAckMarshaller() {}
+
+ /**
+ * Creates a new instance of this marshalable type.
+ *
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual commands::DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this Marshaler
+ *
+ * @return byte holding the data structure type value
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Un-marshal an object instance from the data input stream.
+ *
+ * @param wireFormat - describes the wire format of the broker.
+ * @param dataStructure - Object to be un-marshaled.
+ * @param dataIn - BinaryReader that provides that data.
+ * @param bs - BooleanStream stream used to unpack bits from the wire.
+ *
+ * @throws IOException if an error occurs during the unmarshal.
+ */
+ virtual void tightUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataInputStream* dataIn,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Write the booleans that this object uses to a BooleanStream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param bs - BooleanStream stream used to pack bits from the wire.
+ * @returns int value indicating the size of the marshaled object.
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual int tightMarshal1( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataOut - BinaryReader that provides that data sink
+ * @param bs - BooleanStream stream used to pack bits from the wire.
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual void tightMarshal2( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Un-marshal an object instance from the data input stream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataIn - BinaryReader that provides that data source
+ *
+ * @throws IOException if an error occurs during the unmarshal.
+ */
+ virtual void looseUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ *
+ * @param wireFormat - describs the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V4_MESSAGEACKMARSHALLER_H_*/
+
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageAckMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.cpp?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.cpp Fri Jul 24 20:09:31 2009
@@ -0,0 +1,153 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.h>
+
+#include <activemq/commands/MessageDispatch.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/Pointer.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v4;
+using namespace decaf;
+using namespace decaf::io;
+using namespace decaf::lang;
+
+///////////////////////////////////////////////////////////////////////////////
+DataStructure* MessageDispatchMarshaller::createObject() const {
+ return new MessageDispatch();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char MessageDispatchMarshaller::getDataStructureType() const {
+ return MessageDispatch::ID_MESSAGEDISPATCH;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ MessageDispatch* info =
+ dynamic_cast<MessageDispatch*>( dataStructure );
+ info->setConsumerId( Pointer<ConsumerId>( dynamic_cast< ConsumerId* >(
+ tightUnmarshalCachedObject( wireFormat, dataIn, bs ) ) ) );
+ info->setDestination( Pointer<ActiveMQDestination>( dynamic_cast< ActiveMQDestination* >(
+ tightUnmarshalCachedObject( wireFormat, dataIn, bs ) ) ) );
+ info->setMessage( Pointer<Message>( dynamic_cast< Message* >(
+ tightUnmarshalNestedObject( wireFormat, dataIn, bs ) ) ) );
+ info->setRedeliveryCounter( dataIn->readInt() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int MessageDispatchMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ MessageDispatch* info =
+ dynamic_cast<MessageDispatch*>( dataStructure );
+
+ int rc = BaseCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ rc += tightMarshalCachedObject1( wireFormat, info->getConsumerId().get(), bs );
+ rc += tightMarshalCachedObject1( wireFormat, info->getDestination().get(), bs );
+ rc += tightMarshalNestedObject1( wireFormat, info->getMessage().get(), bs );
+
+ return rc + 4;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ MessageDispatch* info =
+ dynamic_cast<MessageDispatch*>( dataStructure );
+ tightMarshalCachedObject2( wireFormat, info->getConsumerId().get(), dataOut, bs );
+ tightMarshalCachedObject2( wireFormat, info->getDestination().get(), dataOut, bs );
+ tightMarshalNestedObject2( wireFormat, info->getMessage().get(), dataOut, bs );
+ dataOut->writeInt( info->getRedeliveryCounter() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ MessageDispatch* info =
+ dynamic_cast<MessageDispatch*>( dataStructure );
+ info->setConsumerId( Pointer<ConsumerId>( dynamic_cast< ConsumerId* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) ) );
+ info->setDestination( Pointer<ActiveMQDestination>( dynamic_cast< ActiveMQDestination* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) ) );
+ info->setMessage( Pointer<Message>( dynamic_cast< Message* >(
+ looseUnmarshalNestedObject( wireFormat, dataIn ) ) ) );
+ info->setRedeliveryCounter( dataIn->readInt() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ MessageDispatch* info =
+ dynamic_cast<MessageDispatch*>( dataStructure );
+ BaseCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ looseMarshalCachedObject( wireFormat, info->getConsumerId().get(), dataOut );
+ looseMarshalCachedObject( wireFormat, info->getDestination().get(), dataOut );
+ looseMarshalNestedObject( wireFormat, info->getMessage().get(), dataOut );
+ dataOut->writeInt( info->getRedeliveryCounter() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.h?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.h (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.h Fri Jul 24 20:09:31 2009
@@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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_WIREFORMAT_OPENWIRE_MARSAHAL_V4_MESSAGEDISPATCHMARSHALLER_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V4_MESSAGEDISPATCHMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/marshal/v4/BaseCommandMarshaller.h>
+
+#include <decaf/io/DataInputStream.h>
+#include <decaf/io/DataOutputStream.h>
+#include <decaf/io/IOException.h>
+#include <activemq/util/Config.h>
+#include <activemq/commands/DataStructure.h>
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+#include <activemq/wireformat/openwire/utils/BooleanStream.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v4{
+
+ /**
+ * Marshaling code for Open Wire Format for MessageDispatchMarshaller
+ *
+ * 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
+ */
+ class AMQCPP_API MessageDispatchMarshaller : public BaseCommandMarshaller {
+ public:
+
+ MessageDispatchMarshaller() {}
+ virtual ~MessageDispatchMarshaller() {}
+
+ /**
+ * Creates a new instance of this marshalable type.
+ *
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual commands::DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this Marshaler
+ *
+ * @return byte holding the data structure type value
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Un-marshal an object instance from the data input stream.
+ *
+ * @param wireFormat - describes the wire format of the broker.
+ * @param dataStructure - Object to be un-marshaled.
+ * @param dataIn - BinaryReader that provides that data.
+ * @param bs - BooleanStream stream used to unpack bits from the wire.
+ *
+ * @throws IOException if an error occurs during the unmarshal.
+ */
+ virtual void tightUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataInputStream* dataIn,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Write the booleans that this object uses to a BooleanStream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param bs - BooleanStream stream used to pack bits from the wire.
+ * @returns int value indicating the size of the marshaled object.
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual int tightMarshal1( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataOut - BinaryReader that provides that data sink
+ * @param bs - BooleanStream stream used to pack bits from the wire.
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual void tightMarshal2( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut,
+ utils::BooleanStream* bs ) throw( decaf::io::IOException );
+
+ /**
+ * Un-marshal an object instance from the data input stream
+ *
+ * @param wireFormat - describes the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataIn - BinaryReader that provides that data source
+ *
+ * @throws IOException if an error occurs during the unmarshal.
+ */
+ virtual void looseUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ *
+ * @param wireFormat - describs the wire format of the broker
+ * @param dataStructure - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ *
+ * @throws IOException if an error occurs during the marshal.
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V4_MESSAGEDISPATCHMARSHALLER_H_*/
+
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchNotificationMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchNotificationMarshaller.cpp?rev=797633&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchNotificationMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchNotificationMarshaller.cpp Fri Jul 24 20:09:31 2009
@@ -0,0 +1,154 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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/wireformat/openwire/marshal/v4/MessageDispatchNotificationMarshaller.h>
+
+#include <activemq/commands/MessageDispatchNotification.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/Pointer.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v4;
+using namespace decaf;
+using namespace decaf::io;
+using namespace decaf::lang;
+
+///////////////////////////////////////////////////////////////////////////////
+DataStructure* MessageDispatchNotificationMarshaller::createObject() const {
+ return new MessageDispatchNotification();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char MessageDispatchNotificationMarshaller::getDataStructureType() const {
+ return MessageDispatchNotification::ID_MESSAGEDISPATCHNOTIFICATION;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchNotificationMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ MessageDispatchNotification* info =
+ dynamic_cast<MessageDispatchNotification*>( dataStructure );
+ info->setConsumerId( Pointer<ConsumerId>( dynamic_cast< ConsumerId* >(
+ tightUnmarshalCachedObject( wireFormat, dataIn, bs ) ) ) );
+ info->setDestination( Pointer<ActiveMQDestination>( dynamic_cast< ActiveMQDestination* >(
+ tightUnmarshalCachedObject( wireFormat, dataIn, bs ) ) ) );
+ info->setDeliverySequenceId( tightUnmarshalLong( wireFormat, dataIn, bs ) );
+ info->setMessageId( Pointer<MessageId>( dynamic_cast< MessageId* >(
+ tightUnmarshalNestedObject( wireFormat, dataIn, bs ) ) ) );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int MessageDispatchNotificationMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ MessageDispatchNotification* info =
+ dynamic_cast<MessageDispatchNotification*>( dataStructure );
+
+ int rc = BaseCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ rc += tightMarshalCachedObject1( wireFormat, info->getConsumerId().get(), bs );
+ rc += tightMarshalCachedObject1( wireFormat, info->getDestination().get(), bs );
+ rc += tightMarshalLong1( wireFormat, info->getDeliverySequenceId(), bs );
+ rc += tightMarshalNestedObject1( wireFormat, info->getMessageId().get(), bs );
+
+ return rc + 0;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchNotificationMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ MessageDispatchNotification* info =
+ dynamic_cast<MessageDispatchNotification*>( dataStructure );
+ tightMarshalCachedObject2( wireFormat, info->getConsumerId().get(), dataOut, bs );
+ tightMarshalCachedObject2( wireFormat, info->getDestination().get(), dataOut, bs );
+ tightMarshalLong2( wireFormat, info->getDeliverySequenceId(), dataOut, bs );
+ tightMarshalNestedObject2( wireFormat, info->getMessageId().get(), dataOut, bs );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchNotificationMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ MessageDispatchNotification* info =
+ dynamic_cast<MessageDispatchNotification*>( dataStructure );
+ info->setConsumerId( Pointer<ConsumerId>( dynamic_cast< ConsumerId* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) ) );
+ info->setDestination( Pointer<ActiveMQDestination>( dynamic_cast< ActiveMQDestination* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) ) );
+ info->setDeliverySequenceId( looseUnmarshalLong( wireFormat, dataIn ) );
+ info->setMessageId( Pointer<MessageId>( dynamic_cast< MessageId* >(
+ looseUnmarshalNestedObject( wireFormat, dataIn ) ) ) );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchNotificationMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ MessageDispatchNotification* info =
+ dynamic_cast<MessageDispatchNotification*>( dataStructure );
+ BaseCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ looseMarshalCachedObject( wireFormat, info->getConsumerId().get(), dataOut );
+ looseMarshalCachedObject( wireFormat, info->getDestination().get(), dataOut );
+ looseMarshalLong( wireFormat, info->getDeliverySequenceId(), dataOut );
+ looseMarshalNestedObject( wireFormat, info->getMessageId().get(), dataOut );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/marshal/v4/MessageDispatchNotificationMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native