You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2009/01/11 21:22:43 UTC
svn commit: r733509 [27/33] - in
/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire: ./
marshal/ marshal/v1/ marshal/v2/ marshal/v3/ utils/
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataArrayResponseMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataArrayResponseMarshaller.cpp?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataArrayResponseMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataArrayResponseMarshaller.cpp Sun Jan 11 12:22:34 2009
@@ -0,0 +1,153 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <activemq/wireformat/openwire/marshal/v3/DataArrayResponseMarshaller.h>
+
+#include <activemq/commands/DataArrayResponse.h>
+#include <activemq/exceptions/ActiveMQException.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v3;
+using namespace decaf;
+using namespace decaf::io;
+
+///////////////////////////////////////////////////////////////////////////////
+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 ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ DataArrayResponse* info =
+ dynamic_cast<DataArrayResponse*>( dataStructure );
+
+ if( bs->readBoolean() ) {
+ short size = dataIn->readShort();
+ info->getData().reserve( size );
+ for( int i = 0; i < size; i++ ) {
+ info->getData().push_back( dynamic_cast< DataStructure* >(
+ tightUnmarshalNestedObject( wireFormat, dataIn, bs ) ) );
+ }
+ }
+ else {
+ info->getData().clear();
+ }
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int DataArrayResponseMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ DataArrayResponse* info =
+ dynamic_cast<DataArrayResponse*>( dataStructure );
+
+ int rc = ResponseMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ rc += tightMarshalObjectArray1( wireFormat, info->getData(), bs );
+
+ return rc + 0;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataArrayResponseMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ DataArrayResponse* info =
+ dynamic_cast<DataArrayResponse*>( dataStructure );
+ tightMarshalObjectArray2( wireFormat, info->getData(), dataOut, bs );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataArrayResponseMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ DataArrayResponse* info =
+ dynamic_cast<DataArrayResponse*>( dataStructure );
+
+ if( dataIn->readBoolean() ) {
+ short size = dataIn->readShort();
+ info->getData().reserve( size );
+ for( int i = 0; i < size; i++ ) {
+ info->getData().push_back( dynamic_cast<DataStructure* >(
+ looseUnmarshalNestedObject( wireFormat, dataIn ) ) );
+ }
+ }
+ else {
+ info->getData().clear();
+ }
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataArrayResponseMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ DataArrayResponse* info =
+ dynamic_cast<DataArrayResponse*>( dataStructure );
+ ResponseMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ looseMarshalObjectArray( wireFormat, info->getData(), dataOut );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataArrayResponseMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataArrayResponseMarshaller.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataArrayResponseMarshaller.h?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataArrayResponseMarshaller.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataArrayResponseMarshaller.h Sun Jan 11 12:22:34 2009
@@ -0,0 +1,127 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DATAARRAYRESPONSEMARSHALLER_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DATAARRAYRESPONSEMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/marshal/v3/ResponseMarshaller.h>
+
+#include <decaf/io/DataInputStream.h>
+#include <decaf/io/DataOutputStream.h>
+#include <decaf/io/IOException.h>
+#include <activemq/util/Config.h>
+#include <activemq/commands/DataStructure.h>
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+#include <activemq/wireformat/openwire/utils/BooleanStream.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v3{
+
+ /**
+ * 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 AMQCPP_API DataArrayResponseMarshaller : public ResponseMarshaller {
+ public:
+
+ DataArrayResponseMarshaller() {}
+ virtual ~DataArrayResponseMarshaller() {}
+
+ /**
+ * Creates a new instance of this marshalable type.
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual commands::DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this 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,
+ decaf::io::DataInputStream* dataIn,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataOutputStream* dataOut,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DATAARRAYRESPONSEMARSHALLER_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataArrayResponseMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataResponseMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataResponseMarshaller.cpp?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataResponseMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataResponseMarshaller.cpp Sun Jan 11 12:22:34 2009
@@ -0,0 +1,133 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <activemq/wireformat/openwire/marshal/v3/DataResponseMarshaller.h>
+
+#include <activemq/commands/DataResponse.h>
+#include <activemq/exceptions/ActiveMQException.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v3;
+using namespace decaf;
+using namespace decaf::io;
+
+///////////////////////////////////////////////////////////////////////////////
+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 ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ DataResponse* info =
+ dynamic_cast<DataResponse*>( dataStructure );
+ info->setData( dynamic_cast< DataStructure* >(
+ tightUnmarshalNestedObject( wireFormat, dataIn, bs ) ) );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int DataResponseMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ DataResponse* info =
+ dynamic_cast<DataResponse*>( dataStructure );
+
+ int rc = ResponseMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ rc += tightMarshalNestedObject1( wireFormat, info->getData(), bs );
+
+ return rc + 0;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataResponseMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ DataResponse* info =
+ dynamic_cast<DataResponse*>( dataStructure );
+ tightMarshalNestedObject2( wireFormat, info->getData(), dataOut, bs );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataResponseMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ DataResponse* info =
+ dynamic_cast<DataResponse*>( dataStructure );
+ info->setData( dynamic_cast< DataStructure* >(
+ looseUnmarshalNestedObject( wireFormat, dataIn ) ) );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DataResponseMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ DataResponse* info =
+ dynamic_cast<DataResponse*>( dataStructure );
+ ResponseMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ looseMarshalNestedObject( wireFormat, info->getData(), dataOut );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataResponseMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataResponseMarshaller.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataResponseMarshaller.h?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataResponseMarshaller.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataResponseMarshaller.h Sun Jan 11 12:22:34 2009
@@ -0,0 +1,127 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DATARESPONSEMARSHALLER_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DATARESPONSEMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/marshal/v3/ResponseMarshaller.h>
+
+#include <decaf/io/DataInputStream.h>
+#include <decaf/io/DataOutputStream.h>
+#include <decaf/io/IOException.h>
+#include <activemq/util/Config.h>
+#include <activemq/commands/DataStructure.h>
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+#include <activemq/wireformat/openwire/utils/BooleanStream.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v3{
+
+ /**
+ * 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 AMQCPP_API DataResponseMarshaller : public ResponseMarshaller {
+ public:
+
+ DataResponseMarshaller() {}
+ virtual ~DataResponseMarshaller() {}
+
+ /**
+ * Creates a new instance of this marshalable type.
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual commands::DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this 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,
+ decaf::io::DataInputStream* dataIn,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataOutputStream* dataOut,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DATARESPONSEMARSHALLER_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DataResponseMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DestinationInfoMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DestinationInfoMarshaller.cpp?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DestinationInfoMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DestinationInfoMarshaller.cpp Sun Jan 11 12:22:34 2009
@@ -0,0 +1,176 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <activemq/wireformat/openwire/marshal/v3/DestinationInfoMarshaller.h>
+
+#include <activemq/commands/DestinationInfo.h>
+#include <activemq/exceptions/ActiveMQException.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v3;
+using namespace decaf;
+using namespace decaf::io;
+
+///////////////////////////////////////////////////////////////////////////////
+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 ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ DestinationInfo* info =
+ dynamic_cast<DestinationInfo*>( dataStructure );
+ info->setConnectionId( dynamic_cast< ConnectionId* >(
+ tightUnmarshalCachedObject( wireFormat, dataIn, bs ) ) );
+ info->setDestination( dynamic_cast< ActiveMQDestination* >(
+ tightUnmarshalCachedObject( wireFormat, dataIn, bs ) ) );
+ info->setOperationType( dataIn->readByte() );
+ info->setTimeout( tightUnmarshalLong( wireFormat, dataIn, bs ) );
+
+ if( bs->readBoolean() ) {
+ short size = dataIn->readShort();
+ info->getBrokerPath().reserve( size );
+ for( int i = 0; i < size; i++ ) {
+ info->getBrokerPath().push_back( dynamic_cast< BrokerId* >(
+ tightUnmarshalNestedObject( wireFormat, dataIn, bs ) ) );
+ }
+ }
+ else {
+ info->getBrokerPath().clear();
+ }
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int DestinationInfoMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ DestinationInfo* info =
+ dynamic_cast<DestinationInfo*>( dataStructure );
+
+ int rc = BaseCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ rc += tightMarshalCachedObject1( wireFormat, info->getConnectionId(), bs );
+ rc += tightMarshalCachedObject1( wireFormat, info->getDestination(), bs );
+ rc += tightMarshalLong1( wireFormat, info->getTimeout(), bs );
+ rc += tightMarshalObjectArray1( wireFormat, info->getBrokerPath(), bs );
+
+ return rc + 1;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DestinationInfoMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ DestinationInfo* info =
+ dynamic_cast<DestinationInfo*>( dataStructure );
+ tightMarshalCachedObject2( wireFormat, info->getConnectionId(), dataOut, bs );
+ tightMarshalCachedObject2( wireFormat, info->getDestination(), dataOut, bs );
+ dataOut->write( info->getOperationType() );
+ tightMarshalLong2( wireFormat, info->getTimeout(), dataOut, bs );
+ tightMarshalObjectArray2( wireFormat, info->getBrokerPath(), dataOut, bs );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DestinationInfoMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ 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();
+ info->getBrokerPath().reserve( size );
+ for( int i = 0; i < size; i++ ) {
+ info->getBrokerPath().push_back( dynamic_cast<BrokerId* >(
+ looseUnmarshalNestedObject( wireFormat, dataIn ) ) );
+ }
+ }
+ else {
+ info->getBrokerPath().clear();
+ }
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DestinationInfoMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ DestinationInfo* info =
+ dynamic_cast<DestinationInfo*>( dataStructure );
+ BaseCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ looseMarshalCachedObject( wireFormat, info->getConnectionId(), dataOut );
+ looseMarshalCachedObject( wireFormat, info->getDestination(), dataOut );
+ dataOut->write( info->getOperationType() );
+ looseMarshalLong( wireFormat, info->getTimeout(), dataOut );
+ looseMarshalObjectArray( wireFormat, info->getBrokerPath(), dataOut );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DestinationInfoMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DestinationInfoMarshaller.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DestinationInfoMarshaller.h?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DestinationInfoMarshaller.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DestinationInfoMarshaller.h Sun Jan 11 12:22:34 2009
@@ -0,0 +1,127 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DESTINATIONINFOMARSHALLER_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DESTINATIONINFOMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/marshal/v3/BaseCommandMarshaller.h>
+
+#include <decaf/io/DataInputStream.h>
+#include <decaf/io/DataOutputStream.h>
+#include <decaf/io/IOException.h>
+#include <activemq/util/Config.h>
+#include <activemq/commands/DataStructure.h>
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+#include <activemq/wireformat/openwire/utils/BooleanStream.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v3{
+
+ /**
+ * 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 AMQCPP_API DestinationInfoMarshaller : public BaseCommandMarshaller {
+ public:
+
+ DestinationInfoMarshaller() {}
+ virtual ~DestinationInfoMarshaller() {}
+
+ /**
+ * Creates a new instance of this marshalable type.
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual commands::DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this 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,
+ decaf::io::DataInputStream* dataIn,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataOutputStream* dataOut,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DESTINATIONINFOMARSHALLER_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DestinationInfoMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DiscoveryEventMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DiscoveryEventMarshaller.cpp?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DiscoveryEventMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DiscoveryEventMarshaller.cpp Sun Jan 11 12:22:34 2009
@@ -0,0 +1,136 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <activemq/wireformat/openwire/marshal/v3/DiscoveryEventMarshaller.h>
+
+#include <activemq/commands/DiscoveryEvent.h>
+#include <activemq/exceptions/ActiveMQException.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v3;
+using namespace decaf;
+using namespace decaf::io;
+
+///////////////////////////////////////////////////////////////////////////////
+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 ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseDataStreamMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ DiscoveryEvent* info =
+ dynamic_cast<DiscoveryEvent*>( dataStructure );
+ info->setServiceName( tightUnmarshalString( dataIn, bs ) );
+ info->setBrokerName( tightUnmarshalString( dataIn, bs ) );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int DiscoveryEventMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ 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;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DiscoveryEventMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseDataStreamMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ DiscoveryEvent* info =
+ dynamic_cast<DiscoveryEvent*>( dataStructure );
+ tightMarshalString2( info->getServiceName(), dataOut, bs );
+ tightMarshalString2( info->getBrokerName(), dataOut, bs );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DiscoveryEventMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseDataStreamMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ DiscoveryEvent* info =
+ dynamic_cast<DiscoveryEvent*>( dataStructure );
+ info->setServiceName( looseUnmarshalString( dataIn ) );
+ info->setBrokerName( looseUnmarshalString( dataIn ) );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void DiscoveryEventMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ DiscoveryEvent* info =
+ dynamic_cast<DiscoveryEvent*>( dataStructure );
+ BaseDataStreamMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ looseMarshalString( info->getServiceName(), dataOut );
+ looseMarshalString( info->getBrokerName(), dataOut );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DiscoveryEventMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DiscoveryEventMarshaller.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DiscoveryEventMarshaller.h?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DiscoveryEventMarshaller.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DiscoveryEventMarshaller.h Sun Jan 11 12:22:34 2009
@@ -0,0 +1,127 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DISCOVERYEVENTMARSHALLER_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DISCOVERYEVENTMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/marshal/BaseDataStreamMarshaller.h>
+
+#include <decaf/io/DataInputStream.h>
+#include <decaf/io/DataOutputStream.h>
+#include <decaf/io/IOException.h>
+#include <activemq/util/Config.h>
+#include <activemq/commands/DataStructure.h>
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+#include <activemq/wireformat/openwire/utils/BooleanStream.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v3{
+
+ /**
+ * 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 AMQCPP_API DiscoveryEventMarshaller : public BaseDataStreamMarshaller {
+ public:
+
+ DiscoveryEventMarshaller() {}
+ virtual ~DiscoveryEventMarshaller() {}
+
+ /**
+ * Creates a new instance of this marshalable type.
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual commands::DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this 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,
+ decaf::io::DataInputStream* dataIn,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataOutputStream* dataOut,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_DISCOVERYEVENTMARSHALLER_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/DiscoveryEventMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/ExceptionResponseMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/ExceptionResponseMarshaller.cpp?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/ExceptionResponseMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/ExceptionResponseMarshaller.cpp Sun Jan 11 12:22:34 2009
@@ -0,0 +1,133 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <activemq/wireformat/openwire/marshal/v3/ExceptionResponseMarshaller.h>
+
+#include <activemq/commands/ExceptionResponse.h>
+#include <activemq/exceptions/ActiveMQException.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v3;
+using namespace decaf;
+using namespace decaf::io;
+
+///////////////////////////////////////////////////////////////////////////////
+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 ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ ExceptionResponse* info =
+ dynamic_cast<ExceptionResponse*>( dataStructure );
+ info->setException( dynamic_cast< BrokerError* >(
+ tightUnmarshalBrokerError( wireFormat, dataIn, bs ) ) );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int ExceptionResponseMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ExceptionResponse* info =
+ dynamic_cast<ExceptionResponse*>( dataStructure );
+
+ int rc = ResponseMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+ rc += tightMarshalBrokerError1( wireFormat, info->getException(), bs );
+
+ return rc + 0;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ExceptionResponseMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ ExceptionResponse* info =
+ dynamic_cast<ExceptionResponse*>( dataStructure );
+ tightMarshalBrokerError2( wireFormat, info->getException(), dataOut, bs );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ExceptionResponseMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ ExceptionResponse* info =
+ dynamic_cast<ExceptionResponse*>( dataStructure );
+ info->setException( dynamic_cast< BrokerError* >(
+ looseUnmarshalBrokerError( wireFormat, dataIn ) ) );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void ExceptionResponseMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ExceptionResponse* info =
+ dynamic_cast<ExceptionResponse*>( dataStructure );
+ ResponseMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ looseMarshalBrokerError( wireFormat, info->getException(), dataOut );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/ExceptionResponseMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/ExceptionResponseMarshaller.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/ExceptionResponseMarshaller.h?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/ExceptionResponseMarshaller.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/ExceptionResponseMarshaller.h Sun Jan 11 12:22:34 2009
@@ -0,0 +1,127 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_EXCEPTIONRESPONSEMARSHALLER_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_EXCEPTIONRESPONSEMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/marshal/v3/ResponseMarshaller.h>
+
+#include <decaf/io/DataInputStream.h>
+#include <decaf/io/DataOutputStream.h>
+#include <decaf/io/IOException.h>
+#include <activemq/util/Config.h>
+#include <activemq/commands/DataStructure.h>
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+#include <activemq/wireformat/openwire/utils/BooleanStream.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v3{
+
+ /**
+ * Marshalling code for Open Wire Format for ExceptionResponseMarshaller
+ *
+ * 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 AMQCPP_API ExceptionResponseMarshaller : public ResponseMarshaller {
+ public:
+
+ ExceptionResponseMarshaller() {}
+ virtual ~ExceptionResponseMarshaller() {}
+
+ /**
+ * Creates a new instance of this marshalable type.
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual commands::DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this 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,
+ decaf::io::DataInputStream* dataIn,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataOutputStream* dataOut,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_EXCEPTIONRESPONSEMARSHALLER_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/ExceptionResponseMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/FlushCommandMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/FlushCommandMarshaller.cpp?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/FlushCommandMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/FlushCommandMarshaller.cpp Sun Jan 11 12:22:34 2009
@@ -0,0 +1,115 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <activemq/wireformat/openwire/marshal/v3/FlushCommandMarshaller.h>
+
+#include <activemq/commands/FlushCommand.h>
+#include <activemq/exceptions/ActiveMQException.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v3;
+using namespace decaf;
+using namespace decaf::io;
+
+///////////////////////////////////////////////////////////////////////////////
+DataStructure* FlushCommandMarshaller::createObject() const {
+ return new FlushCommand();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char FlushCommandMarshaller::getDataStructureType() const {
+ return FlushCommand::ID_FLUSHCOMMAND;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void FlushCommandMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int FlushCommandMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ int rc = BaseCommandMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+
+ return rc + 0;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void FlushCommandMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void FlushCommandMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void FlushCommandMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ BaseCommandMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/FlushCommandMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/FlushCommandMarshaller.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/FlushCommandMarshaller.h?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/FlushCommandMarshaller.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/FlushCommandMarshaller.h Sun Jan 11 12:22:34 2009
@@ -0,0 +1,127 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_FLUSHCOMMANDMARSHALLER_H_
+#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_FLUSHCOMMANDMARSHALLER_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/wireformat/openwire/marshal/v3/BaseCommandMarshaller.h>
+
+#include <decaf/io/DataInputStream.h>
+#include <decaf/io/DataOutputStream.h>
+#include <decaf/io/IOException.h>
+#include <activemq/util/Config.h>
+#include <activemq/commands/DataStructure.h>
+#include <activemq/wireformat/openwire/OpenWireFormat.h>
+#include <activemq/wireformat/openwire/utils/BooleanStream.h>
+
+namespace activemq{
+namespace wireformat{
+namespace openwire{
+namespace marshal{
+namespace v3{
+
+ /**
+ * Marshalling code for Open Wire Format for FlushCommandMarshaller
+ *
+ * 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 AMQCPP_API FlushCommandMarshaller : public BaseCommandMarshaller {
+ public:
+
+ FlushCommandMarshaller() {}
+ virtual ~FlushCommandMarshaller() {}
+
+ /**
+ * Creates a new instance of this marshalable type.
+ * @return new DataStructure object pointer caller owns it.
+ */
+ virtual commands::DataStructure* createObject() const;
+
+ /**
+ * Get the Data Structure Type that identifies this 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,
+ decaf::io::DataInputStream* dataIn,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataOutputStream* dataOut,
+ utils::BooleanStream* bs ) throw( decaf::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,
+ decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException );
+
+ /**
+ * Write a object instance to data output stream
+ * @param wireFormat - describs the wire format of the broker
+ * @param o - Object to be marshaled
+ * @param dataOut - BinaryWriter that provides that data sink
+ */
+ virtual void looseMarshal( OpenWireFormat* wireFormat,
+ commands::DataStructure* dataStructure,
+ decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException );
+
+ };
+
+}}}}}
+
+#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V3_FLUSHCOMMANDMARSHALLER_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/FlushCommandMarshaller.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/IntegerResponseMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/IntegerResponseMarshaller.cpp?rev=733509&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/IntegerResponseMarshaller.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/IntegerResponseMarshaller.cpp Sun Jan 11 12:22:34 2009
@@ -0,0 +1,127 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <activemq/wireformat/openwire/marshal/v3/IntegerResponseMarshaller.h>
+
+#include <activemq/commands/IntegerResponse.h>
+#include <activemq/exceptions/ActiveMQException.h>
+
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Java Classes in the
+// activemq-core module
+//
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace activemq::wireformat;
+using namespace activemq::wireformat::openwire;
+using namespace activemq::wireformat::openwire::marshal;
+using namespace activemq::wireformat::openwire::utils;
+using namespace activemq::wireformat::openwire::marshal::v3;
+using namespace decaf;
+using namespace decaf::io;
+
+///////////////////////////////////////////////////////////////////////////////
+DataStructure* IntegerResponseMarshaller::createObject() const {
+ return new IntegerResponse();
+}
+
+///////////////////////////////////////////////////////////////////////////////
+unsigned char IntegerResponseMarshaller::getDataStructureType() const {
+ return IntegerResponse::ID_INTEGERRESPONSE;
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void IntegerResponseMarshaller::tightUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn, bs );
+
+ IntegerResponse* info =
+ dynamic_cast<IntegerResponse*>( dataStructure );
+ info->setResult( dataIn->readInt() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+int IntegerResponseMarshaller::tightMarshal1( OpenWireFormat* wireFormat, DataStructure* dataStructure, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ int rc = ResponseMarshaller::tightMarshal1( wireFormat, dataStructure, bs );
+
+ return rc + 4;
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void IntegerResponseMarshaller::tightMarshal2( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut, BooleanStream* bs ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut, bs );
+
+ IntegerResponse* info =
+ dynamic_cast<IntegerResponse*>( dataStructure );
+ dataOut->writeInt( info->getResult() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void IntegerResponseMarshaller::looseUnmarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataInputStream* dataIn ) throw( decaf::io::IOException ) {
+
+ try {
+
+ ResponseMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn );
+ IntegerResponse* info =
+ dynamic_cast<IntegerResponse*>( dataStructure );
+ info->setResult( dataIn->readInt() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
+///////////////////////////////////////////////////////////////////////////////
+void IntegerResponseMarshaller::looseMarshal( OpenWireFormat* wireFormat, DataStructure* dataStructure, DataOutputStream* dataOut ) throw( decaf::io::IOException ) {
+
+ try {
+
+ IntegerResponse* info =
+ dynamic_cast<IntegerResponse*>( dataStructure );
+ ResponseMarshaller::looseMarshal( wireFormat, dataStructure, dataOut );
+
+ dataOut->writeInt( info->getResult() );
+ }
+ AMQ_CATCH_RETHROW( decaf::io::IOException )
+ AMQ_CATCH_EXCEPTION_CONVERT( exceptions::ActiveMQException, decaf::io::IOException )
+ AMQ_CATCHALL_THROW( decaf::io::IOException )
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/wireformat/openwire/marshal/v3/IntegerResponseMarshaller.cpp
------------------------------------------------------------------------------
svn:eol-style = native