You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by nm...@apache.org on 2006/05/15 15:39:33 UTC
svn commit: r406628 [6/10] - in /incubator/activemq/trunk/openwire-cpp: ./
src/gram/java/org/apache/activemq/openwire/tool/ src/gram/script/
src/main/cpp/activemq/ src/main/cpp/activemq/command/
src/main/cpp/activemq/protocol/ src/main/cpp/activemq/pro...
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatch.cpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatch.cpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatch.cpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatch.cpp Mon May 15 06:38:57 2006
@@ -1,113 +1,111 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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/command/MessageDispatch.hpp"
-
-using namespace apache::activemq::command;
-
-/*
- *
- * Marshalling code for Open Wire Format for MessageDispatch
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-MessageDispatch::MessageDispatch()
-{
- this->consumerId = NULL ;
- this->destination = NULL ;
- this->message = NULL ;
- this->redeliveryCounter = 0 ;
-}
-
-MessageDispatch::~MessageDispatch()
-{
-}
-
-unsigned char MessageDispatch::getDataStructureType()
-{
- return MessageDispatch::TYPE ;
-}
-
-
-p<ConsumerId> MessageDispatch::getConsumerId()
-{
- return consumerId ;
-}
-
-void MessageDispatch::setConsumerId(p<ConsumerId> consumerId)
-{
- this->consumerId = consumerId ;
-}
-
-
-p<ActiveMQDestination> MessageDispatch::getDestination()
-{
- return destination ;
-}
-
-void MessageDispatch::setDestination(p<ActiveMQDestination> destination)
-{
- this->destination = destination ;
-}
-
-
-p<Message> MessageDispatch::getMessage()
-{
- return message ;
-}
-
-void MessageDispatch::setMessage(p<Message> message)
-{
- this->message = message ;
-}
-
-
-int MessageDispatch::getRedeliveryCounter()
-{
- return redeliveryCounter ;
-}
-
-void MessageDispatch::setRedeliveryCounter(int redeliveryCounter)
-{
- this->redeliveryCounter = redeliveryCounter ;
-}
-
-int MessageDispatch::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException)
-{
- int size = 0 ;
-
- size += marshaller->marshalInt(commandId, mode, writer) ;
- size += marshaller->marshalBoolean(responseRequired, mode, writer) ;
- size += marshaller->marshalObject(consumerId, mode, writer) ;
- size += marshaller->marshalObject(destination, mode, writer) ;
- size += marshaller->marshalObject(message, mode, writer) ;
- size += marshaller->marshalInt(redeliveryCounter, mode, writer) ;
- return size ;
-}
-
-void MessageDispatch::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException)
-{
- commandId = marshaller->unmarshalInt(mode, reader) ;
- responseRequired = marshaller->unmarshalBoolean(mode, reader) ;
- consumerId = p_cast<ConsumerId>(marshaller->unmarshalObject(mode, reader)) ;
- destination = p_cast<ActiveMQDestination>(marshaller->unmarshalObject(mode, reader)) ;
- message = p_cast<Message>(marshaller->unmarshalObject(mode, reader)) ;
- redeliveryCounter = (marshaller->unmarshalInt(mode, reader)) ;
-}
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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/command/MessageDispatch.hpp"
+
+using namespace apache::activemq::command;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for MessageDispatch
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+MessageDispatch::MessageDispatch()
+{
+ this->consumerId = NULL ;
+ this->destination = NULL ;
+ this->message = NULL ;
+ this->redeliveryCounter = 0 ;
+}
+
+MessageDispatch::~MessageDispatch()
+{
+}
+
+unsigned char MessageDispatch::getDataStructureType()
+{
+ return MessageDispatch::TYPE ;
+}
+
+
+p<ConsumerId> MessageDispatch::getConsumerId()
+{
+ return consumerId ;
+}
+
+void MessageDispatch::setConsumerId(p<ConsumerId> consumerId)
+{
+ this->consumerId = consumerId ;
+}
+
+
+p<ActiveMQDestination> MessageDispatch::getDestination()
+{
+ return destination ;
+}
+
+void MessageDispatch::setDestination(p<ActiveMQDestination> destination)
+{
+ this->destination = destination ;
+}
+
+
+p<Message> MessageDispatch::getMessage()
+{
+ return message ;
+}
+
+void MessageDispatch::setMessage(p<Message> message)
+{
+ this->message = message ;
+}
+
+
+int MessageDispatch::getRedeliveryCounter()
+{
+ return redeliveryCounter ;
+}
+
+void MessageDispatch::setRedeliveryCounter(int redeliveryCounter)
+{
+ this->redeliveryCounter = redeliveryCounter ;
+}
+
+int MessageDispatch::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException)
+{
+ int size = 0 ;
+
+ size += BaseCommand::marshal(marshaller, mode, ostream) ;
+ size += marshaller->marshalObject(consumerId, mode, ostream) ;
+ size += marshaller->marshalObject(destination, mode, ostream) ;
+ size += marshaller->marshalObject(message, mode, ostream) ;
+ size += marshaller->marshalInt(redeliveryCounter, mode, ostream) ;
+ return size ;
+}
+
+void MessageDispatch::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException)
+{
+ BaseCommand::unmarshal(marshaller, mode, istream) ;
+ consumerId = p_cast<ConsumerId>(marshaller->unmarshalObject(mode, istream)) ;
+ destination = p_cast<ActiveMQDestination>(marshaller->unmarshalObject(mode, istream)) ;
+ message = p_cast<Message>(marshaller->unmarshalObject(mode, istream)) ;
+ redeliveryCounter = (marshaller->unmarshalInt(mode, istream)) ;
+}
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatch.hpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatch.hpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatch.hpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatch.hpp Mon May 15 06:38:57 2006
@@ -1,97 +1,98 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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_MessageDispatch_hpp_
-#define ActiveMQ_MessageDispatch_hpp_
-
-// Turn off warning message for ignored exception specification
-#ifdef _MSC_VER
-#pragma warning( disable : 4290 )
-#endif
-
-#include <string>
-#include "activemq/command/BaseCommand.hpp"
-#include "activemq/command/ConsumerId.hpp"
-#include "activemq/command/ActiveMQDestination.hpp"
-#include "activemq/command/Message.hpp"
-#include "activemq/protocol/IMarshaller.hpp"
-#include "ppr/io/IOutputStream.hpp"
-#include "ppr/io/IInputStream.hpp"
-#include "ppr/io/IOException.hpp"
-#include "ppr/util/ifr/array"
-#include "ppr/util/ifr/p"
-
-namespace apache
-{
- namespace activemq
- {
- namespace command
- {
- using namespace ifr;
- using namespace std;
- using namespace apache::activemq;
- using namespace apache::activemq::protocol;
- using namespace apache::ppr::io;
-
-/*
- *
- * Marshalling code for Open Wire Format for MessageDispatch
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-class MessageDispatch : public BaseCommand
-{
-protected:
- p<ConsumerId> consumerId ;
- p<ActiveMQDestination> destination ;
- p<Message> message ;
- int redeliveryCounter ;
-
-public:
- const static unsigned char TYPE = 21;
-
-public:
- MessageDispatch() ;
- virtual ~MessageDispatch() ;
-
- virtual unsigned char getDataStructureType() ;
-
- virtual p<ConsumerId> getConsumerId() ;
- virtual void setConsumerId(p<ConsumerId> consumerId) ;
-
- virtual p<ActiveMQDestination> getDestination() ;
- virtual void setDestination(p<ActiveMQDestination> destination) ;
-
- virtual p<Message> getMessage() ;
- virtual void setMessage(p<Message> message) ;
-
- virtual int getRedeliveryCounter() ;
- virtual void setRedeliveryCounter(int redeliveryCounter) ;
-
- virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException) ;
- virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException) ;
-} ;
-
-/* namespace */
- }
- }
-}
-
-#endif /*ActiveMQ_MessageDispatch_hpp_*/
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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_MessageDispatch_hpp_
+#define ActiveMQ_MessageDispatch_hpp_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <string>
+#include "activemq/command/BaseCommand.hpp"
+#include "activemq/command/ConsumerId.hpp"
+#include "activemq/command/ActiveMQDestination.hpp"
+#include "activemq/command/Message.hpp"
+
+#include "activemq/protocol/IMarshaller.hpp"
+#include "ppr/io/IOutputStream.hpp"
+#include "ppr/io/IInputStream.hpp"
+#include "ppr/io/IOException.hpp"
+#include "ppr/util/ifr/array"
+#include "ppr/util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace std;
+ using namespace apache::activemq;
+ using namespace apache::activemq::protocol;
+ using namespace apache::ppr::io;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for MessageDispatch
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+class MessageDispatch : public BaseCommand
+{
+protected:
+ p<ConsumerId> consumerId ;
+ p<ActiveMQDestination> destination ;
+ p<Message> message ;
+ int redeliveryCounter ;
+
+public:
+ const static unsigned char TYPE = 21;
+
+public:
+ MessageDispatch() ;
+ virtual ~MessageDispatch() ;
+
+ virtual unsigned char getDataStructureType() ;
+
+ virtual p<ConsumerId> getConsumerId() ;
+ virtual void setConsumerId(p<ConsumerId> consumerId) ;
+
+ virtual p<ActiveMQDestination> getDestination() ;
+ virtual void setDestination(p<ActiveMQDestination> destination) ;
+
+ virtual p<Message> getMessage() ;
+ virtual void setMessage(p<Message> message) ;
+
+ virtual int getRedeliveryCounter() ;
+ virtual void setRedeliveryCounter(int redeliveryCounter) ;
+
+ virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException) ;
+ virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException) ;
+} ;
+
+/* namespace */
+ }
+ }
+}
+
+#endif /*ActiveMQ_MessageDispatch_hpp_*/
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatchNotification.cpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatchNotification.cpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatchNotification.cpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatchNotification.cpp Mon May 15 06:38:57 2006
@@ -1,113 +1,111 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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/command/MessageDispatchNotification.hpp"
-
-using namespace apache::activemq::command;
-
-/*
- *
- * Marshalling code for Open Wire Format for MessageDispatchNotification
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-MessageDispatchNotification::MessageDispatchNotification()
-{
- this->consumerId = NULL ;
- this->destination = NULL ;
- this->deliverySequenceId = 0 ;
- this->messageId = NULL ;
-}
-
-MessageDispatchNotification::~MessageDispatchNotification()
-{
-}
-
-unsigned char MessageDispatchNotification::getDataStructureType()
-{
- return MessageDispatchNotification::TYPE ;
-}
-
-
-p<ConsumerId> MessageDispatchNotification::getConsumerId()
-{
- return consumerId ;
-}
-
-void MessageDispatchNotification::setConsumerId(p<ConsumerId> consumerId)
-{
- this->consumerId = consumerId ;
-}
-
-
-p<ActiveMQDestination> MessageDispatchNotification::getDestination()
-{
- return destination ;
-}
-
-void MessageDispatchNotification::setDestination(p<ActiveMQDestination> destination)
-{
- this->destination = destination ;
-}
-
-
-long long MessageDispatchNotification::getDeliverySequenceId()
-{
- return deliverySequenceId ;
-}
-
-void MessageDispatchNotification::setDeliverySequenceId(long long deliverySequenceId)
-{
- this->deliverySequenceId = deliverySequenceId ;
-}
-
-
-p<MessageId> MessageDispatchNotification::getMessageId()
-{
- return messageId ;
-}
-
-void MessageDispatchNotification::setMessageId(p<MessageId> messageId)
-{
- this->messageId = messageId ;
-}
-
-int MessageDispatchNotification::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException)
-{
- int size = 0 ;
-
- size += marshaller->marshalInt(commandId, mode, writer) ;
- size += marshaller->marshalBoolean(responseRequired, mode, writer) ;
- size += marshaller->marshalObject(consumerId, mode, writer) ;
- size += marshaller->marshalObject(destination, mode, writer) ;
- size += marshaller->marshalLong(deliverySequenceId, mode, writer) ;
- size += marshaller->marshalObject(messageId, mode, writer) ;
- return size ;
-}
-
-void MessageDispatchNotification::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException)
-{
- commandId = marshaller->unmarshalInt(mode, reader) ;
- responseRequired = marshaller->unmarshalBoolean(mode, reader) ;
- consumerId = p_cast<ConsumerId>(marshaller->unmarshalObject(mode, reader)) ;
- destination = p_cast<ActiveMQDestination>(marshaller->unmarshalObject(mode, reader)) ;
- deliverySequenceId = (marshaller->unmarshalLong(mode, reader)) ;
- messageId = p_cast<MessageId>(marshaller->unmarshalObject(mode, reader)) ;
-}
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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/command/MessageDispatchNotification.hpp"
+
+using namespace apache::activemq::command;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for MessageDispatchNotification
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+MessageDispatchNotification::MessageDispatchNotification()
+{
+ this->consumerId = NULL ;
+ this->destination = NULL ;
+ this->deliverySequenceId = 0 ;
+ this->messageId = NULL ;
+}
+
+MessageDispatchNotification::~MessageDispatchNotification()
+{
+}
+
+unsigned char MessageDispatchNotification::getDataStructureType()
+{
+ return MessageDispatchNotification::TYPE ;
+}
+
+
+p<ConsumerId> MessageDispatchNotification::getConsumerId()
+{
+ return consumerId ;
+}
+
+void MessageDispatchNotification::setConsumerId(p<ConsumerId> consumerId)
+{
+ this->consumerId = consumerId ;
+}
+
+
+p<ActiveMQDestination> MessageDispatchNotification::getDestination()
+{
+ return destination ;
+}
+
+void MessageDispatchNotification::setDestination(p<ActiveMQDestination> destination)
+{
+ this->destination = destination ;
+}
+
+
+long long MessageDispatchNotification::getDeliverySequenceId()
+{
+ return deliverySequenceId ;
+}
+
+void MessageDispatchNotification::setDeliverySequenceId(long long deliverySequenceId)
+{
+ this->deliverySequenceId = deliverySequenceId ;
+}
+
+
+p<MessageId> MessageDispatchNotification::getMessageId()
+{
+ return messageId ;
+}
+
+void MessageDispatchNotification::setMessageId(p<MessageId> messageId)
+{
+ this->messageId = messageId ;
+}
+
+int MessageDispatchNotification::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException)
+{
+ int size = 0 ;
+
+ size += BaseCommand::marshal(marshaller, mode, ostream) ;
+ size += marshaller->marshalObject(consumerId, mode, ostream) ;
+ size += marshaller->marshalObject(destination, mode, ostream) ;
+ size += marshaller->marshalLong(deliverySequenceId, mode, ostream) ;
+ size += marshaller->marshalObject(messageId, mode, ostream) ;
+ return size ;
+}
+
+void MessageDispatchNotification::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException)
+{
+ BaseCommand::unmarshal(marshaller, mode, istream) ;
+ consumerId = p_cast<ConsumerId>(marshaller->unmarshalObject(mode, istream)) ;
+ destination = p_cast<ActiveMQDestination>(marshaller->unmarshalObject(mode, istream)) ;
+ deliverySequenceId = (marshaller->unmarshalLong(mode, istream)) ;
+ messageId = p_cast<MessageId>(marshaller->unmarshalObject(mode, istream)) ;
+}
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatchNotification.hpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatchNotification.hpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatchNotification.hpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageDispatchNotification.hpp Mon May 15 06:38:57 2006
@@ -1,97 +1,98 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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_MessageDispatchNotification_hpp_
-#define ActiveMQ_MessageDispatchNotification_hpp_
-
-// Turn off warning message for ignored exception specification
-#ifdef _MSC_VER
-#pragma warning( disable : 4290 )
-#endif
-
-#include <string>
-#include "activemq/command/BaseCommand.hpp"
-#include "activemq/command/ConsumerId.hpp"
-#include "activemq/command/ActiveMQDestination.hpp"
-#include "activemq/command/MessageId.hpp"
-#include "activemq/protocol/IMarshaller.hpp"
-#include "ppr/io/IOutputStream.hpp"
-#include "ppr/io/IInputStream.hpp"
-#include "ppr/io/IOException.hpp"
-#include "ppr/util/ifr/array"
-#include "ppr/util/ifr/p"
-
-namespace apache
-{
- namespace activemq
- {
- namespace command
- {
- using namespace ifr;
- using namespace std;
- using namespace apache::activemq;
- using namespace apache::activemq::protocol;
- using namespace apache::ppr::io;
-
-/*
- *
- * Marshalling code for Open Wire Format for MessageDispatchNotification
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-class MessageDispatchNotification : public BaseCommand
-{
-protected:
- p<ConsumerId> consumerId ;
- p<ActiveMQDestination> destination ;
- long long deliverySequenceId ;
- p<MessageId> messageId ;
-
-public:
- const static unsigned char TYPE = 90;
-
-public:
- MessageDispatchNotification() ;
- virtual ~MessageDispatchNotification() ;
-
- virtual unsigned char getDataStructureType() ;
-
- virtual p<ConsumerId> getConsumerId() ;
- virtual void setConsumerId(p<ConsumerId> consumerId) ;
-
- virtual p<ActiveMQDestination> getDestination() ;
- virtual void setDestination(p<ActiveMQDestination> destination) ;
-
- virtual long long getDeliverySequenceId() ;
- virtual void setDeliverySequenceId(long long deliverySequenceId) ;
-
- virtual p<MessageId> getMessageId() ;
- virtual void setMessageId(p<MessageId> messageId) ;
-
- virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException) ;
- virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException) ;
-} ;
-
-/* namespace */
- }
- }
-}
-
-#endif /*ActiveMQ_MessageDispatchNotification_hpp_*/
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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_MessageDispatchNotification_hpp_
+#define ActiveMQ_MessageDispatchNotification_hpp_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <string>
+#include "activemq/command/BaseCommand.hpp"
+#include "activemq/command/ConsumerId.hpp"
+#include "activemq/command/ActiveMQDestination.hpp"
+#include "activemq/command/MessageId.hpp"
+
+#include "activemq/protocol/IMarshaller.hpp"
+#include "ppr/io/IOutputStream.hpp"
+#include "ppr/io/IInputStream.hpp"
+#include "ppr/io/IOException.hpp"
+#include "ppr/util/ifr/array"
+#include "ppr/util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace std;
+ using namespace apache::activemq;
+ using namespace apache::activemq::protocol;
+ using namespace apache::ppr::io;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for MessageDispatchNotification
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+class MessageDispatchNotification : public BaseCommand
+{
+protected:
+ p<ConsumerId> consumerId ;
+ p<ActiveMQDestination> destination ;
+ long long deliverySequenceId ;
+ p<MessageId> messageId ;
+
+public:
+ const static unsigned char TYPE = 90;
+
+public:
+ MessageDispatchNotification() ;
+ virtual ~MessageDispatchNotification() ;
+
+ virtual unsigned char getDataStructureType() ;
+
+ virtual p<ConsumerId> getConsumerId() ;
+ virtual void setConsumerId(p<ConsumerId> consumerId) ;
+
+ virtual p<ActiveMQDestination> getDestination() ;
+ virtual void setDestination(p<ActiveMQDestination> destination) ;
+
+ virtual long long getDeliverySequenceId() ;
+ virtual void setDeliverySequenceId(long long deliverySequenceId) ;
+
+ virtual p<MessageId> getMessageId() ;
+ virtual void setMessageId(p<MessageId> messageId) ;
+
+ virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException) ;
+ virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException) ;
+} ;
+
+/* namespace */
+ }
+ }
+}
+
+#endif /*ActiveMQ_MessageDispatchNotification_hpp_*/
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageId.cpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageId.cpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageId.cpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageId.cpp Mon May 15 06:38:57 2006
@@ -1,95 +1,97 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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/command/MessageId.hpp"
-
-using namespace apache::activemq::command;
-
-/*
- *
- * Marshalling code for Open Wire Format for MessageId
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-MessageId::MessageId()
-{
- this->producerId = NULL ;
- this->producerSequenceId = 0 ;
- this->brokerSequenceId = 0 ;
-}
-
-MessageId::~MessageId()
-{
-}
-
-unsigned char MessageId::getDataStructureType()
-{
- return MessageId::TYPE ;
-}
-
-
-p<ProducerId> MessageId::getProducerId()
-{
- return producerId ;
-}
-
-void MessageId::setProducerId(p<ProducerId> producerId)
-{
- this->producerId = producerId ;
-}
-
-
-long long MessageId::getProducerSequenceId()
-{
- return producerSequenceId ;
-}
-
-void MessageId::setProducerSequenceId(long long producerSequenceId)
-{
- this->producerSequenceId = producerSequenceId ;
-}
-
-
-long long MessageId::getBrokerSequenceId()
-{
- return brokerSequenceId ;
-}
-
-void MessageId::setBrokerSequenceId(long long brokerSequenceId)
-{
- this->brokerSequenceId = brokerSequenceId ;
-}
-
-int MessageId::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException)
-{
- int size = 0 ;
-
- size += marshaller->marshalObject(producerId, mode, writer) ;
- size += marshaller->marshalLong(producerSequenceId, mode, writer) ;
- size += marshaller->marshalLong(brokerSequenceId, mode, writer) ;
- return size ;
-}
-
-void MessageId::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException)
-{
- producerId = p_cast<ProducerId>(marshaller->unmarshalObject(mode, reader)) ;
- producerSequenceId = (marshaller->unmarshalLong(mode, reader)) ;
- brokerSequenceId = (marshaller->unmarshalLong(mode, reader)) ;
-}
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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/command/MessageId.hpp"
+
+using namespace apache::activemq::command;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for MessageId
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+MessageId::MessageId()
+{
+ this->producerId = NULL ;
+ this->producerSequenceId = 0 ;
+ this->brokerSequenceId = 0 ;
+}
+
+MessageId::~MessageId()
+{
+}
+
+unsigned char MessageId::getDataStructureType()
+{
+ return MessageId::TYPE ;
+}
+
+
+p<ProducerId> MessageId::getProducerId()
+{
+ return producerId ;
+}
+
+void MessageId::setProducerId(p<ProducerId> producerId)
+{
+ this->producerId = producerId ;
+}
+
+
+long long MessageId::getProducerSequenceId()
+{
+ return producerSequenceId ;
+}
+
+void MessageId::setProducerSequenceId(long long producerSequenceId)
+{
+ this->producerSequenceId = producerSequenceId ;
+}
+
+
+long long MessageId::getBrokerSequenceId()
+{
+ return brokerSequenceId ;
+}
+
+void MessageId::setBrokerSequenceId(long long brokerSequenceId)
+{
+ this->brokerSequenceId = brokerSequenceId ;
+}
+
+int MessageId::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException)
+{
+ int size = 0 ;
+
+ size += BaseDataStructure::marshal(marshaller, mode, ostream) ;
+ size += marshaller->marshalObject(producerId, mode, ostream) ;
+ size += marshaller->marshalLong(producerSequenceId, mode, ostream) ;
+ size += marshaller->marshalLong(brokerSequenceId, mode, ostream) ;
+ return size ;
+}
+
+void MessageId::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException)
+{
+ BaseDataStructure::unmarshal(marshaller, mode, istream) ;
+ producerId = p_cast<ProducerId>(marshaller->unmarshalObject(mode, istream)) ;
+ producerSequenceId = (marshaller->unmarshalLong(mode, istream)) ;
+ brokerSequenceId = (marshaller->unmarshalLong(mode, istream)) ;
+}
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageId.hpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageId.hpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageId.hpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/MessageId.hpp Mon May 15 06:38:57 2006
@@ -1,91 +1,92 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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_MessageId_hpp_
-#define ActiveMQ_MessageId_hpp_
-
-// Turn off warning message for ignored exception specification
-#ifdef _MSC_VER
-#pragma warning( disable : 4290 )
-#endif
-
-#include <string>
-#include "activemq/command/AbstractCommand.hpp"
-#include "activemq/command/ProducerId.hpp"
-#include "activemq/protocol/IMarshaller.hpp"
-#include "ppr/io/IOutputStream.hpp"
-#include "ppr/io/IInputStream.hpp"
-#include "ppr/io/IOException.hpp"
-#include "ppr/util/ifr/array"
-#include "ppr/util/ifr/p"
-
-namespace apache
-{
- namespace activemq
- {
- namespace command
- {
- using namespace ifr;
- using namespace std;
- using namespace apache::activemq;
- using namespace apache::activemq::protocol;
- using namespace apache::ppr::io;
-
-/*
- *
- * Marshalling code for Open Wire Format for MessageId
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-class MessageId : public AbstractCommand
-{
-protected:
- p<ProducerId> producerId ;
- long long producerSequenceId ;
- long long brokerSequenceId ;
-
-public:
- const static unsigned char TYPE = 110;
-
-public:
- MessageId() ;
- virtual ~MessageId() ;
-
- virtual unsigned char getDataStructureType() ;
-
- virtual p<ProducerId> getProducerId() ;
- virtual void setProducerId(p<ProducerId> producerId) ;
-
- virtual long long getProducerSequenceId() ;
- virtual void setProducerSequenceId(long long producerSequenceId) ;
-
- virtual long long getBrokerSequenceId() ;
- virtual void setBrokerSequenceId(long long brokerSequenceId) ;
-
- virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException) ;
- virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException) ;
-} ;
-
-/* namespace */
- }
- }
-}
-
-#endif /*ActiveMQ_MessageId_hpp_*/
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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_MessageId_hpp_
+#define ActiveMQ_MessageId_hpp_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <string>
+#include "activemq/command/BaseDataStructure.hpp"
+#include "activemq/command/ProducerId.hpp"
+
+#include "activemq/protocol/IMarshaller.hpp"
+#include "ppr/io/IOutputStream.hpp"
+#include "ppr/io/IInputStream.hpp"
+#include "ppr/io/IOException.hpp"
+#include "ppr/util/ifr/array"
+#include "ppr/util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace std;
+ using namespace apache::activemq;
+ using namespace apache::activemq::protocol;
+ using namespace apache::ppr::io;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for MessageId
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+class MessageId : public BaseDataStructure
+{
+protected:
+ p<ProducerId> producerId ;
+ long long producerSequenceId ;
+ long long brokerSequenceId ;
+
+public:
+ const static unsigned char TYPE = 110;
+
+public:
+ MessageId() ;
+ virtual ~MessageId() ;
+
+ virtual unsigned char getDataStructureType() ;
+
+ virtual p<ProducerId> getProducerId() ;
+ virtual void setProducerId(p<ProducerId> producerId) ;
+
+ virtual long long getProducerSequenceId() ;
+ virtual void setProducerSequenceId(long long producerSequenceId) ;
+
+ virtual long long getBrokerSequenceId() ;
+ virtual void setBrokerSequenceId(long long brokerSequenceId) ;
+
+ virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException) ;
+ virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException) ;
+} ;
+
+/* namespace */
+ }
+ }
+}
+
+#endif /*ActiveMQ_MessageId_hpp_*/
Added: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/NetworkBridgeFilter.cpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/NetworkBridgeFilter.cpp?rev=406628&view=auto
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/NetworkBridgeFilter.cpp (added)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/NetworkBridgeFilter.cpp Mon May 15 06:38:57 2006
@@ -0,0 +1,83 @@
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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/command/NetworkBridgeFilter.hpp"
+
+using namespace apache::activemq::command;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for NetworkBridgeFilter
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+NetworkBridgeFilter::NetworkBridgeFilter()
+{
+ this->networkTTL = 0 ;
+ this->networkBrokerId = NULL ;
+}
+
+NetworkBridgeFilter::~NetworkBridgeFilter()
+{
+}
+
+unsigned char NetworkBridgeFilter::getDataStructureType()
+{
+ return NetworkBridgeFilter::TYPE ;
+}
+
+
+int NetworkBridgeFilter::getNetworkTTL()
+{
+ return networkTTL ;
+}
+
+void NetworkBridgeFilter::setNetworkTTL(int networkTTL)
+{
+ this->networkTTL = networkTTL ;
+}
+
+
+p<BrokerId> NetworkBridgeFilter::getNetworkBrokerId()
+{
+ return networkBrokerId ;
+}
+
+void NetworkBridgeFilter::setNetworkBrokerId(p<BrokerId> networkBrokerId)
+{
+ this->networkBrokerId = networkBrokerId ;
+}
+
+int NetworkBridgeFilter::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException)
+{
+ int size = 0 ;
+
+ size += BaseDataStructure::marshal(marshaller, mode, ostream) ;
+ size += marshaller->marshalInt(networkTTL, mode, ostream) ;
+ size += marshaller->marshalObject(networkBrokerId, mode, ostream) ;
+ return size ;
+}
+
+void NetworkBridgeFilter::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException)
+{
+ BaseDataStructure::unmarshal(marshaller, mode, istream) ;
+ networkTTL = (marshaller->unmarshalInt(mode, istream)) ;
+ networkBrokerId = p_cast<BrokerId>(marshaller->unmarshalObject(mode, istream)) ;
+}
Added: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/NetworkBridgeFilter.hpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/NetworkBridgeFilter.hpp?rev=406628&view=auto
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/NetworkBridgeFilter.hpp (added)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/NetworkBridgeFilter.hpp Mon May 15 06:38:57 2006
@@ -0,0 +1,88 @@
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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_NetworkBridgeFilter_hpp_
+#define ActiveMQ_NetworkBridgeFilter_hpp_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <string>
+#include "activemq/command/BaseDataStructure.hpp"
+#include "activemq/command/BrokerId.hpp"
+
+#include "activemq/protocol/IMarshaller.hpp"
+#include "ppr/io/IOutputStream.hpp"
+#include "ppr/io/IInputStream.hpp"
+#include "ppr/io/IOException.hpp"
+#include "ppr/util/ifr/array"
+#include "ppr/util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace std;
+ using namespace apache::activemq;
+ using namespace apache::activemq::protocol;
+ using namespace apache::ppr::io;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for NetworkBridgeFilter
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+class NetworkBridgeFilter : public BaseDataStructure
+{
+protected:
+ int networkTTL ;
+ p<BrokerId> networkBrokerId ;
+
+public:
+ const static unsigned char TYPE = 91;
+
+public:
+ NetworkBridgeFilter() ;
+ virtual ~NetworkBridgeFilter() ;
+
+ virtual unsigned char getDataStructureType() ;
+
+ virtual int getNetworkTTL() ;
+ virtual void setNetworkTTL(int networkTTL) ;
+
+ virtual p<BrokerId> getNetworkBrokerId() ;
+ virtual void setNetworkBrokerId(p<BrokerId> networkBrokerId) ;
+
+ virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException) ;
+ virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException) ;
+} ;
+
+/* namespace */
+ }
+ }
+}
+
+#endif /*ActiveMQ_NetworkBridgeFilter_hpp_*/
Added: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/PartialCommand.cpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/PartialCommand.cpp?rev=406628&view=auto
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/PartialCommand.cpp (added)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/PartialCommand.cpp Mon May 15 06:38:57 2006
@@ -0,0 +1,83 @@
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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/command/PartialCommand.hpp"
+
+using namespace apache::activemq::command;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for PartialCommand
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+PartialCommand::PartialCommand()
+{
+ this->commandId = 0 ;
+ this->data = NULL ;
+}
+
+PartialCommand::~PartialCommand()
+{
+}
+
+unsigned char PartialCommand::getDataStructureType()
+{
+ return PartialCommand::TYPE ;
+}
+
+
+int PartialCommand::getCommandId()
+{
+ return commandId ;
+}
+
+void PartialCommand::setCommandId(int commandId)
+{
+ this->commandId = commandId ;
+}
+
+
+array<char> PartialCommand::getData()
+{
+ return data ;
+}
+
+void PartialCommand::setData(array<char> data)
+{
+ this->data = data ;
+}
+
+int PartialCommand::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException)
+{
+ int size = 0 ;
+
+ size += BaseDataStructure::marshal(marshaller, mode, ostream) ;
+ size += marshaller->marshalInt(commandId, mode, ostream) ;
+ size += marshaller->marshalByteArray(data, mode, ostream) ;
+ return size ;
+}
+
+void PartialCommand::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException)
+{
+ BaseDataStructure::unmarshal(marshaller, mode, istream) ;
+ commandId = (marshaller->unmarshalInt(mode, istream)) ;
+ data = (marshaller->unmarshalByteArray(mode, istream)) ;
+}
Added: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/PartialCommand.hpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/PartialCommand.hpp?rev=406628&view=auto
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/PartialCommand.hpp (added)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/PartialCommand.hpp Mon May 15 06:38:57 2006
@@ -0,0 +1,87 @@
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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_PartialCommand_hpp_
+#define ActiveMQ_PartialCommand_hpp_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <string>
+#include "activemq/command/BaseDataStructure.hpp"
+
+#include "activemq/protocol/IMarshaller.hpp"
+#include "ppr/io/IOutputStream.hpp"
+#include "ppr/io/IInputStream.hpp"
+#include "ppr/io/IOException.hpp"
+#include "ppr/util/ifr/array"
+#include "ppr/util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace std;
+ using namespace apache::activemq;
+ using namespace apache::activemq::protocol;
+ using namespace apache::ppr::io;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for PartialCommand
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+class PartialCommand : public BaseDataStructure
+{
+protected:
+ int commandId ;
+ array<char> data ;
+
+public:
+ const static unsigned char TYPE = 60;
+
+public:
+ PartialCommand() ;
+ virtual ~PartialCommand() ;
+
+ virtual unsigned char getDataStructureType() ;
+
+ virtual int getCommandId() ;
+ virtual void setCommandId(int commandId) ;
+
+ virtual array<char> getData() ;
+ virtual void setData(array<char> data) ;
+
+ virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException) ;
+ virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException) ;
+} ;
+
+/* namespace */
+ }
+ }
+}
+
+#endif /*ActiveMQ_PartialCommand_hpp_*/
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerId.cpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerId.cpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerId.cpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerId.cpp Mon May 15 06:38:57 2006
@@ -1,95 +1,97 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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/command/ProducerId.hpp"
-
-using namespace apache::activemq::command;
-
-/*
- *
- * Marshalling code for Open Wire Format for ProducerId
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-ProducerId::ProducerId()
-{
- this->connectionId = NULL ;
- this->value = 0 ;
- this->sessionId = 0 ;
-}
-
-ProducerId::~ProducerId()
-{
-}
-
-unsigned char ProducerId::getDataStructureType()
-{
- return ProducerId::TYPE ;
-}
-
-
-p<string> ProducerId::getConnectionId()
-{
- return connectionId ;
-}
-
-void ProducerId::setConnectionId(p<string> connectionId)
-{
- this->connectionId = connectionId ;
-}
-
-
-long long ProducerId::getValue()
-{
- return value ;
-}
-
-void ProducerId::setValue(long long value)
-{
- this->value = value ;
-}
-
-
-long long ProducerId::getSessionId()
-{
- return sessionId ;
-}
-
-void ProducerId::setSessionId(long long sessionId)
-{
- this->sessionId = sessionId ;
-}
-
-int ProducerId::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException)
-{
- int size = 0 ;
-
- size += marshaller->marshalString(connectionId, mode, writer) ;
- size += marshaller->marshalLong(value, mode, writer) ;
- size += marshaller->marshalLong(sessionId, mode, writer) ;
- return size ;
-}
-
-void ProducerId::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException)
-{
- connectionId = p_cast<string>(marshaller->unmarshalString(mode, reader)) ;
- value = (marshaller->unmarshalLong(mode, reader)) ;
- sessionId = (marshaller->unmarshalLong(mode, reader)) ;
-}
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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/command/ProducerId.hpp"
+
+using namespace apache::activemq::command;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for ProducerId
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+ProducerId::ProducerId()
+{
+ this->connectionId = NULL ;
+ this->value = 0 ;
+ this->sessionId = 0 ;
+}
+
+ProducerId::~ProducerId()
+{
+}
+
+unsigned char ProducerId::getDataStructureType()
+{
+ return ProducerId::TYPE ;
+}
+
+
+p<string> ProducerId::getConnectionId()
+{
+ return connectionId ;
+}
+
+void ProducerId::setConnectionId(p<string> connectionId)
+{
+ this->connectionId = connectionId ;
+}
+
+
+long long ProducerId::getValue()
+{
+ return value ;
+}
+
+void ProducerId::setValue(long long value)
+{
+ this->value = value ;
+}
+
+
+long long ProducerId::getSessionId()
+{
+ return sessionId ;
+}
+
+void ProducerId::setSessionId(long long sessionId)
+{
+ this->sessionId = sessionId ;
+}
+
+int ProducerId::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException)
+{
+ int size = 0 ;
+
+ size += BaseDataStructure::marshal(marshaller, mode, ostream) ;
+ size += marshaller->marshalString(connectionId, mode, ostream) ;
+ size += marshaller->marshalLong(value, mode, ostream) ;
+ size += marshaller->marshalLong(sessionId, mode, ostream) ;
+ return size ;
+}
+
+void ProducerId::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException)
+{
+ BaseDataStructure::unmarshal(marshaller, mode, istream) ;
+ connectionId = p_cast<string>(marshaller->unmarshalString(mode, istream)) ;
+ value = (marshaller->unmarshalLong(mode, istream)) ;
+ sessionId = (marshaller->unmarshalLong(mode, istream)) ;
+}
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerId.hpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerId.hpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerId.hpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerId.hpp Mon May 15 06:38:57 2006
@@ -1,90 +1,91 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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_ProducerId_hpp_
-#define ActiveMQ_ProducerId_hpp_
-
-// Turn off warning message for ignored exception specification
-#ifdef _MSC_VER
-#pragma warning( disable : 4290 )
-#endif
-
-#include <string>
-#include "activemq/command/AbstractCommand.hpp"
-#include "activemq/protocol/IMarshaller.hpp"
-#include "ppr/io/IOutputStream.hpp"
-#include "ppr/io/IInputStream.hpp"
-#include "ppr/io/IOException.hpp"
-#include "ppr/util/ifr/array"
-#include "ppr/util/ifr/p"
-
-namespace apache
-{
- namespace activemq
- {
- namespace command
- {
- using namespace ifr;
- using namespace std;
- using namespace apache::activemq;
- using namespace apache::activemq::protocol;
- using namespace apache::ppr::io;
-
-/*
- *
- * Marshalling code for Open Wire Format for ProducerId
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-class ProducerId : public AbstractCommand
-{
-protected:
- p<string> connectionId ;
- long long value ;
- long long sessionId ;
-
-public:
- const static unsigned char TYPE = 123;
-
-public:
- ProducerId() ;
- virtual ~ProducerId() ;
-
- virtual unsigned char getDataStructureType() ;
-
- virtual p<string> getConnectionId() ;
- virtual void setConnectionId(p<string> connectionId) ;
-
- virtual long long getValue() ;
- virtual void setValue(long long value) ;
-
- virtual long long getSessionId() ;
- virtual void setSessionId(long long sessionId) ;
-
- virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException) ;
- virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException) ;
-} ;
-
-/* namespace */
- }
- }
-}
-
-#endif /*ActiveMQ_ProducerId_hpp_*/
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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_ProducerId_hpp_
+#define ActiveMQ_ProducerId_hpp_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <string>
+#include "activemq/command/BaseDataStructure.hpp"
+
+#include "activemq/protocol/IMarshaller.hpp"
+#include "ppr/io/IOutputStream.hpp"
+#include "ppr/io/IInputStream.hpp"
+#include "ppr/io/IOException.hpp"
+#include "ppr/util/ifr/array"
+#include "ppr/util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace std;
+ using namespace apache::activemq;
+ using namespace apache::activemq::protocol;
+ using namespace apache::ppr::io;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for ProducerId
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+class ProducerId : public BaseDataStructure
+{
+protected:
+ p<string> connectionId ;
+ long long value ;
+ long long sessionId ;
+
+public:
+ const static unsigned char TYPE = 123;
+
+public:
+ ProducerId() ;
+ virtual ~ProducerId() ;
+
+ virtual unsigned char getDataStructureType() ;
+
+ virtual p<string> getConnectionId() ;
+ virtual void setConnectionId(p<string> connectionId) ;
+
+ virtual long long getValue() ;
+ virtual void setValue(long long value) ;
+
+ virtual long long getSessionId() ;
+ virtual void setSessionId(long long sessionId) ;
+
+ virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException) ;
+ virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException) ;
+} ;
+
+/* namespace */
+ }
+ }
+}
+
+#endif /*ActiveMQ_ProducerId_hpp_*/
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerInfo.cpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerInfo.cpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerInfo.cpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerInfo.cpp Mon May 15 06:38:57 2006
@@ -1,99 +1,97 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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/command/ProducerInfo.hpp"
-
-using namespace apache::activemq::command;
-
-/*
- *
- * Marshalling code for Open Wire Format for ProducerInfo
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-ProducerInfo::ProducerInfo()
-{
- this->producerId = NULL ;
- this->destination = NULL ;
- this->brokerPath = NULL ;
-}
-
-ProducerInfo::~ProducerInfo()
-{
-}
-
-unsigned char ProducerInfo::getDataStructureType()
-{
- return ProducerInfo::TYPE ;
-}
-
-
-p<ProducerId> ProducerInfo::getProducerId()
-{
- return producerId ;
-}
-
-void ProducerInfo::setProducerId(p<ProducerId> producerId)
-{
- this->producerId = producerId ;
-}
-
-
-p<ActiveMQDestination> ProducerInfo::getDestination()
-{
- return destination ;
-}
-
-void ProducerInfo::setDestination(p<ActiveMQDestination> destination)
-{
- this->destination = destination ;
-}
-
-
-array<BrokerId> ProducerInfo::getBrokerPath()
-{
- return brokerPath ;
-}
-
-void ProducerInfo::setBrokerPath(array<BrokerId> brokerPath)
-{
- this->brokerPath = brokerPath ;
-}
-
-int ProducerInfo::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException)
-{
- int size = 0 ;
-
- size += marshaller->marshalInt(commandId, mode, writer) ;
- size += marshaller->marshalBoolean(responseRequired, mode, writer) ;
- size += marshaller->marshalObject(producerId, mode, writer) ;
- size += marshaller->marshalObject(destination, mode, writer) ;
- size += marshaller->marshalObjectArray(brokerPath, mode, writer) ;
- return size ;
-}
-
-void ProducerInfo::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException)
-{
- commandId = marshaller->unmarshalInt(mode, reader) ;
- responseRequired = marshaller->unmarshalBoolean(mode, reader) ;
- producerId = p_cast<ProducerId>(marshaller->unmarshalObject(mode, reader)) ;
- destination = p_cast<ActiveMQDestination>(marshaller->unmarshalObject(mode, reader)) ;
- brokerPath = array_cast<BrokerId>(marshaller->unmarshalObjectArray(mode, reader)) ;
-}
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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/command/ProducerInfo.hpp"
+
+using namespace apache::activemq::command;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for ProducerInfo
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+ProducerInfo::ProducerInfo()
+{
+ this->producerId = NULL ;
+ this->destination = NULL ;
+ this->brokerPath = NULL ;
+}
+
+ProducerInfo::~ProducerInfo()
+{
+}
+
+unsigned char ProducerInfo::getDataStructureType()
+{
+ return ProducerInfo::TYPE ;
+}
+
+
+p<ProducerId> ProducerInfo::getProducerId()
+{
+ return producerId ;
+}
+
+void ProducerInfo::setProducerId(p<ProducerId> producerId)
+{
+ this->producerId = producerId ;
+}
+
+
+p<ActiveMQDestination> ProducerInfo::getDestination()
+{
+ return destination ;
+}
+
+void ProducerInfo::setDestination(p<ActiveMQDestination> destination)
+{
+ this->destination = destination ;
+}
+
+
+array<BrokerId> ProducerInfo::getBrokerPath()
+{
+ return brokerPath ;
+}
+
+void ProducerInfo::setBrokerPath(array<BrokerId> brokerPath)
+{
+ this->brokerPath = brokerPath ;
+}
+
+int ProducerInfo::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException)
+{
+ int size = 0 ;
+
+ size += BaseCommand::marshal(marshaller, mode, ostream) ;
+ size += marshaller->marshalObject(producerId, mode, ostream) ;
+ size += marshaller->marshalObject(destination, mode, ostream) ;
+ size += marshaller->marshalObjectArray(brokerPath, mode, ostream) ;
+ return size ;
+}
+
+void ProducerInfo::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException)
+{
+ BaseCommand::unmarshal(marshaller, mode, istream) ;
+ producerId = p_cast<ProducerId>(marshaller->unmarshalObject(mode, istream)) ;
+ destination = p_cast<ActiveMQDestination>(marshaller->unmarshalObject(mode, istream)) ;
+ brokerPath = array_cast<BrokerId>(marshaller->unmarshalObjectArray(mode, istream)) ;
+}
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerInfo.hpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerInfo.hpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerInfo.hpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/ProducerInfo.hpp Mon May 15 06:38:57 2006
@@ -1,93 +1,94 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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_ProducerInfo_hpp_
-#define ActiveMQ_ProducerInfo_hpp_
-
-// Turn off warning message for ignored exception specification
-#ifdef _MSC_VER
-#pragma warning( disable : 4290 )
-#endif
-
-#include <string>
-#include "activemq/command/BaseCommand.hpp"
-#include "activemq/command/ProducerId.hpp"
-#include "activemq/command/ActiveMQDestination.hpp"
-#include "activemq/command/BrokerId.hpp"
-#include "activemq/protocol/IMarshaller.hpp"
-#include "ppr/io/IOutputStream.hpp"
-#include "ppr/io/IInputStream.hpp"
-#include "ppr/io/IOException.hpp"
-#include "ppr/util/ifr/array"
-#include "ppr/util/ifr/p"
-
-namespace apache
-{
- namespace activemq
- {
- namespace command
- {
- using namespace ifr;
- using namespace std;
- using namespace apache::activemq;
- using namespace apache::activemq::protocol;
- using namespace apache::ppr::io;
-
-/*
- *
- * Marshalling code for Open Wire Format for ProducerInfo
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-class ProducerInfo : public BaseCommand
-{
-protected:
- p<ProducerId> producerId ;
- p<ActiveMQDestination> destination ;
- array<BrokerId> brokerPath ;
-
-public:
- const static unsigned char TYPE = 6;
-
-public:
- ProducerInfo() ;
- virtual ~ProducerInfo() ;
-
- virtual unsigned char getDataStructureType() ;
-
- virtual p<ProducerId> getProducerId() ;
- virtual void setProducerId(p<ProducerId> producerId) ;
-
- virtual p<ActiveMQDestination> getDestination() ;
- virtual void setDestination(p<ActiveMQDestination> destination) ;
-
- virtual array<BrokerId> getBrokerPath() ;
- virtual void setBrokerPath(array<BrokerId> brokerPath) ;
-
- virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException) ;
- virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException) ;
-} ;
-
-/* namespace */
- }
- }
-}
-
-#endif /*ActiveMQ_ProducerInfo_hpp_*/
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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_ProducerInfo_hpp_
+#define ActiveMQ_ProducerInfo_hpp_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <string>
+#include "activemq/command/BaseCommand.hpp"
+#include "activemq/command/ProducerId.hpp"
+#include "activemq/command/ActiveMQDestination.hpp"
+#include "activemq/command/BrokerId.hpp"
+
+#include "activemq/protocol/IMarshaller.hpp"
+#include "ppr/io/IOutputStream.hpp"
+#include "ppr/io/IInputStream.hpp"
+#include "ppr/io/IOException.hpp"
+#include "ppr/util/ifr/array"
+#include "ppr/util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace std;
+ using namespace apache::activemq;
+ using namespace apache::activemq::protocol;
+ using namespace apache::ppr::io;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for ProducerInfo
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+class ProducerInfo : public BaseCommand
+{
+protected:
+ p<ProducerId> producerId ;
+ p<ActiveMQDestination> destination ;
+ array<BrokerId> brokerPath ;
+
+public:
+ const static unsigned char TYPE = 6;
+
+public:
+ ProducerInfo() ;
+ virtual ~ProducerInfo() ;
+
+ virtual unsigned char getDataStructureType() ;
+
+ virtual p<ProducerId> getProducerId() ;
+ virtual void setProducerId(p<ProducerId> producerId) ;
+
+ virtual p<ActiveMQDestination> getDestination() ;
+ virtual void setDestination(p<ActiveMQDestination> destination) ;
+
+ virtual array<BrokerId> getBrokerPath() ;
+ virtual void setBrokerPath(array<BrokerId> brokerPath) ;
+
+ virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException) ;
+ virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException) ;
+} ;
+
+/* namespace */
+ }
+ }
+}
+
+#endif /*ActiveMQ_ProducerInfo_hpp_*/
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveInfo.cpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveInfo.cpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveInfo.cpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveInfo.cpp Mon May 15 06:38:57 2006
@@ -1,71 +1,69 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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/command/RemoveInfo.hpp"
-
-using namespace apache::activemq::command;
-
-/*
- *
- * Marshalling code for Open Wire Format for RemoveInfo
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-RemoveInfo::RemoveInfo()
-{
- this->objectId = NULL ;
-}
-
-RemoveInfo::~RemoveInfo()
-{
-}
-
-unsigned char RemoveInfo::getDataStructureType()
-{
- return RemoveInfo::TYPE ;
-}
-
-
-p<IDataStructure> RemoveInfo::getObjectId()
-{
- return objectId ;
-}
-
-void RemoveInfo::setObjectId(p<IDataStructure> objectId)
-{
- this->objectId = objectId ;
-}
-
-int RemoveInfo::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException)
-{
- int size = 0 ;
-
- size += marshaller->marshalInt(commandId, mode, writer) ;
- size += marshaller->marshalBoolean(responseRequired, mode, writer) ;
- size += marshaller->marshalObject(objectId, mode, writer) ;
- return size ;
-}
-
-void RemoveInfo::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException)
-{
- commandId = marshaller->unmarshalInt(mode, reader) ;
- responseRequired = marshaller->unmarshalBoolean(mode, reader) ;
- objectId = p_cast<IDataStructure>(marshaller->unmarshalObject(mode, reader)) ;
-}
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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/command/RemoveInfo.hpp"
+
+using namespace apache::activemq::command;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for RemoveInfo
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+RemoveInfo::RemoveInfo()
+{
+ this->objectId = NULL ;
+}
+
+RemoveInfo::~RemoveInfo()
+{
+}
+
+unsigned char RemoveInfo::getDataStructureType()
+{
+ return RemoveInfo::TYPE ;
+}
+
+
+p<IDataStructure> RemoveInfo::getObjectId()
+{
+ return objectId ;
+}
+
+void RemoveInfo::setObjectId(p<IDataStructure> objectId)
+{
+ this->objectId = objectId ;
+}
+
+int RemoveInfo::marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException)
+{
+ int size = 0 ;
+
+ size += BaseCommand::marshal(marshaller, mode, ostream) ;
+ size += marshaller->marshalObject(objectId, mode, ostream) ;
+ return size ;
+}
+
+void RemoveInfo::unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException)
+{
+ BaseCommand::unmarshal(marshaller, mode, istream) ;
+ objectId = p_cast<IDataStructure>(marshaller->unmarshalObject(mode, istream)) ;
+}
Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveInfo.hpp
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveInfo.hpp?rev=406628&r1=406627&r2=406628&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveInfo.hpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/activemq/command/RemoveInfo.hpp Mon May 15 06:38:57 2006
@@ -1,83 +1,84 @@
-/*
-* Copyright 2006 The Apache Software Foundation or its licensors, as
-* applicable.
-*
-* Licensed 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_RemoveInfo_hpp_
-#define ActiveMQ_RemoveInfo_hpp_
-
-// Turn off warning message for ignored exception specification
-#ifdef _MSC_VER
-#pragma warning( disable : 4290 )
-#endif
-
-#include <string>
-#include "activemq/IDataStructure.hpp"
-#include "activemq/command/BaseCommand.hpp"
-#include "activemq/protocol/IMarshaller.hpp"
-#include "ppr/io/IOutputStream.hpp"
-#include "ppr/io/IInputStream.hpp"
-#include "ppr/io/IOException.hpp"
-#include "ppr/util/ifr/array"
-#include "ppr/util/ifr/p"
-
-namespace apache
-{
- namespace activemq
- {
- namespace command
- {
- using namespace ifr;
- using namespace std;
- using namespace apache::activemq;
- using namespace apache::activemq::protocol;
- using namespace apache::ppr::io;
-
-/*
- *
- * Marshalling code for Open Wire Format for RemoveInfo
- *
- *
- * NOTE!: This file is autogenerated - do not modify!
- * if you need to make a change, please see the Groovy scripts in the
- * activemq-core module
- *
- */
-class RemoveInfo : public BaseCommand
-{
-protected:
- p<IDataStructure> objectId ;
-
-public:
- const static unsigned char TYPE = 12;
-
-public:
- RemoveInfo() ;
- virtual ~RemoveInfo() ;
-
- virtual unsigned char getDataStructureType() ;
-
- virtual p<IDataStructure> getObjectId() ;
- virtual void setObjectId(p<IDataStructure> objectId) ;
-
- virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> writer) throw (IOException) ;
- virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> reader) throw (IOException) ;
-} ;
-
-/* namespace */
- }
- }
-}
-
-#endif /*ActiveMQ_RemoveInfo_hpp_*/
+/*
+* Copyright 2006 The Apache Software Foundation or its licensors, as
+* applicable.
+*
+* Licensed 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_RemoveInfo_hpp_
+#define ActiveMQ_RemoveInfo_hpp_
+
+// Turn off warning message for ignored exception specification
+#ifdef _MSC_VER
+#pragma warning( disable : 4290 )
+#endif
+
+#include <string>
+#include "activemq/command/BaseCommand.hpp"
+#include "activemq/IDataStructure.hpp"
+
+#include "activemq/protocol/IMarshaller.hpp"
+#include "ppr/io/IOutputStream.hpp"
+#include "ppr/io/IInputStream.hpp"
+#include "ppr/io/IOException.hpp"
+#include "ppr/util/ifr/array"
+#include "ppr/util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace std;
+ using namespace apache::activemq;
+ using namespace apache::activemq::protocol;
+ using namespace apache::ppr::io;
+
+/*
+ *
+ * Command and marshalling code for OpenWire format for RemoveInfo
+ *
+ *
+ * NOTE!: This file is autogenerated - do not modify!
+ * if you need to make a change, please see the Groovy scripts in the
+ * activemq-core module
+ *
+ */
+class RemoveInfo : public BaseCommand
+{
+protected:
+ p<IDataStructure> objectId ;
+
+public:
+ const static unsigned char TYPE = 12;
+
+public:
+ RemoveInfo() ;
+ virtual ~RemoveInfo() ;
+
+ virtual unsigned char getDataStructureType() ;
+
+ virtual p<IDataStructure> getObjectId() ;
+ virtual void setObjectId(p<IDataStructure> objectId) ;
+
+ virtual int marshal(p<IMarshaller> marshaller, int mode, p<IOutputStream> ostream) throw (IOException) ;
+ virtual void unmarshal(p<IMarshaller> marshaller, int mode, p<IInputStream> istream) throw (IOException) ;
+} ;
+
+/* namespace */
+ }
+ }
+}
+
+#endif /*ActiveMQ_RemoveInfo_hpp_*/