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 2006/10/18 00:38:20 UTC
svn commit: r465087 [6/9] -
/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,79 @@
+/*
+ * 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/connector/openwire/marshal/v2/LastPartialCommandMarshaller.h>
+
+#include <activemq/connector/openwire/commands/LastPartialCommand.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::io;
+using namespace activemq::connector;
+using namespace activemq::connector::openwire;
+using namespace activemq::connector::openwire::commands;
+using namespace activemq::connector::openwire::marshal;
+using namespace activemq::connector::openwire::util;
+using namespace activemq::connector::openwire::marshal::v2;
+
+///////////////////////////////////////////////////////////////////////////////
+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 ) {
+ PartialCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int LastPartialCommandMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+ int rc = PartialCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+
+ return rc + 0;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LastPartialCommandMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+ PartialCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LastPartialCommandMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+ PartialCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LastPartialCommandMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+ PartialCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+}
+
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshaller.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshaller.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshaller.h Tue Oct 17 15:38:16 2006
@@ -0,0 +1,126 @@
+/*
+ * 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_CONNECTOR_OPENWIRE_MARSAHAL_V2_LASTPARTIALCOMMANDMARSHALLER_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_LASTPARTIALCOMMANDMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/connector/openwire/marshal/V2/PartialCommandMarshaller.h>
+
+#include <activemq/io/DataInputStream.h>
+#include <activemq/io/DataOutputStream.h>
+#include <activemq/io/IOException.h>
+#include <activemq/connector/openwire/commands/DataStructure.h>
+#include <activemq/connector/openwire/util/BooleanStream.h>
+
+namespace activemq{
+namespace connector{
+namespace openwire{
+namespace marshal{
+namespace v2{
+
+ /**
+ * Marshalling code for Open Wire Format for LastPartialCommandMarshaller
+ *
+ * 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
+ */
+ class LastPartialCommandMarshaller : public PartialCommandMarshaller
+ {
+ public:
+
+ LastPartialCommandMarshaller() {};
+ virtual ~LastPartialCommandMarshaller() {};
+
+ /**
+ * Creates a new instance of this marshalable type.
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this Marshaller
+ * @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 - describs the wire format of the broker
+ * @param o - Object to be un-marshaled
+ * @param dataIn - BinaryReader that provides that data
+ * @param bs - BooleanStream
+ */
+ virtual void tightUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataInputStream* dataIn,
+ util::BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Write the booleans that this object uses to a BooleanStream
+ * @param wireFormat - describis the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param bs - BooleanStream
+ * @returns int
+ */
+ virtual int tightMarshal1( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryReader that provides that data sink
+ * @param bs - BooleanStream
+ */
+ virtual void tightMarshal2( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataOutputStream* dataOut,
+ BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Un-marshal an object instance from the data input stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataIn - BinaryReader that provides that data source
+ */
+ virtual void looseUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataInputStream* dataIn ) throws( io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataOutputStream* dataOut ) throws( io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_LASTPARTIALCOMMANDMARSHALLER_H_*/
+
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,111 @@
+/*
+ * 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/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.h>
+
+#include <activemq/connector/openwire/commands/LocalTransactionId.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::io;
+using namespace activemq::connector;
+using namespace activemq::connector::openwire;
+using namespace activemq::connector::openwire::commands;
+using namespace activemq::connector::openwire::marshal;
+using namespace activemq::connector::openwire::util;
+using namespace activemq::connector::openwire::marshal::v2;
+
+///////////////////////////////////////////////////////////////////////////////
+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 ) {
+ TransactionIdMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ LocalTransactionId* info =
+ dynamic_cast<LocalTransactionId*>( dataStructure );
+ info->setValue( TightUnmarshalLong( wireFormat, dataIn, bs ) );
+ info->setConnectionId( dynamic_cast< ConnectionId* >(
+ tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int LocalTransactionIdMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+ LocalTransactionId* info =
+ dynamic_cast<LocalTransactionId*>( dataStructure );
+
+ int rc = TransactionIdMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ rc += tightMarshalLong1( wireFormat, info->getValue(), bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConnectionId() );
+
+ rc += tightMarshalCachedObject1( wireFormat, data, bs );
+
+ return rc + 0;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LocalTransactionIdMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+ TransactionIdMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ LocalTransactionId* info =
+ dynamic_cast<LocalTransactionId*>( dataStructure );
+ tightMarshalLong2( wireFormat, info->getValue(), dataOut, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConnectionId() );
+
+ tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LocalTransactionIdMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+ TransactionIdMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ LocalTransactionId* info =
+ dynamic_cast<LocalTransactionId*>( dataStructure );
+ info->setValue( looseUnmarshalLong( wireFormat, dataIn ) );
+ info->setConnectionId( dynamic_cast<ConnectionId* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void LocalTransactionIdMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+ LocalTransactionId* info =
+ dynamic_cast<LocalTransactionId*>( dataStructure );
+ TransactionIdMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ looseMarshalLong( wireFormat, info->getValue(), dataOut );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConnectionId() );
+
+ looseMarshalCachedObject( wireFormat, data, dataOut );
+}
+
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.h Tue Oct 17 15:38:16 2006
@@ -0,0 +1,126 @@
+/*
+ * 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_CONNECTOR_OPENWIRE_MARSAHAL_V2_LOCALTRANSACTIONIDMARSHALLER_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_LOCALTRANSACTIONIDMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/connector/openwire/marshal/V2/TransactionIdMarshaller.h>
+
+#include <activemq/io/DataInputStream.h>
+#include <activemq/io/DataOutputStream.h>
+#include <activemq/io/IOException.h>
+#include <activemq/connector/openwire/commands/DataStructure.h>
+#include <activemq/connector/openwire/util/BooleanStream.h>
+
+namespace activemq{
+namespace connector{
+namespace openwire{
+namespace marshal{
+namespace v2{
+
+ /**
+ * Marshalling code for Open Wire Format for LocalTransactionIdMarshaller
+ *
+ * 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
+ */
+ class LocalTransactionIdMarshaller : public TransactionIdMarshaller
+ {
+ public:
+
+ LocalTransactionIdMarshaller() {};
+ virtual ~LocalTransactionIdMarshaller() {};
+
+ /**
+ * Creates a new instance of this marshalable type.
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this Marshaller
+ * @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 - describs the wire format of the broker
+ * @param o - Object to be un-marshaled
+ * @param dataIn - BinaryReader that provides that data
+ * @param bs - BooleanStream
+ */
+ virtual void tightUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataInputStream* dataIn,
+ util::BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Write the booleans that this object uses to a BooleanStream
+ * @param wireFormat - describis the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param bs - BooleanStream
+ * @returns int
+ */
+ virtual int tightMarshal1( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryReader that provides that data sink
+ * @param bs - BooleanStream
+ */
+ virtual void tightMarshal2( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataOutputStream* dataOut,
+ BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Un-marshal an object instance from the data input stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataIn - BinaryReader that provides that data source
+ */
+ virtual void looseUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataInputStream* dataIn ) throws( io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataOutputStream* dataOut ) throws( io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_LOCALTRANSACTIONIDMARSHALLER_H_*/
+
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MarshallerFactory.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MarshallerFactory.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MarshallerFactory.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MarshallerFactory.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,147 @@
+/*
+ * 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/connector/openwire/marshal/V2/MarshallerFactory.h>
+#include <activemq/connector/openwire/marshal/v2/ActiveMQBytesMessageMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ActiveMQMapMessageMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ActiveMQMessageMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ActiveMQObjectMessageMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ActiveMQQueueMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ActiveMQStreamMessageMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ActiveMQTempQueueMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ActiveMQTempTopicMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ActiveMQTextMessageMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ActiveMQTopicMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/BrokerIdMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/BrokerInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ConnectionControlMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ConnectionErrorMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ConnectionIdMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ConnectionInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ConsumerControlMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ConsumerIdMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ConsumerInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ControlCommandMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/DataArrayResponseMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/DataResponseMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/DestinationInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/DiscoveryEventMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ExceptionResponseMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/FlushCommandMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/IntegerResponseMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/JournalQueueAckMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/JournalTopicAckMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/JournalTraceMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/JournalTransactionMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/KeepAliveInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/LastPartialCommandMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/MessageAckMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/MessageDispatchMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/MessageIdMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/MessagePullMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/NetworkBridgeFilterMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/PartialCommandMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ProducerIdMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ProducerInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/RemoveInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/RemoveSubscriptionInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ReplayCommandMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ResponseMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/SessionIdMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/SessionInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/ShutdownInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/SubscriptionInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/TransactionInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/WireFormatInfoMarshaller.h>
+#include <activemq/connector/openwire/marshal/v2/XATransactionIdMarshaller.h>
+
+/*
+ *
+ * Command and marshalling 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::connector;
+using namespace activemq::connector::openwire;
+using namespace activemq::connector::openwire::marshal;
+using namespace activemq::connector::openwire::marshal::v2;
+
+///////////////////////////////////////////////////////////////////////////////
+void MarshallerFactory::configure( OpenWireFormat* format ) {
+ 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 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: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MarshallerFactory.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MarshallerFactory.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MarshallerFactory.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MarshallerFactory.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MarshallerFactory.h Tue Oct 17 15:38:16 2006
@@ -0,0 +1,53 @@
+/*
+ * 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_CONNECTOR_OPENWIRE_MARSAHAL_V2_MARSHALLERFACTORY_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_MARSHALLERFACTORY_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/connector/openwire/OpenWireFormat.h>
+
+namespace activemq{
+namespace connector{
+namespace openwire{
+namespace marshal{
+namespace v2{
+
+ /**
+ * Used to create marshallers for a specific version of the wire
+ * protocol.
+ *
+ * NOTE!: This file is autogenerated - 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_CONNECTOR_OPENWIRE_MARSHAL_V2_MARSHALLERFACTORY_H_*/
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MarshallerFactory.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageAckMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageAckMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageAckMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageAckMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,178 @@
+/*
+ * 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/connector/openwire/marshal/v2/MessageAckMarshaller.h>
+
+#include <activemq/connector/openwire/commands/MessageAck.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::io;
+using namespace activemq::connector;
+using namespace activemq::connector::openwire;
+using namespace activemq::connector::openwire::commands;
+using namespace activemq::connector::openwire::marshal;
+using namespace activemq::connector::openwire::util;
+using namespace activemq::connector::openwire::marshal::v2;
+
+///////////////////////////////////////////////////////////////////////////////
+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 ) {
+ BaseCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ MessageAck* info =
+ dynamic_cast<MessageAck*>( dataStructure );
+ info->setDestination( dynamic_cast< ActiveMQDestination* >(
+ tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+ info->setTransactionId( dynamic_cast< TransactionId* >(
+ tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+ info->setConsumerId( dynamic_cast< ConsumerId* >(
+ tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+ info->setAckType( dataIn->readByte() );
+ info->setFirstMessageId( dynamic_cast< MessageId* >(
+ tightUnmarsalNestedObject( wireFormat, dataIn, bs ) );
+ info->setLastMessageId( dynamic_cast< MessageId* >(
+ tightUnmarsalNestedObject( wireFormat, dataIn, bs ) );
+ info->setMessageCount( dataIn->readInt() );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int MessageAckMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+ MessageAck* info =
+ dynamic_cast<MessageAck*>( dataStructure );
+
+ int rc = BaseCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getDestination() );
+
+ rc += tightMarshalCachedObject1( wireFormat, data, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getTransactionId() );
+
+ rc += tightMarshalCachedObject1( wireFormat, data, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+ rc += tightMarshalCachedObject1( wireFormat, data, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getFirstMessageId() );
+
+ rc += tightMarshalNestedObject1( wireFormat, data, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getLastMessageId() );
+
+ rc += tightMarshalNestedObject1( wireFormat, data, bs );
+
+ return rc + 5;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageAckMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+ BaseCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ MessageAck* info =
+ dynamic_cast<MessageAck*>( dataStructure );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getDestination() );
+
+ tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getTransactionId() );
+
+ tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+ tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+ dataOut->write( info->getAckType() );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getFirstMessageId() );
+
+ tightMarshalNestedObject2( wireFormat, data, dataOut, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getLastMessageId() );
+
+ tightMarshalNestedObject2( wireFormat, data, dataOut, bs );
+ dataOut->write( info->getMessageCount() );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageAckMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+ BaseCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ MessageAck* info =
+ dynamic_cast<MessageAck*>( dataStructure );
+ info->setDestination( dynamic_cast<ActiveMQDestination* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+ info->setTransactionId( dynamic_cast<TransactionId* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+ info->setConsumerId( dynamic_cast<ConsumerId* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+ info->setAckType( dataIn->readByte() );
+ info->setFirstMessageId( dynamic_cast<MessageId* >(
+ looseUnmarshalNestedObject( wireFormat, dataIn ) ) );
+ info->setLastMessageId( dynamic_cast<MessageId* >(
+ looseUnmarshalNestedObject( wireFormat, dataIn ) ) );
+ info->setMessageCount( dataIn->readInt() );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageAckMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+ MessageAck* info =
+ dynamic_cast<MessageAck*>( dataStructure );
+ BaseCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getDestination() );
+
+ looseMarshalCachedObject( wireFormat, data, dataOut );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getTransactionId() );
+
+ looseMarshalCachedObject( wireFormat, data, dataOut );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+ looseMarshalCachedObject( wireFormat, data, dataOut );
+ dataOut->write( info->getAckType() );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getFirstMessageId() );
+
+ looseMarshalNestedObject( wireFormat, data, dataOut );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getLastMessageId() );
+
+ looseMarshalNestedObject( wireFormat, data, dataOut );
+ dataOut->write( info->getMessageCount() );
+}
+
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageAckMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageAckMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageAckMarshaller.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageAckMarshaller.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageAckMarshaller.h Tue Oct 17 15:38:16 2006
@@ -0,0 +1,126 @@
+/*
+ * 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_CONNECTOR_OPENWIRE_MARSAHAL_V2_MESSAGEACKMARSHALLER_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_MESSAGEACKMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/connector/openwire/marshal/V2/BaseCommandMarshaller.h>
+
+#include <activemq/io/DataInputStream.h>
+#include <activemq/io/DataOutputStream.h>
+#include <activemq/io/IOException.h>
+#include <activemq/connector/openwire/commands/DataStructure.h>
+#include <activemq/connector/openwire/util/BooleanStream.h>
+
+namespace activemq{
+namespace connector{
+namespace openwire{
+namespace marshal{
+namespace v2{
+
+ /**
+ * Marshalling code for Open Wire Format for MessageAckMarshaller
+ *
+ * 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
+ */
+ class MessageAckMarshaller : public BaseCommandMarshaller
+ {
+ public:
+
+ MessageAckMarshaller() {};
+ virtual ~MessageAckMarshaller() {};
+
+ /**
+ * Creates a new instance of this marshalable type.
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this Marshaller
+ * @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 - describs the wire format of the broker
+ * @param o - Object to be un-marshaled
+ * @param dataIn - BinaryReader that provides that data
+ * @param bs - BooleanStream
+ */
+ virtual void tightUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataInputStream* dataIn,
+ util::BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Write the booleans that this object uses to a BooleanStream
+ * @param wireFormat - describis the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param bs - BooleanStream
+ * @returns int
+ */
+ virtual int tightMarshal1( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryReader that provides that data sink
+ * @param bs - BooleanStream
+ */
+ virtual void tightMarshal2( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataOutputStream* dataOut,
+ BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Un-marshal an object instance from the data input stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataIn - BinaryReader that provides that data source
+ */
+ virtual void looseUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataInputStream* dataIn ) throws( io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataOutputStream* dataOut ) throws( io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_MESSAGEACKMARSHALLER_H_*/
+
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageAckMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,142 @@
+/*
+ * 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/connector/openwire/marshal/v2/MessageDispatchMarshaller.h>
+
+#include <activemq/connector/openwire/commands/MessageDispatch.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::io;
+using namespace activemq::connector;
+using namespace activemq::connector::openwire;
+using namespace activemq::connector::openwire::commands;
+using namespace activemq::connector::openwire::marshal;
+using namespace activemq::connector::openwire::util;
+using namespace activemq::connector::openwire::marshal::v2;
+
+///////////////////////////////////////////////////////////////////////////////
+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 ) {
+ BaseCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ MessageDispatch* info =
+ dynamic_cast<MessageDispatch*>( dataStructure );
+ info->setConsumerId( dynamic_cast< ConsumerId* >(
+ tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+ info->setDestination( dynamic_cast< ActiveMQDestination* >(
+ tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+ info->setMessage( dynamic_cast< Message* >(
+ tightUnmarsalNestedObject( wireFormat, dataIn, bs ) );
+ info->setRedeliveryCounter( dataIn->readInt() );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int MessageDispatchMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+ MessageDispatch* info =
+ dynamic_cast<MessageDispatch*>( dataStructure );
+
+ int rc = BaseCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+ rc += tightMarshalCachedObject1( wireFormat, data, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getDestination() );
+
+ rc += tightMarshalCachedObject1( wireFormat, data, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getMessage() );
+
+ rc += tightMarshalNestedObject1( wireFormat, data, bs );
+
+ return rc + 4;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+ BaseCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ MessageDispatch* info =
+ dynamic_cast<MessageDispatch*>( dataStructure );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+ tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getDestination() );
+
+ tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getMessage() );
+
+ tightMarshalNestedObject2( wireFormat, data, dataOut, bs );
+ dataOut->write( info->getRedeliveryCounter() );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+ BaseCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ MessageDispatch* info =
+ dynamic_cast<MessageDispatch*>( dataStructure );
+ info->setConsumerId( dynamic_cast<ConsumerId* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+ info->setDestination( dynamic_cast<ActiveMQDestination* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+ info->setMessage( dynamic_cast<Message* >(
+ looseUnmarshalNestedObject( wireFormat, dataIn ) ) );
+ info->setRedeliveryCounter( dataIn->readInt() );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+ MessageDispatch* info =
+ dynamic_cast<MessageDispatch*>( dataStructure );
+ BaseCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+ looseMarshalCachedObject( wireFormat, data, dataOut );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getDestination() );
+
+ looseMarshalCachedObject( wireFormat, data, dataOut );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getMessage() );
+
+ looseMarshalNestedObject( wireFormat, data, dataOut );
+ dataOut->write( info->getRedeliveryCounter() );
+}
+
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchMarshaller.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchMarshaller.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchMarshaller.h Tue Oct 17 15:38:16 2006
@@ -0,0 +1,126 @@
+/*
+ * 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_CONNECTOR_OPENWIRE_MARSAHAL_V2_MESSAGEDISPATCHMARSHALLER_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_MESSAGEDISPATCHMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/connector/openwire/marshal/V2/BaseCommandMarshaller.h>
+
+#include <activemq/io/DataInputStream.h>
+#include <activemq/io/DataOutputStream.h>
+#include <activemq/io/IOException.h>
+#include <activemq/connector/openwire/commands/DataStructure.h>
+#include <activemq/connector/openwire/util/BooleanStream.h>
+
+namespace activemq{
+namespace connector{
+namespace openwire{
+namespace marshal{
+namespace v2{
+
+ /**
+ * Marshalling code for Open Wire Format for MessageDispatchMarshaller
+ *
+ * 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
+ */
+ class MessageDispatchMarshaller : public BaseCommandMarshaller
+ {
+ public:
+
+ MessageDispatchMarshaller() {};
+ virtual ~MessageDispatchMarshaller() {};
+
+ /**
+ * Creates a new instance of this marshalable type.
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this Marshaller
+ * @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 - describs the wire format of the broker
+ * @param o - Object to be un-marshaled
+ * @param dataIn - BinaryReader that provides that data
+ * @param bs - BooleanStream
+ */
+ virtual void tightUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataInputStream* dataIn,
+ util::BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Write the booleans that this object uses to a BooleanStream
+ * @param wireFormat - describis the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param bs - BooleanStream
+ * @returns int
+ */
+ virtual int tightMarshal1( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryReader that provides that data sink
+ * @param bs - BooleanStream
+ */
+ virtual void tightMarshal2( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataOutputStream* dataOut,
+ BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Un-marshal an object instance from the data input stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataIn - BinaryReader that provides that data source
+ */
+ virtual void looseUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataInputStream* dataIn ) throws( io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataOutputStream* dataOut ) throws( io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_MESSAGEDISPATCHMARSHALLER_H_*/
+
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,143 @@
+/*
+ * 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/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.h>
+
+#include <activemq/connector/openwire/commands/MessageDispatchNotification.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::io;
+using namespace activemq::connector;
+using namespace activemq::connector::openwire;
+using namespace activemq::connector::openwire::commands;
+using namespace activemq::connector::openwire::marshal;
+using namespace activemq::connector::openwire::util;
+using namespace activemq::connector::openwire::marshal::v2;
+
+///////////////////////////////////////////////////////////////////////////////
+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 ) {
+ BaseCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ MessageDispatchNotification* info =
+ dynamic_cast<MessageDispatchNotification*>( dataStructure );
+ info->setConsumerId( dynamic_cast< ConsumerId* >(
+ tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+ info->setDestination( dynamic_cast< ActiveMQDestination* >(
+ tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+ info->setDeliverySequenceId( TightUnmarshalLong( wireFormat, dataIn, bs ) );
+ info->setMessageId( dynamic_cast< MessageId* >(
+ tightUnmarsalNestedObject( wireFormat, dataIn, bs ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int MessageDispatchNotificationMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+ MessageDispatchNotification* info =
+ dynamic_cast<MessageDispatchNotification*>( dataStructure );
+
+ int rc = BaseCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+ rc += tightMarshalCachedObject1( wireFormat, data, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getDestination() );
+
+ rc += tightMarshalCachedObject1( wireFormat, data, bs );
+ rc += tightMarshalLong1( wireFormat, info->getDeliverySequenceId(), bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getMessageId() );
+
+ rc += tightMarshalNestedObject1( wireFormat, data, bs );
+
+ return rc + 0;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchNotificationMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+ BaseCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ MessageDispatchNotification* info =
+ dynamic_cast<MessageDispatchNotification*>( dataStructure );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+ tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getDestination() );
+
+ tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+ tightMarshalLong2( wireFormat, info->getDeliverySequenceId(), dataOut, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getMessageId() );
+
+ tightMarshalNestedObject2( wireFormat, data, dataOut, bs );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchNotificationMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+ BaseCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ MessageDispatchNotification* info =
+ dynamic_cast<MessageDispatchNotification*>( dataStructure );
+ info->setConsumerId( dynamic_cast<ConsumerId* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+ info->setDestination( dynamic_cast<ActiveMQDestination* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+ info->setDeliverySequenceId( looseUnmarshalLong( wireFormat, dataIn ) );
+ info->setMessageId( dynamic_cast<MessageId* >(
+ looseUnmarshalNestedObject( wireFormat, dataIn ) ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageDispatchNotificationMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+ MessageDispatchNotification* info =
+ dynamic_cast<MessageDispatchNotification*>( dataStructure );
+ BaseCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+ looseMarshalCachedObject( wireFormat, data, dataOut );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getDestination() );
+
+ looseMarshalCachedObject( wireFormat, data, dataOut );
+ looseMarshalLong( wireFormat, info->getDeliverySequenceId(), dataOut );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getMessageId() );
+
+ looseMarshalNestedObject( wireFormat, data, dataOut );
+}
+
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.h Tue Oct 17 15:38:16 2006
@@ -0,0 +1,126 @@
+/*
+ * 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_CONNECTOR_OPENWIRE_MARSAHAL_V2_MESSAGEDISPATCHNOTIFICATIONMARSHALLER_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_MESSAGEDISPATCHNOTIFICATIONMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/connector/openwire/marshal/V2/BaseCommandMarshaller.h>
+
+#include <activemq/io/DataInputStream.h>
+#include <activemq/io/DataOutputStream.h>
+#include <activemq/io/IOException.h>
+#include <activemq/connector/openwire/commands/DataStructure.h>
+#include <activemq/connector/openwire/util/BooleanStream.h>
+
+namespace activemq{
+namespace connector{
+namespace openwire{
+namespace marshal{
+namespace v2{
+
+ /**
+ * Marshalling code for Open Wire Format for MessageDispatchNotificationMarshaller
+ *
+ * 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
+ */
+ class MessageDispatchNotificationMarshaller : public BaseCommandMarshaller
+ {
+ public:
+
+ MessageDispatchNotificationMarshaller() {};
+ virtual ~MessageDispatchNotificationMarshaller() {};
+
+ /**
+ * Creates a new instance of this marshalable type.
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this Marshaller
+ * @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 - describs the wire format of the broker
+ * @param o - Object to be un-marshaled
+ * @param dataIn - BinaryReader that provides that data
+ * @param bs - BooleanStream
+ */
+ virtual void tightUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataInputStream* dataIn,
+ util::BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Write the booleans that this object uses to a BooleanStream
+ * @param wireFormat - describis the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param bs - BooleanStream
+ * @returns int
+ */
+ virtual int tightMarshal1( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryReader that provides that data sink
+ * @param bs - BooleanStream
+ */
+ virtual void tightMarshal2( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataOutputStream* dataOut,
+ BooleanStream* bs ) throws( io::IOException );
+
+ /**
+ * Un-marshal an object instance from the data input stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataIn - BinaryReader that provides that data source
+ */
+ virtual void looseUnmarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataInputStream* dataIn ) throws( io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ io::DataOutputStream* dataOut ) throws( io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_MESSAGEDISPATCHNOTIFICATIONMARSHALLER_H_*/
+
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageIdMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageIdMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageIdMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageIdMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,116 @@
+/*
+ * 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/connector/openwire/marshal/v2/MessageIdMarshaller.h>
+
+#include <activemq/connector/openwire/commands/MessageId.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::io;
+using namespace activemq::connector;
+using namespace activemq::connector::openwire;
+using namespace activemq::connector::openwire::commands;
+using namespace activemq::connector::openwire::marshal;
+using namespace activemq::connector::openwire::util;
+using namespace activemq::connector::openwire::marshal::v2;
+
+///////////////////////////////////////////////////////////////////////////////
+DataStructure* MessageIdMarshaller::createObject() const {
+ return new MessageId();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char MessageIdMarshaller::getDataStructureType() const {
+ return MessageId::ID_MESSAGEID;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageIdMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) {
+ BaseDataStreamMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ MessageId* info =
+ dynamic_cast<MessageId*>( dataStructure );
+ info->setProducerId( dynamic_cast< ProducerId* >(
+ tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+ info->setProducerSequenceId( TightUnmarshalLong( wireFormat, dataIn, bs ) );
+ info->setBrokerSequenceId( TightUnmarshalLong( wireFormat, dataIn, bs ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int MessageIdMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+ MessageId* info =
+ dynamic_cast<MessageId*>( dataStructure );
+
+ int rc = BaseDataStreamMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getProducerId() );
+
+ rc += tightMarshalCachedObject1( wireFormat, data, bs );
+ rc += tightMarshalLong1( wireFormat, info->getProducerSequenceId(), bs );
+ rc += tightMarshalLong1( wireFormat, info->getBrokerSequenceId(), bs );
+
+ return rc + 0;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageIdMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+ BaseDataStreamMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ MessageId* info =
+ dynamic_cast<MessageId*>( dataStructure );
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getProducerId() );
+
+ tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+ tightMarshalLong2( wireFormat, info->getProducerSequenceId(), dataOut, bs );
+ tightMarshalLong2( wireFormat, info->getBrokerSequenceId(), dataOut, bs );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageIdMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+ BaseDataStreamMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ MessageId* info =
+ dynamic_cast<MessageId*>( dataStructure );
+ info->setProducerId( dynamic_cast<ProducerId* >(
+ looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+ info->setProducerSequenceId( looseUnmarshalLong( wireFormat, dataIn ) );
+ info->setBrokerSequenceId( looseUnmarshalLong( wireFormat, dataIn ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void MessageIdMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+ MessageId* info =
+ dynamic_cast<MessageId*>( dataStructure );
+ BaseDataStreamMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ DataStructure* data =
+ dynamic_cast< DataStructure* >( info->getProducerId() );
+
+ looseMarshalCachedObject( wireFormat, data, dataOut );
+ looseMarshalLong( wireFormat, info->getProducerSequenceId(), dataOut );
+ looseMarshalLong( wireFormat, info->getBrokerSequenceId(), dataOut );
+}
+
Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageIdMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native