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 17:36:05 UTC
svn commit: r733487 [5/10] -
/activemq/activemq-cpp/trunk/src/main/activemq/commands/
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/ControlCommand.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/ControlCommand.cpp?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/ControlCommand.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/ControlCommand.cpp Sun Jan 11 08:36:02 2009
@@ -0,0 +1,124 @@
+/*
+ * 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/commands/ControlCommand.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/exceptions/NullPointerException.h>
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace decaf::lang::exceptions;
+
+/*
+ *
+ * Command and marshaling code for OpenWire format for ControlCommand
+ *
+ *
+ * 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
+ *
+ */
+////////////////////////////////////////////////////////////////////////////////
+ControlCommand::ControlCommand()
+{
+ this->command = "";
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ControlCommand::~ControlCommand()
+{
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ControlCommand* ControlCommand::cloneDataStructure() const {
+ ControlCommand* controlCommand = new ControlCommand();
+
+ // Copy the data from the base class or classes
+ controlCommand->copyDataStructure( this );
+
+ return controlCommand;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void ControlCommand::copyDataStructure( const DataStructure* src ) {
+
+ // Copy the data of the base class or classes
+ BaseCommand<transport::Command>::copyDataStructure( src );
+
+ const ControlCommand* srcPtr = dynamic_cast<const ControlCommand*>( src );
+
+ if( srcPtr == NULL || src == NULL ) {
+
+ throw decaf::lang::exceptions::NullPointerException(
+ __FILE__, __LINE__,
+ "ControlCommand::copyDataStructure - src is NULL or invalid" );
+ }
+ this->setCommand( srcPtr->getCommand() );
+}
+
+////////////////////////////////////////////////////////////////////////////////
+unsigned char ControlCommand::getDataStructureType() const {
+ return ControlCommand::ID_CONTROLCOMMAND;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string ControlCommand::toString() const {
+
+ ostringstream stream;
+
+ stream << "Begin Class = ControlCommand" << std::endl;
+ stream << " Value of ControlCommand::ID_CONTROLCOMMAND = 14" << std::endl;
+ stream << " Value of Command = " << this->getCommand() << std::endl;
+ stream << BaseCommand<transport::Command>::toString();
+ stream << "End Class = ControlCommand" << std::endl;
+
+ return stream.str();
+}
+
+////////////////////////////////////////////////////////////////////////////////
+bool ControlCommand::equals( const DataStructure* value ) const {
+ const ControlCommand* valuePtr = dynamic_cast<const ControlCommand*>( value );
+
+ if( valuePtr == NULL || value == NULL ) {
+ return false;
+ }
+ if( this->getCommand() != valuePtr->getCommand() ) {
+ return false;
+ }
+ if( !BaseCommand<transport::Command>::equals( value ) ) {
+ return false;
+ }
+ return true;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+const std::string& ControlCommand::getCommand() const {
+ return command;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string& ControlCommand::getCommand() {
+ return command;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void ControlCommand::setCommand(const std::string& command ) {
+ this->command = command;
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/ControlCommand.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/ControlCommand.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/ControlCommand.h?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/ControlCommand.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/ControlCommand.h Sun Jan 11 08:36:02 2009
@@ -0,0 +1,104 @@
+/*
+ * 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_COMMANDS_CONTROLCOMMAND_H_
+#define _ACTIVEMQ_COMMANDS_CONTROLCOMMAND_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/util/Config.h>
+#include <activemq/commands/BaseCommand.h>
+#include <vector>
+#include <string>
+
+namespace activemq{
+namespace commands{
+
+ /*
+ *
+ * Command and marshaling code for OpenWire format for ControlCommand
+ *
+ *
+ * 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 ControlCommand : public BaseCommand<transport::Command>
+ {
+ protected:
+
+ std::string command;
+
+ public:
+
+ const static unsigned char ID_CONTROLCOMMAND = 14;
+
+ public:
+
+ ControlCommand();
+ virtual ~ControlCommand();
+
+ /**
+ * Get the unique identifier that this object and its own
+ * Marshaller share.
+ * @returns new DataStructure type copy.
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Clone this object and return a new instance that the
+ * caller now owns, this will be an exact copy of this one
+ * @returns new copy of this object.
+ */
+ virtual ControlCommand* cloneDataStructure() const;
+
+ /**
+ * Copy the contents of the passed object into this object's
+ * members, overwriting any existing data.
+ * @param src - Source Object
+ */
+ virtual void copyDataStructure( const DataStructure* src );
+
+ /**
+ * Returns a string containing the information for this DataStructure
+ * such as its type and value of its elements.
+ * @return formatted string useful for debugging.
+ */
+ virtual std::string toString() const;
+
+ /**
+ * Compares the DataStructure passed in to this one, and returns if
+ * they are equivalent. Equivalent here means that they are of the
+ * same type, and that each element of the objects are the same.
+ * @returns true if DataStructure's are Equal.
+ */
+ virtual bool equals( const DataStructure* value ) const;
+
+ virtual const std::string& getCommand() const;
+ virtual std::string& getCommand();
+ virtual void setCommand( const std::string& command );
+
+ };
+
+}}
+
+#endif /*_ACTIVEMQ_COMMANDS_CONTROLCOMMAND_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/ControlCommand.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/DataArrayResponse.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/DataArrayResponse.cpp?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/DataArrayResponse.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/DataArrayResponse.cpp Sun Jan 11 08:36:02 2009
@@ -0,0 +1,147 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#include <activemq/commands/DataArrayResponse.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/exceptions/NullPointerException.h>
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace decaf::lang::exceptions;
+
+/*
+ *
+ * Command and marshaling code for OpenWire format for DataArrayResponse
+ *
+ *
+ * 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
+ *
+ */
+////////////////////////////////////////////////////////////////////////////////
+DataArrayResponse::DataArrayResponse()
+{
+}
+
+////////////////////////////////////////////////////////////////////////////////
+DataArrayResponse::~DataArrayResponse()
+{
+ for( size_t idata = 0; idata < data.size(); ++idata ) {
+ delete data[idata];
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
+DataArrayResponse* DataArrayResponse::cloneDataStructure() const {
+ DataArrayResponse* dataArrayResponse = new DataArrayResponse();
+
+ // Copy the data from the base class or classes
+ dataArrayResponse->copyDataStructure( this );
+
+ return dataArrayResponse;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DataArrayResponse::copyDataStructure( const DataStructure* src ) {
+
+ // Copy the data of the base class or classes
+ Response::copyDataStructure( src );
+
+ const DataArrayResponse* srcPtr = dynamic_cast<const DataArrayResponse*>( src );
+
+ if( srcPtr == NULL || src == NULL ) {
+
+ throw decaf::lang::exceptions::NullPointerException(
+ __FILE__, __LINE__,
+ "DataArrayResponse::copyDataStructure - src is NULL or invalid" );
+ }
+ for( size_t idata = 0; idata < srcPtr->getData().size(); ++idata ) {
+ if( srcPtr->getData()[idata] != NULL ) {
+ this->getData().push_back(
+ dynamic_cast<DataStructure*>(
+ srcPtr->getData()[idata]->cloneDataStructure() ) );
+ } else {
+ this->getData().push_back( NULL );
+ }
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
+unsigned char DataArrayResponse::getDataStructureType() const {
+ return DataArrayResponse::ID_DATAARRAYRESPONSE;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string DataArrayResponse::toString() const {
+
+ ostringstream stream;
+
+ stream << "Begin Class = DataArrayResponse" << std::endl;
+ stream << " Value of DataArrayResponse::ID_DATAARRAYRESPONSE = 33" << std::endl;
+ for( size_t idata = 0; idata < this->getData().size(); ++idata ) {
+ stream << " Value of Data[" << idata << "] is Below:" << std::endl;
+ if( this->getData()[idata] != NULL ) {
+ stream << this->getData()[idata]->toString() << std::endl;
+ } else {
+ stream << " Object is NULL" << std::endl;
+ }
+ }
+ stream << Response::toString();
+ stream << "End Class = DataArrayResponse" << std::endl;
+
+ return stream.str();
+}
+
+////////////////////////////////////////////////////////////////////////////////
+bool DataArrayResponse::equals( const DataStructure* value ) const {
+ const DataArrayResponse* valuePtr = dynamic_cast<const DataArrayResponse*>( value );
+
+ if( valuePtr == NULL || value == NULL ) {
+ return false;
+ }
+ for( size_t idata = 0; idata < this->getData().size(); ++idata ) {
+ if( this->getData()[idata] != NULL ) {
+ if( !this->getData()[idata]->equals( valuePtr->getData()[idata] ) ) {
+ return false;
+ }
+ } else if( valuePtr->getData()[idata] != NULL ) {
+ return false;
+ }
+ }
+ if( !Response::equals( value ) ) {
+ return false;
+ }
+ return true;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+const std::vector<DataStructure*>& DataArrayResponse::getData() const {
+ return data;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::vector<DataStructure*>& DataArrayResponse::getData() {
+ return data;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DataArrayResponse::setData(const std::vector<DataStructure*>& data ) {
+ this->data = data;
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/DataArrayResponse.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/DataArrayResponse.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/DataArrayResponse.h?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/DataArrayResponse.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/DataArrayResponse.h Sun Jan 11 08:36:02 2009
@@ -0,0 +1,105 @@
+/*
+ * 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_COMMANDS_DATAARRAYRESPONSE_H_
+#define _ACTIVEMQ_COMMANDS_DATAARRAYRESPONSE_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/util/Config.h>
+#include <activemq/commands/Response.h>
+#include <activemq/commands/DataStructure.h>
+#include <vector>
+#include <string>
+
+namespace activemq{
+namespace commands{
+
+ /*
+ *
+ * Command and marshaling code for OpenWire format for DataArrayResponse
+ *
+ *
+ * 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 DataArrayResponse : public Response
+ {
+ protected:
+
+ std::vector<DataStructure*> data;
+
+ public:
+
+ const static unsigned char ID_DATAARRAYRESPONSE = 33;
+
+ public:
+
+ DataArrayResponse();
+ virtual ~DataArrayResponse();
+
+ /**
+ * Get the unique identifier that this object and its own
+ * Marshaller share.
+ * @returns new DataStructure type copy.
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Clone this object and return a new instance that the
+ * caller now owns, this will be an exact copy of this one
+ * @returns new copy of this object.
+ */
+ virtual DataArrayResponse* cloneDataStructure() const;
+
+ /**
+ * Copy the contents of the passed object into this object's
+ * members, overwriting any existing data.
+ * @param src - Source Object
+ */
+ virtual void copyDataStructure( const DataStructure* src );
+
+ /**
+ * Returns a string containing the information for this DataStructure
+ * such as its type and value of its elements.
+ * @return formatted string useful for debugging.
+ */
+ virtual std::string toString() const;
+
+ /**
+ * Compares the DataStructure passed in to this one, and returns if
+ * they are equivalent. Equivalent here means that they are of the
+ * same type, and that each element of the objects are the same.
+ * @returns true if DataStructure's are Equal.
+ */
+ virtual bool equals( const DataStructure* value ) const;
+
+ virtual const std::vector<DataStructure*>& getData() const;
+ virtual std::vector<DataStructure*>& getData();
+ virtual void setData( const std::vector<DataStructure*>& data );
+
+ };
+
+}}
+
+#endif /*_ACTIVEMQ_COMMANDS_DATAARRAYRESPONSE_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/DataArrayResponse.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/DataResponse.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/DataResponse.cpp?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/DataResponse.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/DataResponse.cpp Sun Jan 11 08:36:02 2009
@@ -0,0 +1,138 @@
+/*
+ * 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/commands/DataResponse.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/exceptions/NullPointerException.h>
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace decaf::lang::exceptions;
+
+/*
+ *
+ * Command and marshaling code for OpenWire format for DataResponse
+ *
+ *
+ * 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
+ *
+ */
+////////////////////////////////////////////////////////////////////////////////
+DataResponse::DataResponse()
+{
+ this->data = NULL;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+DataResponse::~DataResponse()
+{
+ delete this->data;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+DataResponse* DataResponse::cloneDataStructure() const {
+ DataResponse* dataResponse = new DataResponse();
+
+ // Copy the data from the base class or classes
+ dataResponse->copyDataStructure( this );
+
+ return dataResponse;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DataResponse::copyDataStructure( const DataStructure* src ) {
+
+ // Copy the data of the base class or classes
+ Response::copyDataStructure( src );
+
+ const DataResponse* srcPtr = dynamic_cast<const DataResponse*>( src );
+
+ if( srcPtr == NULL || src == NULL ) {
+
+ throw decaf::lang::exceptions::NullPointerException(
+ __FILE__, __LINE__,
+ "DataResponse::copyDataStructure - src is NULL or invalid" );
+ }
+ if( srcPtr->getData() != NULL ) {
+ this->setData(
+ dynamic_cast<DataStructure*>(
+ srcPtr->getData()->cloneDataStructure() ) );
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
+unsigned char DataResponse::getDataStructureType() const {
+ return DataResponse::ID_DATARESPONSE;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string DataResponse::toString() const {
+
+ ostringstream stream;
+
+ stream << "Begin Class = DataResponse" << std::endl;
+ stream << " Value of DataResponse::ID_DATARESPONSE = 32" << std::endl;
+ stream << " Value of Data is Below:" << std::endl;
+ if( this->getData() != NULL ) {
+ stream << this->getData()->toString() << std::endl;
+ } else {
+ stream << " Object is NULL" << std::endl;
+ }
+ stream << Response::toString();
+ stream << "End Class = DataResponse" << std::endl;
+
+ return stream.str();
+}
+
+////////////////////////////////////////////////////////////////////////////////
+bool DataResponse::equals( const DataStructure* value ) const {
+ const DataResponse* valuePtr = dynamic_cast<const DataResponse*>( value );
+
+ if( valuePtr == NULL || value == NULL ) {
+ return false;
+ }
+ if( this->getData() != NULL ) {
+ if( !this->getData()->equals( valuePtr->getData() ) ) {
+ return false;
+ }
+ } else if( valuePtr->getData() != NULL ) {
+ return false;
+ }
+ if( !Response::equals( value ) ) {
+ return false;
+ }
+ return true;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+const DataStructure* DataResponse::getData() const {
+ return data;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+DataStructure* DataResponse::getData() {
+ return data;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DataResponse::setData(DataStructure* data ) {
+ this->data = data;
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/DataResponse.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/DataResponse.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/DataResponse.h?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/DataResponse.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/DataResponse.h Sun Jan 11 08:36:02 2009
@@ -0,0 +1,105 @@
+/*
+ * 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_COMMANDS_DATARESPONSE_H_
+#define _ACTIVEMQ_COMMANDS_DATARESPONSE_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/util/Config.h>
+#include <activemq/commands/Response.h>
+#include <activemq/commands/DataStructure.h>
+#include <vector>
+#include <string>
+
+namespace activemq{
+namespace commands{
+
+ /*
+ *
+ * Command and marshaling code for OpenWire format for DataResponse
+ *
+ *
+ * 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 DataResponse : public Response
+ {
+ protected:
+
+ DataStructure* data;
+
+ public:
+
+ const static unsigned char ID_DATARESPONSE = 32;
+
+ public:
+
+ DataResponse();
+ virtual ~DataResponse();
+
+ /**
+ * Get the unique identifier that this object and its own
+ * Marshaller share.
+ * @returns new DataStructure type copy.
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Clone this object and return a new instance that the
+ * caller now owns, this will be an exact copy of this one
+ * @returns new copy of this object.
+ */
+ virtual DataResponse* cloneDataStructure() const;
+
+ /**
+ * Copy the contents of the passed object into this object's
+ * members, overwriting any existing data.
+ * @param src - Source Object
+ */
+ virtual void copyDataStructure( const DataStructure* src );
+
+ /**
+ * Returns a string containing the information for this DataStructure
+ * such as its type and value of its elements.
+ * @return formatted string useful for debugging.
+ */
+ virtual std::string toString() const;
+
+ /**
+ * Compares the DataStructure passed in to this one, and returns if
+ * they are equivalent. Equivalent here means that they are of the
+ * same type, and that each element of the objects are the same.
+ * @returns true if DataStructure's are Equal.
+ */
+ virtual bool equals( const DataStructure* value ) const;
+
+ virtual const DataStructure* getData() const;
+ virtual DataStructure* getData();
+ virtual void setData( DataStructure* data );
+
+ };
+
+}}
+
+#endif /*_ACTIVEMQ_COMMANDS_DATARESPONSE_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/DataResponse.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/DataStructure.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/DataStructure.h?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/DataStructure.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/DataStructure.h Sun Jan 11 08:36:02 2009
@@ -0,0 +1,71 @@
+/**
+ * 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_COMMANDS_DATASTRUCTURE_H_
+#define _ACTIVEMQ_COMMANDS_DATASTRUCTURE_H_
+
+#include <activemq/util/Config.h>
+#include <activemq/wireformat/MarshalAware.h>
+
+namespace activemq{
+namespace commands{
+
+ class AMQCPP_API DataStructure : public wireformat::MarshalAware {
+ public:
+
+ virtual ~DataStructure() {}
+
+ /**
+ * Get the DataStructure Type as defined in CommandTypes.h
+ * @return The type of the data structure
+ */
+ virtual unsigned char getDataStructureType() const = 0;
+
+ /**
+ * Clone this obbject and return a new instance that the
+ * caller now owns, this will be an exact copy of this one
+ * @returns new copy of this object.
+ */
+ virtual DataStructure* cloneDataStructure() const = 0;
+
+ /**
+ * Copy the contents of the passed object into this objects
+ * members, overwriting any existing data.
+ * @return src - Source Object
+ */
+ virtual void copyDataStructure( const DataStructure* src ) = 0;
+
+ /**
+ * Returns a string containing the information for this DataStructure
+ * such as its type and value of its elements.
+ * @return formatted string useful for debugging.
+ */
+ virtual std::string toString() const = 0;
+
+ /**
+ * Compares the DataStructure passed in to this one, and returns if
+ * they are equivalent. Equivalent here means that they are of the
+ * same type, and that each element of the objects are the same.
+ * @returns true if DataStructure's are Equal.
+ */
+ virtual bool equals( const DataStructure* value ) const = 0;
+
+ };
+
+}}
+
+#endif /*_ACTIVEMQ_COMMANDS_DATASTRUCTURE_H_*/
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/DataStructure.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/DestinationInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/DestinationInfo.cpp?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/DestinationInfo.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/DestinationInfo.cpp Sun Jan 11 08:36:02 2009
@@ -0,0 +1,249 @@
+/*
+ * 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/commands/DestinationInfo.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/exceptions/NullPointerException.h>
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace decaf::lang::exceptions;
+
+/*
+ *
+ * Command and marshaling code for OpenWire format for DestinationInfo
+ *
+ *
+ * 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
+ *
+ */
+////////////////////////////////////////////////////////////////////////////////
+DestinationInfo::DestinationInfo()
+{
+ this->connectionId = NULL;
+ this->destination = NULL;
+ this->operationType = 0;
+ this->timeout = 0;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+DestinationInfo::~DestinationInfo()
+{
+ delete this->connectionId;
+ delete this->destination;
+ for( size_t ibrokerPath = 0; ibrokerPath < brokerPath.size(); ++ibrokerPath ) {
+ delete brokerPath[ibrokerPath];
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
+DestinationInfo* DestinationInfo::cloneDataStructure() const {
+ DestinationInfo* destinationInfo = new DestinationInfo();
+
+ // Copy the data from the base class or classes
+ destinationInfo->copyDataStructure( this );
+
+ return destinationInfo;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DestinationInfo::copyDataStructure( const DataStructure* src ) {
+
+ // Copy the data of the base class or classes
+ BaseCommand<transport::Command>::copyDataStructure( src );
+
+ const DestinationInfo* srcPtr = dynamic_cast<const DestinationInfo*>( src );
+
+ if( srcPtr == NULL || src == NULL ) {
+
+ throw decaf::lang::exceptions::NullPointerException(
+ __FILE__, __LINE__,
+ "DestinationInfo::copyDataStructure - src is NULL or invalid" );
+ }
+ if( srcPtr->getConnectionId() != NULL ) {
+ this->setConnectionId(
+ dynamic_cast<ConnectionId*>(
+ srcPtr->getConnectionId()->cloneDataStructure() ) );
+ }
+ if( srcPtr->getDestination() != NULL ) {
+ this->setDestination(
+ dynamic_cast<ActiveMQDestination*>(
+ srcPtr->getDestination()->cloneDataStructure() ) );
+ }
+ this->setOperationType( srcPtr->getOperationType() );
+ this->setTimeout( srcPtr->getTimeout() );
+ for( size_t ibrokerPath = 0; ibrokerPath < srcPtr->getBrokerPath().size(); ++ibrokerPath ) {
+ if( srcPtr->getBrokerPath()[ibrokerPath] != NULL ) {
+ this->getBrokerPath().push_back(
+ dynamic_cast<BrokerId*>(
+ srcPtr->getBrokerPath()[ibrokerPath]->cloneDataStructure() ) );
+ } else {
+ this->getBrokerPath().push_back( NULL );
+ }
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
+unsigned char DestinationInfo::getDataStructureType() const {
+ return DestinationInfo::ID_DESTINATIONINFO;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string DestinationInfo::toString() const {
+
+ ostringstream stream;
+
+ stream << "Begin Class = DestinationInfo" << std::endl;
+ stream << " Value of DestinationInfo::ID_DESTINATIONINFO = 8" << std::endl;
+ stream << " Value of ConnectionId is Below:" << std::endl;
+ if( this->getConnectionId() != NULL ) {
+ stream << this->getConnectionId()->toString() << std::endl;
+ } else {
+ stream << " Object is NULL" << std::endl;
+ }
+ stream << " Value of Destination is Below:" << std::endl;
+ if( this->getDestination() != NULL ) {
+ stream << this->getDestination()->toString() << std::endl;
+ } else {
+ stream << " Object is NULL" << std::endl;
+ }
+ stream << " Value of OperationType = " << (int)this->getOperationType() << std::endl;
+ stream << " Value of Timeout = " << this->getTimeout() << std::endl;
+ for( size_t ibrokerPath = 0; ibrokerPath < this->getBrokerPath().size(); ++ibrokerPath ) {
+ stream << " Value of BrokerPath[" << ibrokerPath << "] is Below:" << std::endl;
+ if( this->getBrokerPath()[ibrokerPath] != NULL ) {
+ stream << this->getBrokerPath()[ibrokerPath]->toString() << std::endl;
+ } else {
+ stream << " Object is NULL" << std::endl;
+ }
+ }
+ stream << BaseCommand<transport::Command>::toString();
+ stream << "End Class = DestinationInfo" << std::endl;
+
+ return stream.str();
+}
+
+////////////////////////////////////////////////////////////////////////////////
+bool DestinationInfo::equals( const DataStructure* value ) const {
+ const DestinationInfo* valuePtr = dynamic_cast<const DestinationInfo*>( value );
+
+ if( valuePtr == NULL || value == NULL ) {
+ return false;
+ }
+ if( this->getConnectionId() != NULL ) {
+ if( !this->getConnectionId()->equals( valuePtr->getConnectionId() ) ) {
+ return false;
+ }
+ } else if( valuePtr->getConnectionId() != NULL ) {
+ return false;
+ }
+ if( this->getDestination() != NULL ) {
+ if( !this->getDestination()->equals( valuePtr->getDestination() ) ) {
+ return false;
+ }
+ } else if( valuePtr->getDestination() != NULL ) {
+ return false;
+ }
+ if( this->getOperationType() != valuePtr->getOperationType() ) {
+ return false;
+ }
+ if( this->getTimeout() != valuePtr->getTimeout() ) {
+ return false;
+ }
+ for( size_t ibrokerPath = 0; ibrokerPath < this->getBrokerPath().size(); ++ibrokerPath ) {
+ if( this->getBrokerPath()[ibrokerPath] != NULL ) {
+ if( !this->getBrokerPath()[ibrokerPath]->equals( valuePtr->getBrokerPath()[ibrokerPath] ) ) {
+ return false;
+ }
+ } else if( valuePtr->getBrokerPath()[ibrokerPath] != NULL ) {
+ return false;
+ }
+ }
+ if( !BaseCommand<transport::Command>::equals( value ) ) {
+ return false;
+ }
+ return true;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+const ConnectionId* DestinationInfo::getConnectionId() const {
+ return connectionId;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ConnectionId* DestinationInfo::getConnectionId() {
+ return connectionId;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DestinationInfo::setConnectionId(ConnectionId* connectionId ) {
+ this->connectionId = connectionId;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+const ActiveMQDestination* DestinationInfo::getDestination() const {
+ return destination;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ActiveMQDestination* DestinationInfo::getDestination() {
+ return destination;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DestinationInfo::setDestination(ActiveMQDestination* destination ) {
+ this->destination = destination;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+unsigned char DestinationInfo::getOperationType() const {
+ return operationType;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DestinationInfo::setOperationType(unsigned char operationType ) {
+ this->operationType = operationType;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+long long DestinationInfo::getTimeout() const {
+ return timeout;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DestinationInfo::setTimeout(long long timeout ) {
+ this->timeout = timeout;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+const std::vector<BrokerId*>& DestinationInfo::getBrokerPath() const {
+ return brokerPath;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::vector<BrokerId*>& DestinationInfo::getBrokerPath() {
+ return brokerPath;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DestinationInfo::setBrokerPath(const std::vector<BrokerId*>& brokerPath ) {
+ this->brokerPath = brokerPath;
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/DestinationInfo.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/DestinationInfo.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/DestinationInfo.h?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/DestinationInfo.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/DestinationInfo.h Sun Jan 11 08:36:02 2009
@@ -0,0 +1,125 @@
+/*
+ * 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_COMMANDS_DESTINATIONINFO_H_
+#define _ACTIVEMQ_COMMANDS_DESTINATIONINFO_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/util/Config.h>
+#include <activemq/commands/BaseCommand.h>
+#include <activemq/commands/ConnectionId.h>
+#include <activemq/commands/ActiveMQDestination.h>
+#include <activemq/commands/BrokerId.h>
+#include <vector>
+#include <string>
+
+namespace activemq{
+namespace commands{
+
+ /*
+ *
+ * Command and marshaling code for OpenWire format for DestinationInfo
+ *
+ *
+ * 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 DestinationInfo : public BaseCommand<transport::Command>
+ {
+ protected:
+
+ ConnectionId* connectionId;
+ ActiveMQDestination* destination;
+ unsigned char operationType;
+ long long timeout;
+ std::vector<BrokerId*> brokerPath;
+
+ public:
+
+ const static unsigned char ID_DESTINATIONINFO = 8;
+
+ public:
+
+ DestinationInfo();
+ virtual ~DestinationInfo();
+
+ /**
+ * Get the unique identifier that this object and its own
+ * Marshaller share.
+ * @returns new DataStructure type copy.
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Clone this object and return a new instance that the
+ * caller now owns, this will be an exact copy of this one
+ * @returns new copy of this object.
+ */
+ virtual DestinationInfo* cloneDataStructure() const;
+
+ /**
+ * Copy the contents of the passed object into this object's
+ * members, overwriting any existing data.
+ * @param src - Source Object
+ */
+ virtual void copyDataStructure( const DataStructure* src );
+
+ /**
+ * Returns a string containing the information for this DataStructure
+ * such as its type and value of its elements.
+ * @return formatted string useful for debugging.
+ */
+ virtual std::string toString() const;
+
+ /**
+ * Compares the DataStructure passed in to this one, and returns if
+ * they are equivalent. Equivalent here means that they are of the
+ * same type, and that each element of the objects are the same.
+ * @returns true if DataStructure's are Equal.
+ */
+ virtual bool equals( const DataStructure* value ) const;
+
+ virtual const ConnectionId* getConnectionId() const;
+ virtual ConnectionId* getConnectionId();
+ virtual void setConnectionId( ConnectionId* connectionId );
+
+ virtual const ActiveMQDestination* getDestination() const;
+ virtual ActiveMQDestination* getDestination();
+ virtual void setDestination( ActiveMQDestination* destination );
+
+ virtual unsigned char getOperationType() const;
+ virtual void setOperationType( unsigned char operationType );
+
+ virtual long long getTimeout() const;
+ virtual void setTimeout( long long timeout );
+
+ virtual const std::vector<BrokerId*>& getBrokerPath() const;
+ virtual std::vector<BrokerId*>& getBrokerPath();
+ virtual void setBrokerPath( const std::vector<BrokerId*>& brokerPath );
+
+ };
+
+}}
+
+#endif /*_ACTIVEMQ_COMMANDS_DESTINATIONINFO_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/DestinationInfo.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/DiscoveryEvent.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/DiscoveryEvent.cpp?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/DiscoveryEvent.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/DiscoveryEvent.cpp Sun Jan 11 08:36:02 2009
@@ -0,0 +1,145 @@
+/*
+ * 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/commands/DiscoveryEvent.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/exceptions/NullPointerException.h>
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace decaf::lang::exceptions;
+
+/*
+ *
+ * Command and marshaling code for OpenWire format for DiscoveryEvent
+ *
+ *
+ * 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
+ *
+ */
+////////////////////////////////////////////////////////////////////////////////
+DiscoveryEvent::DiscoveryEvent()
+{
+ this->serviceName = "";
+ this->brokerName = "";
+}
+
+////////////////////////////////////////////////////////////////////////////////
+DiscoveryEvent::~DiscoveryEvent()
+{
+}
+
+////////////////////////////////////////////////////////////////////////////////
+DiscoveryEvent* DiscoveryEvent::cloneDataStructure() const {
+ DiscoveryEvent* discoveryEvent = new DiscoveryEvent();
+
+ // Copy the data from the base class or classes
+ discoveryEvent->copyDataStructure( this );
+
+ return discoveryEvent;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DiscoveryEvent::copyDataStructure( const DataStructure* src ) {
+
+ // Copy the data of the base class or classes
+ BaseDataStructure::copyDataStructure( src );
+
+ const DiscoveryEvent* srcPtr = dynamic_cast<const DiscoveryEvent*>( src );
+
+ if( srcPtr == NULL || src == NULL ) {
+
+ throw decaf::lang::exceptions::NullPointerException(
+ __FILE__, __LINE__,
+ "DiscoveryEvent::copyDataStructure - src is NULL or invalid" );
+ }
+ this->setServiceName( srcPtr->getServiceName() );
+ this->setBrokerName( srcPtr->getBrokerName() );
+}
+
+////////////////////////////////////////////////////////////////////////////////
+unsigned char DiscoveryEvent::getDataStructureType() const {
+ return DiscoveryEvent::ID_DISCOVERYEVENT;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string DiscoveryEvent::toString() const {
+
+ ostringstream stream;
+
+ stream << "Begin Class = DiscoveryEvent" << std::endl;
+ stream << " Value of DiscoveryEvent::ID_DISCOVERYEVENT = 40" << std::endl;
+ stream << " Value of ServiceName = " << this->getServiceName() << std::endl;
+ stream << " Value of BrokerName = " << this->getBrokerName() << std::endl;
+ stream << BaseDataStructure::toString();
+ stream << "End Class = DiscoveryEvent" << std::endl;
+
+ return stream.str();
+}
+
+////////////////////////////////////////////////////////////////////////////////
+bool DiscoveryEvent::equals( const DataStructure* value ) const {
+ const DiscoveryEvent* valuePtr = dynamic_cast<const DiscoveryEvent*>( value );
+
+ if( valuePtr == NULL || value == NULL ) {
+ return false;
+ }
+ if( this->getServiceName() != valuePtr->getServiceName() ) {
+ return false;
+ }
+ if( this->getBrokerName() != valuePtr->getBrokerName() ) {
+ return false;
+ }
+ if( !BaseDataStructure::equals( value ) ) {
+ return false;
+ }
+ return true;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+const std::string& DiscoveryEvent::getServiceName() const {
+ return serviceName;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string& DiscoveryEvent::getServiceName() {
+ return serviceName;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DiscoveryEvent::setServiceName(const std::string& serviceName ) {
+ this->serviceName = serviceName;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+const std::string& DiscoveryEvent::getBrokerName() const {
+ return brokerName;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string& DiscoveryEvent::getBrokerName() {
+ return brokerName;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void DiscoveryEvent::setBrokerName(const std::string& brokerName ) {
+ this->brokerName = brokerName;
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/DiscoveryEvent.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/DiscoveryEvent.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/DiscoveryEvent.h?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/DiscoveryEvent.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/DiscoveryEvent.h Sun Jan 11 08:36:02 2009
@@ -0,0 +1,109 @@
+/*
+ * 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_COMMANDS_DISCOVERYEVENT_H_
+#define _ACTIVEMQ_COMMANDS_DISCOVERYEVENT_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/util/Config.h>
+#include <activemq/commands/BaseDataStructure.h>
+#include <vector>
+#include <string>
+
+namespace activemq{
+namespace commands{
+
+ /*
+ *
+ * Command and marshaling code for OpenWire format for DiscoveryEvent
+ *
+ *
+ * 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 DiscoveryEvent : public BaseDataStructure
+ {
+ protected:
+
+ std::string serviceName;
+ std::string brokerName;
+
+ public:
+
+ const static unsigned char ID_DISCOVERYEVENT = 40;
+
+ public:
+
+ DiscoveryEvent();
+ virtual ~DiscoveryEvent();
+
+ /**
+ * Get the unique identifier that this object and its own
+ * Marshaller share.
+ * @returns new DataStructure type copy.
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Clone this object and return a new instance that the
+ * caller now owns, this will be an exact copy of this one
+ * @returns new copy of this object.
+ */
+ virtual DiscoveryEvent* cloneDataStructure() const;
+
+ /**
+ * Copy the contents of the passed object into this object's
+ * members, overwriting any existing data.
+ * @param src - Source Object
+ */
+ virtual void copyDataStructure( const DataStructure* src );
+
+ /**
+ * Returns a string containing the information for this DataStructure
+ * such as its type and value of its elements.
+ * @return formatted string useful for debugging.
+ */
+ virtual std::string toString() const;
+
+ /**
+ * Compares the DataStructure passed in to this one, and returns if
+ * they are equivalent. Equivalent here means that they are of the
+ * same type, and that each element of the objects are the same.
+ * @returns true if DataStructure's are Equal.
+ */
+ virtual bool equals( const DataStructure* value ) const;
+
+ virtual const std::string& getServiceName() const;
+ virtual std::string& getServiceName();
+ virtual void setServiceName( const std::string& serviceName );
+
+ virtual const std::string& getBrokerName() const;
+ virtual std::string& getBrokerName();
+ virtual void setBrokerName( const std::string& brokerName );
+
+ };
+
+}}
+
+#endif /*_ACTIVEMQ_COMMANDS_DISCOVERYEVENT_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/DiscoveryEvent.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/ExceptionResponse.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/ExceptionResponse.cpp?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/ExceptionResponse.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/ExceptionResponse.cpp Sun Jan 11 08:36:02 2009
@@ -0,0 +1,138 @@
+/*
+ * 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/commands/ExceptionResponse.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/exceptions/NullPointerException.h>
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace decaf::lang::exceptions;
+
+/*
+ *
+ * Command and marshaling code for OpenWire format for ExceptionResponse
+ *
+ *
+ * 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
+ *
+ */
+////////////////////////////////////////////////////////////////////////////////
+ExceptionResponse::ExceptionResponse()
+{
+ this->exception = NULL;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ExceptionResponse::~ExceptionResponse()
+{
+ delete this->exception;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ExceptionResponse* ExceptionResponse::cloneDataStructure() const {
+ ExceptionResponse* exceptionResponse = new ExceptionResponse();
+
+ // Copy the data from the base class or classes
+ exceptionResponse->copyDataStructure( this );
+
+ return exceptionResponse;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void ExceptionResponse::copyDataStructure( const DataStructure* src ) {
+
+ // Copy the data of the base class or classes
+ Response::copyDataStructure( src );
+
+ const ExceptionResponse* srcPtr = dynamic_cast<const ExceptionResponse*>( src );
+
+ if( srcPtr == NULL || src == NULL ) {
+
+ throw decaf::lang::exceptions::NullPointerException(
+ __FILE__, __LINE__,
+ "ExceptionResponse::copyDataStructure - src is NULL or invalid" );
+ }
+ if( srcPtr->getException() != NULL ) {
+ this->setException(
+ dynamic_cast<BrokerError*>(
+ srcPtr->getException()->cloneDataStructure() ) );
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
+unsigned char ExceptionResponse::getDataStructureType() const {
+ return ExceptionResponse::ID_EXCEPTIONRESPONSE;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string ExceptionResponse::toString() const {
+
+ ostringstream stream;
+
+ stream << "Begin Class = ExceptionResponse" << std::endl;
+ stream << " Value of ExceptionResponse::ID_EXCEPTIONRESPONSE = 31" << std::endl;
+ stream << " Value of Exception is Below:" << std::endl;
+ if( this->getException() != NULL ) {
+ stream << this->getException()->toString() << std::endl;
+ } else {
+ stream << " Object is NULL" << std::endl;
+ }
+ stream << Response::toString();
+ stream << "End Class = ExceptionResponse" << std::endl;
+
+ return stream.str();
+}
+
+////////////////////////////////////////////////////////////////////////////////
+bool ExceptionResponse::equals( const DataStructure* value ) const {
+ const ExceptionResponse* valuePtr = dynamic_cast<const ExceptionResponse*>( value );
+
+ if( valuePtr == NULL || value == NULL ) {
+ return false;
+ }
+ if( this->getException() != NULL ) {
+ if( !this->getException()->equals( valuePtr->getException() ) ) {
+ return false;
+ }
+ } else if( valuePtr->getException() != NULL ) {
+ return false;
+ }
+ if( !Response::equals( value ) ) {
+ return false;
+ }
+ return true;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+const BrokerError* ExceptionResponse::getException() const {
+ return exception;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BrokerError* ExceptionResponse::getException() {
+ return exception;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void ExceptionResponse::setException(BrokerError* exception ) {
+ this->exception = exception;
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/ExceptionResponse.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/ExceptionResponse.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/ExceptionResponse.h?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/ExceptionResponse.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/ExceptionResponse.h Sun Jan 11 08:36:02 2009
@@ -0,0 +1,105 @@
+/*
+ * 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_COMMANDS_EXCEPTIONRESPONSE_H_
+#define _ACTIVEMQ_COMMANDS_EXCEPTIONRESPONSE_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/util/Config.h>
+#include <activemq/commands/Response.h>
+#include <activemq/commands/BrokerError.h>
+#include <vector>
+#include <string>
+
+namespace activemq{
+namespace commands{
+
+ /*
+ *
+ * Command and marshaling code for OpenWire format for ExceptionResponse
+ *
+ *
+ * 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 ExceptionResponse : public Response
+ {
+ protected:
+
+ BrokerError* exception;
+
+ public:
+
+ const static unsigned char ID_EXCEPTIONRESPONSE = 31;
+
+ public:
+
+ ExceptionResponse();
+ virtual ~ExceptionResponse();
+
+ /**
+ * Get the unique identifier that this object and its own
+ * Marshaller share.
+ * @returns new DataStructure type copy.
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Clone this object and return a new instance that the
+ * caller now owns, this will be an exact copy of this one
+ * @returns new copy of this object.
+ */
+ virtual ExceptionResponse* cloneDataStructure() const;
+
+ /**
+ * Copy the contents of the passed object into this object's
+ * members, overwriting any existing data.
+ * @param src - Source Object
+ */
+ virtual void copyDataStructure( const DataStructure* src );
+
+ /**
+ * Returns a string containing the information for this DataStructure
+ * such as its type and value of its elements.
+ * @return formatted string useful for debugging.
+ */
+ virtual std::string toString() const;
+
+ /**
+ * Compares the DataStructure passed in to this one, and returns if
+ * they are equivalent. Equivalent here means that they are of the
+ * same type, and that each element of the objects are the same.
+ * @returns true if DataStructure's are Equal.
+ */
+ virtual bool equals( const DataStructure* value ) const;
+
+ virtual const BrokerError* getException() const;
+ virtual BrokerError* getException();
+ virtual void setException( BrokerError* exception );
+
+ };
+
+}}
+
+#endif /*_ACTIVEMQ_COMMANDS_EXCEPTIONRESPONSE_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/ExceptionResponse.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/FlushCommand.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/FlushCommand.cpp?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/FlushCommand.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/FlushCommand.cpp Sun Jan 11 08:36:02 2009
@@ -0,0 +1,103 @@
+/*
+ * 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/commands/FlushCommand.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/exceptions/NullPointerException.h>
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace decaf::lang::exceptions;
+
+/*
+ *
+ * Command and marshaling code for OpenWire format for FlushCommand
+ *
+ *
+ * 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
+ *
+ */
+////////////////////////////////////////////////////////////////////////////////
+FlushCommand::FlushCommand()
+{
+}
+
+////////////////////////////////////////////////////////////////////////////////
+FlushCommand::~FlushCommand()
+{
+}
+
+////////////////////////////////////////////////////////////////////////////////
+FlushCommand* FlushCommand::cloneDataStructure() const {
+ FlushCommand* flushCommand = new FlushCommand();
+
+ // Copy the data from the base class or classes
+ flushCommand->copyDataStructure( this );
+
+ return flushCommand;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void FlushCommand::copyDataStructure( const DataStructure* src ) {
+
+ // Copy the data of the base class or classes
+ BaseCommand<transport::Command>::copyDataStructure( src );
+
+ const FlushCommand* srcPtr = dynamic_cast<const FlushCommand*>( src );
+
+ if( srcPtr == NULL || src == NULL ) {
+
+ throw decaf::lang::exceptions::NullPointerException(
+ __FILE__, __LINE__,
+ "FlushCommand::copyDataStructure - src is NULL or invalid" );
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
+unsigned char FlushCommand::getDataStructureType() const {
+ return FlushCommand::ID_FLUSHCOMMAND;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string FlushCommand::toString() const {
+
+ ostringstream stream;
+
+ stream << "Begin Class = FlushCommand" << std::endl;
+ stream << " Value of FlushCommand::ID_FLUSHCOMMAND = 15" << std::endl;
+ stream << BaseCommand<transport::Command>::toString();
+ stream << "End Class = FlushCommand" << std::endl;
+
+ return stream.str();
+}
+
+////////////////////////////////////////////////////////////////////////////////
+bool FlushCommand::equals( const DataStructure* value ) const {
+ const FlushCommand* valuePtr = dynamic_cast<const FlushCommand*>( value );
+
+ if( valuePtr == NULL || value == NULL ) {
+ return false;
+ }
+ if( !BaseCommand<transport::Command>::equals( value ) ) {
+ return false;
+ }
+ return true;
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/FlushCommand.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/FlushCommand.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/FlushCommand.h?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/FlushCommand.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/FlushCommand.h Sun Jan 11 08:36:02 2009
@@ -0,0 +1,99 @@
+/*
+ * 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_COMMANDS_FLUSHCOMMAND_H_
+#define _ACTIVEMQ_COMMANDS_FLUSHCOMMAND_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/util/Config.h>
+#include <activemq/commands/BaseCommand.h>
+#include <vector>
+#include <string>
+
+namespace activemq{
+namespace commands{
+
+ /*
+ *
+ * Command and marshaling code for OpenWire format for FlushCommand
+ *
+ *
+ * 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 FlushCommand : public BaseCommand<transport::Command>
+ {
+ protected:
+
+
+ public:
+
+ const static unsigned char ID_FLUSHCOMMAND = 15;
+
+ public:
+
+ FlushCommand();
+ virtual ~FlushCommand();
+
+ /**
+ * Get the unique identifier that this object and its own
+ * Marshaller share.
+ * @returns new DataStructure type copy.
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Clone this object and return a new instance that the
+ * caller now owns, this will be an exact copy of this one
+ * @returns new copy of this object.
+ */
+ virtual FlushCommand* cloneDataStructure() const;
+
+ /**
+ * Copy the contents of the passed object into this object's
+ * members, overwriting any existing data.
+ * @param src - Source Object
+ */
+ virtual void copyDataStructure( const DataStructure* src );
+
+ /**
+ * Returns a string containing the information for this DataStructure
+ * such as its type and value of its elements.
+ * @return formatted string useful for debugging.
+ */
+ virtual std::string toString() const;
+
+ /**
+ * Compares the DataStructure passed in to this one, and returns if
+ * they are equivalent. Equivalent here means that they are of the
+ * same type, and that each element of the objects are the same.
+ * @returns true if DataStructure's are Equal.
+ */
+ virtual bool equals( const DataStructure* value ) const;
+
+ };
+
+}}
+
+#endif /*_ACTIVEMQ_COMMANDS_FLUSHCOMMAND_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/FlushCommand.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/IntegerResponse.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/IntegerResponse.cpp?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/IntegerResponse.cpp (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/IntegerResponse.cpp Sun Jan 11 08:36:02 2009
@@ -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/commands/IntegerResponse.h>
+#include <activemq/exceptions/ActiveMQException.h>
+#include <decaf/lang/exceptions/NullPointerException.h>
+
+using namespace std;
+using namespace activemq;
+using namespace activemq::exceptions;
+using namespace activemq::commands;
+using namespace decaf::lang::exceptions;
+
+/*
+ *
+ * Command and marshaling code for OpenWire format for IntegerResponse
+ *
+ *
+ * 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
+ *
+ */
+////////////////////////////////////////////////////////////////////////////////
+IntegerResponse::IntegerResponse()
+{
+ this->result = 0;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+IntegerResponse::~IntegerResponse()
+{
+}
+
+////////////////////////////////////////////////////////////////////////////////
+IntegerResponse* IntegerResponse::cloneDataStructure() const {
+ IntegerResponse* integerResponse = new IntegerResponse();
+
+ // Copy the data from the base class or classes
+ integerResponse->copyDataStructure( this );
+
+ return integerResponse;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void IntegerResponse::copyDataStructure( const DataStructure* src ) {
+
+ // Copy the data of the base class or classes
+ Response::copyDataStructure( src );
+
+ const IntegerResponse* srcPtr = dynamic_cast<const IntegerResponse*>( src );
+
+ if( srcPtr == NULL || src == NULL ) {
+
+ throw decaf::lang::exceptions::NullPointerException(
+ __FILE__, __LINE__,
+ "IntegerResponse::copyDataStructure - src is NULL or invalid" );
+ }
+ this->setResult( srcPtr->getResult() );
+}
+
+////////////////////////////////////////////////////////////////////////////////
+unsigned char IntegerResponse::getDataStructureType() const {
+ return IntegerResponse::ID_INTEGERRESPONSE;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string IntegerResponse::toString() const {
+
+ ostringstream stream;
+
+ stream << "Begin Class = IntegerResponse" << std::endl;
+ stream << " Value of IntegerResponse::ID_INTEGERRESPONSE = 34" << std::endl;
+ stream << " Value of Result = " << this->getResult() << std::endl;
+ stream << Response::toString();
+ stream << "End Class = IntegerResponse" << std::endl;
+
+ return stream.str();
+}
+
+////////////////////////////////////////////////////////////////////////////////
+bool IntegerResponse::equals( const DataStructure* value ) const {
+ const IntegerResponse* valuePtr = dynamic_cast<const IntegerResponse*>( value );
+
+ if( valuePtr == NULL || value == NULL ) {
+ return false;
+ }
+ if( this->getResult() != valuePtr->getResult() ) {
+ return false;
+ }
+ if( !Response::equals( value ) ) {
+ return false;
+ }
+ return true;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+int IntegerResponse::getResult() const {
+ return result;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void IntegerResponse::setResult(int result ) {
+ this->result = result;
+}
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/IntegerResponse.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/activemq-cpp/trunk/src/main/activemq/commands/IntegerResponse.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/commands/IntegerResponse.h?rev=733487&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/commands/IntegerResponse.h (added)
+++ activemq/activemq-cpp/trunk/src/main/activemq/commands/IntegerResponse.h Sun Jan 11 08:36:02 2009
@@ -0,0 +1,103 @@
+/*
+ * 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_COMMANDS_INTEGERRESPONSE_H_
+#define _ACTIVEMQ_COMMANDS_INTEGERRESPONSE_H_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <activemq/util/Config.h>
+#include <activemq/commands/Response.h>
+#include <vector>
+#include <string>
+
+namespace activemq{
+namespace commands{
+
+ /*
+ *
+ * Command and marshaling code for OpenWire format for IntegerResponse
+ *
+ *
+ * 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 IntegerResponse : public Response
+ {
+ protected:
+
+ int result;
+
+ public:
+
+ const static unsigned char ID_INTEGERRESPONSE = 34;
+
+ public:
+
+ IntegerResponse();
+ virtual ~IntegerResponse();
+
+ /**
+ * Get the unique identifier that this object and its own
+ * Marshaller share.
+ * @returns new DataStructure type copy.
+ */
+ virtual unsigned char getDataStructureType() const;
+
+ /**
+ * Clone this object and return a new instance that the
+ * caller now owns, this will be an exact copy of this one
+ * @returns new copy of this object.
+ */
+ virtual IntegerResponse* cloneDataStructure() const;
+
+ /**
+ * Copy the contents of the passed object into this object's
+ * members, overwriting any existing data.
+ * @param src - Source Object
+ */
+ virtual void copyDataStructure( const DataStructure* src );
+
+ /**
+ * Returns a string containing the information for this DataStructure
+ * such as its type and value of its elements.
+ * @return formatted string useful for debugging.
+ */
+ virtual std::string toString() const;
+
+ /**
+ * Compares the DataStructure passed in to this one, and returns if
+ * they are equivalent. Equivalent here means that they are of the
+ * same type, and that each element of the objects are the same.
+ * @returns true if DataStructure's are Equal.
+ */
+ virtual bool equals( const DataStructure* value ) const;
+
+ virtual int getResult() const;
+ virtual void setResult( int result );
+
+ };
+
+}}
+
+#endif /*_ACTIVEMQ_COMMANDS_INTEGERRESPONSE_H_*/
+
Propchange: activemq/activemq-cpp/trunk/src/main/activemq/commands/IntegerResponse.h
------------------------------------------------------------------------------
svn:eol-style = native