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 [4/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/ConsumerInfoMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,229 @@
+/*
+ * 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/ConsumerInfoMarshaller.h>
+
+#include <activemq/connector/openwire/commands/ConsumerInfo.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* ConsumerInfoMarshaller::createObject() const {
+    return new ConsumerInfo();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char ConsumerInfoMarshaller::getDataStructureType() const {
+    return ConsumerInfo::ID_CONSUMERINFO;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ConsumerInfoMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) {
+   BaseCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+    ConsumerInfo* info =
+        dynamic_cast<ConsumerInfo*>( dataStructure );
+    info->setConsumerId( dynamic_cast< ConsumerId* >(
+        tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+    info->setBrowser( bs->readBoolean() );
+    info->setDestination( dynamic_cast< ActiveMQDestination* >(
+        tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+    info->setPrefetchSize( dataIn->readInt() );
+    info->setMaximumPendingMessageLimit( dataIn->readInt() );
+    info->setDispatchAsync( bs->readBoolean() );
+    info->setSelector( TightUnmarshalString( dataIn, bs ) );
+    info->setSubcriptionName( TightUnmarshalString( dataIn, bs ) );
+    info->setNoLocal( bs->readBoolean() );
+    info->setExclusive( bs->readBoolean() );
+    info->setRetroactive( bs->readBoolean() );
+    info->setPriority( dataIn->readByte() );
+
+    if( bs->readBoolean() ) {
+        short size = dataIn->readShort();
+        BrokerId* value = new BrokerId[size];
+        for( int i = 0; i < size; i++ ) {
+            value[i] = dynamic_cast< BrokerId* >(
+                tightUnmarsalNestedObject( wireFormat, dataIn, bs ) );
+        }
+        info->setBrokerPath( value );
+    }
+    else {
+        info->setBrokerPath( NULL );
+    }
+    info->setAdditionalPredicate( dynamic_cast< BooleanExpression* >(
+        tightUnmarsalNestedObject( wireFormat, dataIn, bs ) );
+    info->setNetworkSubscription( bs->readBoolean() );
+    info->setOptimizedAcknowledge( bs->readBoolean() );
+    info->setNoRangeAcks( bs->readBoolean() );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int ConsumerInfoMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+    ConsumerInfo* info =
+        dynamic_cast<ConsumerInfo*>( dataStructure );
+
+    int rc = BaseCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+    rc += tightMarshalCachedObject1( wireFormat, data, bs );
+    bs->writeBoolean( info->isBrowser() );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getDestination() );
+
+    rc += tightMarshalCachedObject1( wireFormat, data, bs );
+    bs->writeBoolean( info->isDispatchAsync() );
+    rc += tightMarshalString1( info->getSelector(), bs );
+    rc += tightMarshalString1( info->getSubcriptionName(), bs );
+    bs->writeBoolean( info->isNoLocal() );
+    bs->writeBoolean( info->isExclusive() );
+    bs->writeBoolean( info->isRetroactive() );
+    rc += tightMarshalObjectArray1( wireFormat, info->getBrokerPath(), bs );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getAdditionalPredicate() );
+
+    rc += tightMarshalNestedObject1( wireFormat, data, bs );
+    bs->writeBoolean( info->isNetworkSubscription() );
+    bs->writeBoolean( info->isOptimizedAcknowledge() );
+    bs->writeBoolean( info->isNoRangeAcks() );
+
+    return rc + 9;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ConsumerInfoMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+    BaseCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+    ConsumerInfo* info =
+        dynamic_cast<ConsumerInfo*>( dataStructure );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+    tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+    bs->readBoolean();
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getDestination() );
+
+    tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+    dataOut->write( info->getPrefetchSize() );
+    dataOut->write( info->getMaximumPendingMessageLimit() );
+    bs->readBoolean();
+    tightMarshalString2( info->getSelector(), dataOut, bs );
+    tightMarshalString2( info->getSubcriptionName(), dataOut, bs );
+    bs->readBoolean();
+    bs->readBoolean();
+    bs->readBoolean();
+    dataOut->write( info->getPriority() );
+    tightMarshalObjectArray2( wireFormat, info->getBrokerPath(), dataOut, bs );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getAdditionalPredicate() );
+
+    tightMarshalNestedObject2( wireFormat, data, dataOut, bs );
+    bs->readBoolean();
+    bs->readBoolean();
+    bs->readBoolean();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ConsumerInfoMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+    BaseCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+    ConsumerInfo* info = 
+        dynamic_cast<ConsumerInfo*>( dataStructure );
+   info->setConsumerId( dynamic_cast<ConsumerId* >( 
+       looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+    info->setBrowser( dataIn->readBoolean() );
+   info->setDestination( dynamic_cast<ActiveMQDestination* >( 
+       looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+    info->setPrefetchSize( dataIn->readInt() );
+    info->setMaximumPendingMessageLimit( dataIn->readInt() );
+    info->setDispatchAsync( dataIn->readBoolean() );
+    info->setSelector( looseUnmarshalString( dataIn ) );
+    info->setSubcriptionName( looseUnmarshalString( dataIn ) );
+    info->setNoLocal( dataIn->readBoolean() );
+    info->setExclusive( dataIn->readBoolean() );
+    info->setRetroactive( dataIn->readBoolean() );
+    info->setPriority( dataIn->readByte() );
+
+    if( dataIn->readBoolean() ) {
+        short size = dataIn->readShort();
+        BrokerId* value = new BrokerId[size];
+        for( int i = 0; i < size; i++ ) {
+            value[i] = dynamic_cast<BrokerId* >(
+                looseUnmarshalNestedObject( wireFormat,dataIn ) );
+        }
+        info->setBrokerPath( value );
+    }
+    else {
+        info->setBrokerPath( NULL );
+    }
+   info->setAdditionalPredicate( dynamic_cast<BooleanExpression* >( 
+       looseUnmarshalNestedObject( wireFormat, dataIn ) ) );
+    info->setNetworkSubscription( dataIn->readBoolean() );
+    info->setOptimizedAcknowledge( dataIn->readBoolean() );
+    info->setNoRangeAcks( dataIn->readBoolean() );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ConsumerInfoMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+    ConsumerInfo* info =
+        dynamic_cast<ConsumerInfo*>( dataStructure );
+    BaseCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getConsumerId() );
+
+    looseMarshalCachedObject( wireFormat, data, dataOut );
+    dataOut->write( info->isBrowser() );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getDestination() );
+
+    looseMarshalCachedObject( wireFormat, data, dataOut );
+    dataOut->write( info->getPrefetchSize() );
+    dataOut->write( info->getMaximumPendingMessageLimit() );
+    dataOut->write( info->isDispatchAsync() );
+    looseMarshalString( info->getSelector(), dataOut );
+    looseMarshalString( info->getSubcriptionName(), dataOut );
+    dataOut->write( info->isNoLocal() );
+    dataOut->write( info->isExclusive() );
+    dataOut->write( info->isRetroactive() );
+    dataOut->write( info->getPriority() );
+    looseMarshalObjectArray( wireFormat, info->getBrokerPath(), dataOut );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getAdditionalPredicate() );
+
+    looseMarshalNestedObject( wireFormat, data, dataOut );
+    dataOut->write( info->isNetworkSubscription() );
+    dataOut->write( info->isOptimizedAcknowledge() );
+    dataOut->write( info->isNoRangeAcks() );
+}
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshaller.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshaller.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshaller.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshaller.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_CONSUMERINFOMARSHALLER_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_CONSUMERINFOMARSHALLER_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 ConsumerInfoMarshaller
+     *
+     *  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 ConsumerInfoMarshaller : public BaseCommandMarshaller
+    {
+    public:
+
+        ConsumerInfoMarshaller() {};
+        virtual ~ConsumerInfoMarshaller() {};
+
+        /**
+         * 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_CONSUMERINFOMARSHALLER_H_*/
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshaller.h
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ControlCommandMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ControlCommandMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ControlCommandMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ControlCommandMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,95 @@
+/*
+ * 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/ControlCommandMarshaller.h>
+
+#include <activemq/connector/openwire/commands/ControlCommand.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* ControlCommandMarshaller::createObject() const {
+    return new ControlCommand();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char ControlCommandMarshaller::getDataStructureType() const {
+    return ControlCommand::ID_CONTROLCOMMAND;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ControlCommandMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) {
+   BaseCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+    ControlCommand* info =
+        dynamic_cast<ControlCommand*>( dataStructure );
+    info->setCommand( TightUnmarshalString( dataIn, bs ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int ControlCommandMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+    ControlCommand* info =
+        dynamic_cast<ControlCommand*>( dataStructure );
+
+    int rc = BaseCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+    rc += tightMarshalString1( info->getCommand(), bs );
+
+    return rc + 0;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ControlCommandMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+    BaseCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+    ControlCommand* info =
+        dynamic_cast<ControlCommand*>( dataStructure );
+    tightMarshalString2( info->getCommand(), dataOut, bs );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ControlCommandMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+    BaseCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+    ControlCommand* info = 
+        dynamic_cast<ControlCommand*>( dataStructure );
+    info->setCommand( looseUnmarshalString( dataIn ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ControlCommandMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+    ControlCommand* info =
+        dynamic_cast<ControlCommand*>( dataStructure );
+    BaseCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+    looseMarshalString( info->getCommand(), dataOut );
+}
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ControlCommandMarshaller.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ControlCommandMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ControlCommandMarshaller.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ControlCommandMarshaller.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ControlCommandMarshaller.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_CONTROLCOMMANDMARSHALLER_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_CONTROLCOMMANDMARSHALLER_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 ControlCommandMarshaller
+     *
+     *  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 ControlCommandMarshaller : public BaseCommandMarshaller
+    {
+    public:
+
+        ControlCommandMarshaller() {};
+        virtual ~ControlCommandMarshaller() {};
+
+        /**
+         * 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_CONTROLCOMMANDMARSHALLER_H_*/
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ControlCommandMarshaller.h
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,119 @@
+/*
+ * 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/DataArrayResponseMarshaller.h>
+
+#include <activemq/connector/openwire/commands/DataArrayResponse.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* DataArrayResponseMarshaller::createObject() const {
+    return new DataArrayResponse();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char DataArrayResponseMarshaller::getDataStructureType() const {
+    return DataArrayResponse::ID_DATAARRAYRESPONSE;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataArrayResponseMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) {
+   ResponseMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+    DataArrayResponse* info =
+        dynamic_cast<DataArrayResponse*>( dataStructure );
+
+    if( bs->readBoolean() ) {
+        short size = dataIn->readShort();
+        DataStructure* value = new DataStructure[size];
+        for( int i = 0; i < size; i++ ) {
+            value[i] = dynamic_cast< DataStructure* >(
+                tightUnmarsalNestedObject( wireFormat, dataIn, bs ) );
+        }
+        info->setData( value );
+    }
+    else {
+        info->setData( NULL );
+    }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int DataArrayResponseMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+    DataArrayResponse* info =
+        dynamic_cast<DataArrayResponse*>( dataStructure );
+
+    int rc = ResponseMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+    rc += tightMarshalObjectArray1( wireFormat, info->getData(), bs );
+
+    return rc + 0;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataArrayResponseMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+    ResponseMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+    DataArrayResponse* info =
+        dynamic_cast<DataArrayResponse*>( dataStructure );
+    tightMarshalObjectArray2( wireFormat, info->getData(), dataOut, bs );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataArrayResponseMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+    ResponseMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+    DataArrayResponse* info = 
+        dynamic_cast<DataArrayResponse*>( dataStructure );
+
+    if( dataIn->readBoolean() ) {
+        short size = dataIn->readShort();
+        DataStructure* value = new DataStructure[size];
+        for( int i = 0; i < size; i++ ) {
+            value[i] = dynamic_cast<DataStructure* >(
+                looseUnmarshalNestedObject( wireFormat,dataIn ) );
+        }
+        info->setData( value );
+    }
+    else {
+        info->setData( NULL );
+    }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataArrayResponseMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+    DataArrayResponse* info =
+        dynamic_cast<DataArrayResponse*>( dataStructure );
+    ResponseMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+    looseMarshalObjectArray( wireFormat, info->getData(), dataOut );
+}
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshaller.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshaller.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshaller.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshaller.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_DATAARRAYRESPONSEMARSHALLER_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_DATAARRAYRESPONSEMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/connector/openwire/marshal/V2/ResponseMarshaller.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 DataArrayResponseMarshaller
+     *
+     *  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 DataArrayResponseMarshaller : public ResponseMarshaller
+    {
+    public:
+
+        DataArrayResponseMarshaller() {};
+        virtual ~DataArrayResponseMarshaller() {};
+
+        /**
+         * 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_DATAARRAYRESPONSEMARSHALLER_H_*/
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshaller.h
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataResponseMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataResponseMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataResponseMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataResponseMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,106 @@
+/*
+ * 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/DataResponseMarshaller.h>
+
+#include <activemq/connector/openwire/commands/DataResponse.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* DataResponseMarshaller::createObject() const {
+    return new DataResponse();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char DataResponseMarshaller::getDataStructureType() const {
+    return DataResponse::ID_DATARESPONSE;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataResponseMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) {
+   ResponseMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+    DataResponse* info =
+        dynamic_cast<DataResponse*>( dataStructure );
+    info->setData( dynamic_cast< DataStructure* >(
+        tightUnmarsalNestedObject( wireFormat, dataIn, bs ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int DataResponseMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+    DataResponse* info =
+        dynamic_cast<DataResponse*>( dataStructure );
+
+    int rc = ResponseMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getData() );
+
+    rc += tightMarshalNestedObject1( wireFormat, data, bs );
+
+    return rc + 0;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataResponseMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+    ResponseMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+    DataResponse* info =
+        dynamic_cast<DataResponse*>( dataStructure );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getData() );
+
+    tightMarshalNestedObject2( wireFormat, data, dataOut, bs );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataResponseMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+    ResponseMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+    DataResponse* info = 
+        dynamic_cast<DataResponse*>( dataStructure );
+   info->setData( dynamic_cast<DataStructure* >( 
+       looseUnmarshalNestedObject( wireFormat, dataIn ) ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataResponseMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+    DataResponse* info =
+        dynamic_cast<DataResponse*>( dataStructure );
+    ResponseMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getData() );
+
+    looseMarshalNestedObject( wireFormat, data, dataOut );
+}
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataResponseMarshaller.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataResponseMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataResponseMarshaller.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataResponseMarshaller.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataResponseMarshaller.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_DATARESPONSEMARSHALLER_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_DATARESPONSEMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/connector/openwire/marshal/V2/ResponseMarshaller.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 DataResponseMarshaller
+     *
+     *  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 DataResponseMarshaller : public ResponseMarshaller
+    {
+    public:
+
+        DataResponseMarshaller() {};
+        virtual ~DataResponseMarshaller() {};
+
+        /**
+         * 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_DATARESPONSEMARSHALLER_H_*/
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DataResponseMarshaller.h
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DestinationInfoMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DestinationInfoMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DestinationInfoMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DestinationInfoMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,160 @@
+/*
+ * 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/DestinationInfoMarshaller.h>
+
+#include <activemq/connector/openwire/commands/DestinationInfo.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* DestinationInfoMarshaller::createObject() const {
+    return new DestinationInfo();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char DestinationInfoMarshaller::getDataStructureType() const {
+    return DestinationInfo::ID_DESTINATIONINFO;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DestinationInfoMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) {
+   BaseCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+    DestinationInfo* info =
+        dynamic_cast<DestinationInfo*>( dataStructure );
+    info->setConnectionId( dynamic_cast< ConnectionId* >(
+        tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+    info->setDestination( dynamic_cast< ActiveMQDestination* >(
+        tightUnmarsalCachedObject( wireFormat, dataIn, bs ) );
+    info->setOperationType( dataIn->readByte() );
+    info->setTimeout( TightUnmarshalLong( wireFormat, dataIn, bs ) );
+
+    if( bs->readBoolean() ) {
+        short size = dataIn->readShort();
+        BrokerId* value = new BrokerId[size];
+        for( int i = 0; i < size; i++ ) {
+            value[i] = dynamic_cast< BrokerId* >(
+                tightUnmarsalNestedObject( wireFormat, dataIn, bs ) );
+        }
+        info->setBrokerPath( value );
+    }
+    else {
+        info->setBrokerPath( NULL );
+    }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int DestinationInfoMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+    DestinationInfo* info =
+        dynamic_cast<DestinationInfo*>( dataStructure );
+
+    int rc = BaseCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getConnectionId() );
+
+    rc += tightMarshalCachedObject1( wireFormat, data, bs );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getDestination() );
+
+    rc += tightMarshalCachedObject1( wireFormat, data, bs );
+    rc += tightMarshalLong1( wireFormat, info->getTimeout(), bs );
+    rc += tightMarshalObjectArray1( wireFormat, info->getBrokerPath(), bs );
+
+    return rc + 1;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DestinationInfoMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+    BaseCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+    DestinationInfo* info =
+        dynamic_cast<DestinationInfo*>( dataStructure );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getConnectionId() );
+
+    tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getDestination() );
+
+    tightMarshalCachedObject2( wireFormat, data, dataOut, bs );
+    dataOut->write( info->getOperationType() );
+    tightMarshalLong2( wireFormat, info->getTimeout(), dataOut, bs );
+    tightMarshalObjectArray2( wireFormat, info->getBrokerPath(), dataOut, bs );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DestinationInfoMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+    BaseCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+    DestinationInfo* info = 
+        dynamic_cast<DestinationInfo*>( dataStructure );
+   info->setConnectionId( dynamic_cast<ConnectionId* >( 
+       looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+   info->setDestination( dynamic_cast<ActiveMQDestination* >( 
+       looseUnmarshalCachedObject( wireFormat, dataIn ) ) );
+    info->setOperationType( dataIn->readByte() );
+    info->setTimeout( looseUnmarshalLong( wireFormat, dataIn ) );
+
+    if( dataIn->readBoolean() ) {
+        short size = dataIn->readShort();
+        BrokerId* value = new BrokerId[size];
+        for( int i = 0; i < size; i++ ) {
+            value[i] = dynamic_cast<BrokerId* >(
+                looseUnmarshalNestedObject( wireFormat,dataIn ) );
+        }
+        info->setBrokerPath( value );
+    }
+    else {
+        info->setBrokerPath( NULL );
+    }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DestinationInfoMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+    DestinationInfo* info =
+        dynamic_cast<DestinationInfo*>( dataStructure );
+    BaseCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getConnectionId() );
+
+    looseMarshalCachedObject( wireFormat, data, dataOut );
+    DataStructure* data = 
+        dynamic_cast< DataStructure* >( info->getDestination() );
+
+    looseMarshalCachedObject( wireFormat, data, dataOut );
+    dataOut->write( info->getOperationType() );
+    looseMarshalLong( wireFormat, info->getTimeout(), dataOut );
+    looseMarshalObjectArray( wireFormat, info->getBrokerPath(), dataOut );
+}
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DestinationInfoMarshaller.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DestinationInfoMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DestinationInfoMarshaller.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DestinationInfoMarshaller.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DestinationInfoMarshaller.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_DESTINATIONINFOMARSHALLER_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_DESTINATIONINFOMARSHALLER_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 DestinationInfoMarshaller
+     *
+     *  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 DestinationInfoMarshaller : public BaseCommandMarshaller
+    {
+    public:
+
+        DestinationInfoMarshaller() {};
+        virtual ~DestinationInfoMarshaller() {};
+
+        /**
+         * 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_DESTINATIONINFOMARSHALLER_H_*/
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DestinationInfoMarshaller.h
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,100 @@
+/*
+ * 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/DiscoveryEventMarshaller.h>
+
+#include <activemq/connector/openwire/commands/DiscoveryEvent.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* DiscoveryEventMarshaller::createObject() const {
+    return new DiscoveryEvent();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char DiscoveryEventMarshaller::getDataStructureType() const {
+    return DiscoveryEvent::ID_DISCOVERYEVENT;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DiscoveryEventMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) {
+   BaseDataStreamMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+    DiscoveryEvent* info =
+        dynamic_cast<DiscoveryEvent*>( dataStructure );
+    info->setServiceName( TightUnmarshalString( dataIn, bs ) );
+    info->setBrokerName( TightUnmarshalString( dataIn, bs ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int DiscoveryEventMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+    DiscoveryEvent* info =
+        dynamic_cast<DiscoveryEvent*>( dataStructure );
+
+    int rc = BaseDataStreamMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+    rc += tightMarshalString1( info->getServiceName(), bs );
+    rc += tightMarshalString1( info->getBrokerName(), bs );
+
+    return rc + 0;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DiscoveryEventMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+    BaseDataStreamMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+    DiscoveryEvent* info =
+        dynamic_cast<DiscoveryEvent*>( dataStructure );
+    tightMarshalString2( info->getServiceName(), dataOut, bs );
+    tightMarshalString2( info->getBrokerName(), dataOut, bs );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DiscoveryEventMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+    BaseDataStreamMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+    DiscoveryEvent* info = 
+        dynamic_cast<DiscoveryEvent*>( dataStructure );
+    info->setServiceName( looseUnmarshalString( dataIn ) );
+    info->setBrokerName( looseUnmarshalString( dataIn ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DiscoveryEventMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+    DiscoveryEvent* info =
+        dynamic_cast<DiscoveryEvent*>( dataStructure );
+    BaseDataStreamMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+    looseMarshalString( info->getServiceName(), dataOut );
+    looseMarshalString( info->getBrokerName(), dataOut );
+}
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshaller.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshaller.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshaller.h?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshaller.h (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshaller.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_DISCOVERYEVENTMARSHALLER_H_
+#define _ACTIVEMQ_CONNECTOR_OPENWIRE_MARSAHAL_V2_DISCOVERYEVENTMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/connector/openwire/marshal/V2/BaseDataStreamMarshaller.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 DiscoveryEventMarshaller
+     *
+     *  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 DiscoveryEventMarshaller : public BaseDataStreamMarshaller
+    {
+    public:
+
+        DiscoveryEventMarshaller() {};
+        virtual ~DiscoveryEventMarshaller() {};
+
+        /**
+         * 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_DISCOVERYEVENTMARSHALLER_H_*/
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshaller.h
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ExceptionResponseMarshaller.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ExceptionResponseMarshaller.cpp?view=auto&rev=465087
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ExceptionResponseMarshaller.cpp (added)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ExceptionResponseMarshaller.cpp Tue Oct 17 15:38:16 2006
@@ -0,0 +1,96 @@
+/*
+ * 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/ExceptionResponseMarshaller.h>
+
+#include <activemq/connector/openwire/commands/ExceptionResponse.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* ExceptionResponseMarshaller::createObject() const {
+    return new ExceptionResponse();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char ExceptionResponseMarshaller::getDataStructureType() const {
+    return ExceptionResponse::ID_EXCEPTIONRESPONSE;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ExceptionResponseMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) {
+   ResponseMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+    ExceptionResponse* info =
+        dynamic_cast<ExceptionResponse*>( dataStructure );
+    info->setException( dynamic_cast< Throwable* >(
+        tightUnmarsalThrowable( wireFormat, dataIn, bs ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int ExceptionResponseMarshaller::tightMarshal1( OpenWireFormat& wireFormat, DataStructure* dataStructure, BooleanStream& bs ) {
+
+    ExceptionResponse* info =
+        dynamic_cast<ExceptionResponse*>( dataStructure );
+
+    int rc = ResponseMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+    rc += tightMarshalBrokerError1( wireFormat, info->getException(), bs );
+
+    return rc + 0;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ExceptionResponseMarshaller::tightMarshal2( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut, BooleanStream& bs ) {
+
+    ResponseMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+    ExceptionResponse* info =
+        dynamic_cast<ExceptionResponse*>( dataStructure );
+    tightMarshalBrokerError2( wireFormat, info->getException(), dataOut, bs );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ExceptionResponseMarshaller::looseUnmarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataInputStream& dataIn ) {
+    ResponseMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+    ExceptionResponse* info = 
+        dynamic_cast<ExceptionResponse*>( dataStructure );
+    info->setException( looseUnmarshalBrokerError( wireFormat, dataIn ) );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ExceptionResponseMarshaller::looseMarshal( OpenWireFormat& wireFormat, DataStructure* dataStructure, DataOutputStream& dataOut ) {
+    ExceptionResponse* info =
+        dynamic_cast<ExceptionResponse*>( dataStructure );
+    ResponseMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+    looseMarshalBrokerError( wireFormat, info->getException(), dataOut );
+}
+

Propchange: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/ExceptionResponseMarshaller.cpp
------------------------------------------------------------------------------
    svn:eol-style = native