diff --git a/openwire-cpp/.project b/openwire-cpp/.project
index 0676cbc96e..29982e8f7b 100644
--- a/openwire-cpp/.project
+++ b/openwire-cpp/.project
@@ -5,6 +5,11 @@
+
+ org.eclipse.cdt.managedbuilder.core.genmakebuilder
+
+
+
org.eclipse.jdt.core.javabuilder
@@ -13,5 +18,8 @@
org.eclipse.jdt.core.javanature
+ org.eclipse.cdt.core.cnature
+ org.eclipse.cdt.managedbuilder.core.managedBuildNature
+ org.eclipse.cdt.core.ccnature
diff --git a/openwire-cpp/src/command/ActiveMQObjectMessage.cpp b/openwire-cpp/src/command/ActiveMQObjectMessage.cpp
new file mode 100644
index 0000000000..99e79ced3f
--- /dev/null
+++ b/openwire-cpp/src/command/ActiveMQObjectMessage.cpp
@@ -0,0 +1,37 @@
+/*
+* 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 "command/ActiveMQObjectMessage.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for ActiveMQObjectMessage
+ *
+ *
+ * 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
+ *
+ */
+ActiveMQObjectMessage::ActiveMQObjectMessage()
+{
+}
+
+ActiveMQObjectMessage::~ActiveMQObjectMessage()
+{
+}
diff --git a/openwire-cpp/src/command/ActiveMQObjectMessage.hpp b/openwire-cpp/src/command/ActiveMQObjectMessage.hpp
new file mode 100644
index 0000000000..95336484ad
--- /dev/null
+++ b/openwire-cpp/src/command/ActiveMQObjectMessage.hpp
@@ -0,0 +1,75 @@
+/*
+* 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 ActiveMQObjectMessage_hpp_
+#define ActiveMQObjectMessage_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/ActiveMQMessage.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for ActiveMQObjectMessage
+ *
+ *
+ * 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 ActiveMQObjectMessage : public ActiveMQMessage
+{
+private:
+
+public:
+ const static int TYPE = 26;
+
+public:
+ ActiveMQObjectMessage() ;
+ virtual ~ActiveMQObjectMessage() ;
+
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*ActiveMQObjectMessage_hpp_*/
diff --git a/openwire-cpp/src/command/ConnectionError.cpp b/openwire-cpp/src/command/ConnectionError.cpp
new file mode 100644
index 0000000000..215276b4fd
--- /dev/null
+++ b/openwire-cpp/src/command/ConnectionError.cpp
@@ -0,0 +1,61 @@
+/*
+* 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 "command/ConnectionError.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for ConnectionError
+ *
+ *
+ * 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
+ *
+ */
+ConnectionError::ConnectionError()
+{
+ this->exception = NULL ;
+ this->connectionId = NULL ;
+}
+
+ConnectionError::~ConnectionError()
+{
+}
+
+
+BrokerError ConnectionError::getException()
+{
+ return exception ;
+}
+
+void ConnectionError::setException(BrokerError exception)
+{
+ this->exception = exception ;
+}
+
+
+p ConnectionError::getConnectionId()
+{
+ return connectionId ;
+}
+
+void ConnectionError::setConnectionId(p connectionId)
+{
+ this->connectionId = connectionId ;
+}
diff --git a/openwire-cpp/src/command/ConnectionError.hpp b/openwire-cpp/src/command/ConnectionError.hpp
new file mode 100644
index 0000000000..e7b2a43c87
--- /dev/null
+++ b/openwire-cpp/src/command/ConnectionError.hpp
@@ -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.
+*/
+#ifndef ConnectionError_hpp_
+#define ConnectionError_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/BaseCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for ConnectionError
+ *
+ *
+ * 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 ConnectionError : public BaseCommand
+{
+private:
+ BrokerError exception ;
+ p connectionId ;
+
+public:
+ const static int TYPE = 16;
+
+public:
+ ConnectionError() ;
+ virtual ~ConnectionError() ;
+
+
+ virtual BrokerError getException() ;
+ virtual void setException(BrokerError exception) ;
+
+ virtual p getConnectionId() ;
+ virtual void setConnectionId(p connectionId) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*ConnectionError_hpp_*/
diff --git a/openwire-cpp/src/command/ControlCommand.cpp b/openwire-cpp/src/command/ControlCommand.cpp
new file mode 100644
index 0000000000..f730282d62
--- /dev/null
+++ b/openwire-cpp/src/command/ControlCommand.cpp
@@ -0,0 +1,49 @@
+/*
+* 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 "command/ControlCommand.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for ControlCommand
+ *
+ *
+ * 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
+ *
+ */
+ControlCommand::ControlCommand()
+{
+ this->command = NULL ;
+}
+
+ControlCommand::~ControlCommand()
+{
+}
+
+
+p ControlCommand::getCommand()
+{
+ return command ;
+}
+
+void ControlCommand::setCommand(p command)
+{
+ this->command = command ;
+}
diff --git a/openwire-cpp/src/command/ControlCommand.hpp b/openwire-cpp/src/command/ControlCommand.hpp
new file mode 100644
index 0000000000..749b57887e
--- /dev/null
+++ b/openwire-cpp/src/command/ControlCommand.hpp
@@ -0,0 +1,79 @@
+/*
+* 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 ControlCommand_hpp_
+#define ControlCommand_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/BaseCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for ControlCommand
+ *
+ *
+ * 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 ControlCommand : public BaseCommand
+{
+private:
+ p command ;
+
+public:
+ const static int TYPE = 14;
+
+public:
+ ControlCommand() ;
+ virtual ~ControlCommand() ;
+
+
+ virtual p getCommand() ;
+ virtual void setCommand(p command) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*ControlCommand_hpp_*/
diff --git a/openwire-cpp/src/command/DataArrayResponse.cpp b/openwire-cpp/src/command/DataArrayResponse.cpp
new file mode 100644
index 0000000000..784b0a1d24
--- /dev/null
+++ b/openwire-cpp/src/command/DataArrayResponse.cpp
@@ -0,0 +1,49 @@
+/*
+* 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 "command/DataArrayResponse.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for DataArrayResponse
+ *
+ *
+ * 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
+ *
+ */
+DataArrayResponse::DataArrayResponse()
+{
+ this->data = NULL ;
+}
+
+DataArrayResponse::~DataArrayResponse()
+{
+}
+
+
+DataStructure[] DataArrayResponse::getData()
+{
+ return data ;
+}
+
+void DataArrayResponse::setData(DataStructure[] data)
+{
+ this->data = data ;
+}
diff --git a/openwire-cpp/src/command/DataArrayResponse.hpp b/openwire-cpp/src/command/DataArrayResponse.hpp
new file mode 100644
index 0000000000..36268606d3
--- /dev/null
+++ b/openwire-cpp/src/command/DataArrayResponse.hpp
@@ -0,0 +1,79 @@
+/*
+* 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 DataArrayResponse_hpp_
+#define DataArrayResponse_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/Response.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for DataArrayResponse
+ *
+ *
+ * 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 DataArrayResponse : public Response
+{
+private:
+ DataStructure[] data ;
+
+public:
+ const static int TYPE = 33;
+
+public:
+ DataArrayResponse() ;
+ virtual ~DataArrayResponse() ;
+
+
+ virtual DataStructure[] getData() ;
+ virtual void setData(DataStructure[] data) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*DataArrayResponse_hpp_*/
diff --git a/openwire-cpp/src/command/DataResponse.cpp b/openwire-cpp/src/command/DataResponse.cpp
new file mode 100644
index 0000000000..f033ef26c5
--- /dev/null
+++ b/openwire-cpp/src/command/DataResponse.cpp
@@ -0,0 +1,49 @@
+/*
+* 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 "command/DataResponse.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for DataResponse
+ *
+ *
+ * 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
+ *
+ */
+DataResponse::DataResponse()
+{
+ this->data = NULL ;
+}
+
+DataResponse::~DataResponse()
+{
+}
+
+
+DataStructure DataResponse::getData()
+{
+ return data ;
+}
+
+void DataResponse::setData(DataStructure data)
+{
+ this->data = data ;
+}
diff --git a/openwire-cpp/src/command/DataResponse.hpp b/openwire-cpp/src/command/DataResponse.hpp
new file mode 100644
index 0000000000..a04bfeadbe
--- /dev/null
+++ b/openwire-cpp/src/command/DataResponse.hpp
@@ -0,0 +1,79 @@
+/*
+* 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 DataResponse_hpp_
+#define DataResponse_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/Response.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for DataResponse
+ *
+ *
+ * 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 DataResponse : public Response
+{
+private:
+ DataStructure data ;
+
+public:
+ const static int TYPE = 32;
+
+public:
+ DataResponse() ;
+ virtual ~DataResponse() ;
+
+
+ virtual DataStructure getData() ;
+ virtual void setData(DataStructure data) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*DataResponse_hpp_*/
diff --git a/openwire-cpp/src/command/DestinationInfo.cpp b/openwire-cpp/src/command/DestinationInfo.cpp
new file mode 100644
index 0000000000..32138e249e
--- /dev/null
+++ b/openwire-cpp/src/command/DestinationInfo.cpp
@@ -0,0 +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 "command/DestinationInfo.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for DestinationInfo
+ *
+ *
+ * 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
+ *
+ */
+DestinationInfo::DestinationInfo()
+{
+ this->connectionId = NULL ;
+ this->destination = NULL ;
+ this->operationType = NULL ;
+ this->timeout = NULL ;
+ this->brokerPath = NULL ;
+}
+
+DestinationInfo::~DestinationInfo()
+{
+}
+
+
+p DestinationInfo::getConnectionId()
+{
+ return connectionId ;
+}
+
+void DestinationInfo::setConnectionId(p connectionId)
+{
+ this->connectionId = connectionId ;
+}
+
+
+ActiveMQDestination DestinationInfo::getDestination()
+{
+ return destination ;
+}
+
+void DestinationInfo::setDestination(ActiveMQDestination destination)
+{
+ this->destination = destination ;
+}
+
+
+byte DestinationInfo::getOperationType()
+{
+ return operationType ;
+}
+
+void DestinationInfo::setOperationType(byte operationType)
+{
+ this->operationType = operationType ;
+}
+
+
+long DestinationInfo::getTimeout()
+{
+ return timeout ;
+}
+
+void DestinationInfo::setTimeout(long timeout)
+{
+ this->timeout = timeout ;
+}
+
+
+BrokerId[] DestinationInfo::getBrokerPath()
+{
+ return brokerPath ;
+}
+
+void DestinationInfo::setBrokerPath(BrokerId[] brokerPath)
+{
+ this->brokerPath = brokerPath ;
+}
diff --git a/openwire-cpp/src/command/DestinationInfo.hpp b/openwire-cpp/src/command/DestinationInfo.hpp
new file mode 100644
index 0000000000..9cbf8660c9
--- /dev/null
+++ b/openwire-cpp/src/command/DestinationInfo.hpp
@@ -0,0 +1,95 @@
+/*
+* 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 DestinationInfo_hpp_
+#define DestinationInfo_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/BaseCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for DestinationInfo
+ *
+ *
+ * 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 DestinationInfo : public BaseCommand
+{
+private:
+ p connectionId ;
+ ActiveMQDestination destination ;
+ byte operationType ;
+ long timeout ;
+ BrokerId[] brokerPath ;
+
+public:
+ const static int TYPE = 8;
+
+public:
+ DestinationInfo() ;
+ virtual ~DestinationInfo() ;
+
+
+ virtual p getConnectionId() ;
+ virtual void setConnectionId(p connectionId) ;
+
+ virtual ActiveMQDestination getDestination() ;
+ virtual void setDestination(ActiveMQDestination destination) ;
+
+ virtual byte getOperationType() ;
+ virtual void setOperationType(byte operationType) ;
+
+ virtual long getTimeout() ;
+ virtual void setTimeout(long timeout) ;
+
+ virtual BrokerId[] getBrokerPath() ;
+ virtual void setBrokerPath(BrokerId[] brokerPath) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*DestinationInfo_hpp_*/
diff --git a/openwire-cpp/src/command/DiscoveryEvent.cpp b/openwire-cpp/src/command/DiscoveryEvent.cpp
new file mode 100644
index 0000000000..27e5f7199d
--- /dev/null
+++ b/openwire-cpp/src/command/DiscoveryEvent.cpp
@@ -0,0 +1,61 @@
+/*
+* 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 "command/DiscoveryEvent.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for DiscoveryEvent
+ *
+ *
+ * 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
+ *
+ */
+DiscoveryEvent::DiscoveryEvent()
+{
+ this->serviceName = NULL ;
+ this->brokerName = NULL ;
+}
+
+DiscoveryEvent::~DiscoveryEvent()
+{
+}
+
+
+p DiscoveryEvent::getServiceName()
+{
+ return serviceName ;
+}
+
+void DiscoveryEvent::setServiceName(p serviceName)
+{
+ this->serviceName = serviceName ;
+}
+
+
+p DiscoveryEvent::getBrokerName()
+{
+ return brokerName ;
+}
+
+void DiscoveryEvent::setBrokerName(p brokerName)
+{
+ this->brokerName = brokerName ;
+}
diff --git a/openwire-cpp/src/command/DiscoveryEvent.hpp b/openwire-cpp/src/command/DiscoveryEvent.hpp
new file mode 100644
index 0000000000..af6a01c173
--- /dev/null
+++ b/openwire-cpp/src/command/DiscoveryEvent.hpp
@@ -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.
+*/
+#ifndef DiscoveryEvent_hpp_
+#define DiscoveryEvent_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/AbstractCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for DiscoveryEvent
+ *
+ *
+ * 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 DiscoveryEvent : public AbstractCommand
+{
+private:
+ p serviceName ;
+ p brokerName ;
+
+public:
+ const static int TYPE = 40;
+
+public:
+ DiscoveryEvent() ;
+ virtual ~DiscoveryEvent() ;
+
+
+ virtual p getServiceName() ;
+ virtual void setServiceName(p serviceName) ;
+
+ virtual p getBrokerName() ;
+ virtual void setBrokerName(p brokerName) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*DiscoveryEvent_hpp_*/
diff --git a/openwire-cpp/src/command/FlushCommand.cpp b/openwire-cpp/src/command/FlushCommand.cpp
new file mode 100644
index 0000000000..4099d84efc
--- /dev/null
+++ b/openwire-cpp/src/command/FlushCommand.cpp
@@ -0,0 +1,37 @@
+/*
+* 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 "command/FlushCommand.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for FlushCommand
+ *
+ *
+ * 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
+ *
+ */
+FlushCommand::FlushCommand()
+{
+}
+
+FlushCommand::~FlushCommand()
+{
+}
diff --git a/openwire-cpp/src/command/FlushCommand.hpp b/openwire-cpp/src/command/FlushCommand.hpp
new file mode 100644
index 0000000000..7486979c32
--- /dev/null
+++ b/openwire-cpp/src/command/FlushCommand.hpp
@@ -0,0 +1,75 @@
+/*
+* 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 FlushCommand_hpp_
+#define FlushCommand_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/BaseCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for FlushCommand
+ *
+ *
+ * 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 FlushCommand : public BaseCommand
+{
+private:
+
+public:
+ const static int TYPE = 15;
+
+public:
+ FlushCommand() ;
+ virtual ~FlushCommand() ;
+
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*FlushCommand_hpp_*/
diff --git a/openwire-cpp/src/command/IntegerResponse.cpp b/openwire-cpp/src/command/IntegerResponse.cpp
new file mode 100644
index 0000000000..184a3793d8
--- /dev/null
+++ b/openwire-cpp/src/command/IntegerResponse.cpp
@@ -0,0 +1,49 @@
+/*
+* 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 "command/IntegerResponse.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for IntegerResponse
+ *
+ *
+ * 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
+ *
+ */
+IntegerResponse::IntegerResponse()
+{
+ this->result = NULL ;
+}
+
+IntegerResponse::~IntegerResponse()
+{
+}
+
+
+int IntegerResponse::getResult()
+{
+ return result ;
+}
+
+void IntegerResponse::setResult(int result)
+{
+ this->result = result ;
+}
diff --git a/openwire-cpp/src/command/IntegerResponse.hpp b/openwire-cpp/src/command/IntegerResponse.hpp
new file mode 100644
index 0000000000..f6d64dab64
--- /dev/null
+++ b/openwire-cpp/src/command/IntegerResponse.hpp
@@ -0,0 +1,79 @@
+/*
+* 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 IntegerResponse_hpp_
+#define IntegerResponse_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/Response.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for IntegerResponse
+ *
+ *
+ * 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 IntegerResponse : public Response
+{
+private:
+ int result ;
+
+public:
+ const static int TYPE = 34;
+
+public:
+ IntegerResponse() ;
+ virtual ~IntegerResponse() ;
+
+
+ virtual int getResult() ;
+ virtual void setResult(int result) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*IntegerResponse_hpp_*/
diff --git a/openwire-cpp/src/command/JournalQueueAck.cpp b/openwire-cpp/src/command/JournalQueueAck.cpp
new file mode 100644
index 0000000000..7b4d9c0b3e
--- /dev/null
+++ b/openwire-cpp/src/command/JournalQueueAck.cpp
@@ -0,0 +1,61 @@
+/*
+* 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 "command/JournalQueueAck.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for JournalQueueAck
+ *
+ *
+ * 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
+ *
+ */
+JournalQueueAck::JournalQueueAck()
+{
+ this->destination = NULL ;
+ this->messageAck = NULL ;
+}
+
+JournalQueueAck::~JournalQueueAck()
+{
+}
+
+
+ActiveMQDestination JournalQueueAck::getDestination()
+{
+ return destination ;
+}
+
+void JournalQueueAck::setDestination(ActiveMQDestination destination)
+{
+ this->destination = destination ;
+}
+
+
+MessageAck JournalQueueAck::getMessageAck()
+{
+ return messageAck ;
+}
+
+void JournalQueueAck::setMessageAck(MessageAck messageAck)
+{
+ this->messageAck = messageAck ;
+}
diff --git a/openwire-cpp/src/command/JournalQueueAck.hpp b/openwire-cpp/src/command/JournalQueueAck.hpp
new file mode 100644
index 0000000000..99de590696
--- /dev/null
+++ b/openwire-cpp/src/command/JournalQueueAck.hpp
@@ -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.
+*/
+#ifndef JournalQueueAck_hpp_
+#define JournalQueueAck_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/AbstractCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for JournalQueueAck
+ *
+ *
+ * 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 JournalQueueAck : public AbstractCommand
+{
+private:
+ ActiveMQDestination destination ;
+ MessageAck messageAck ;
+
+public:
+ const static int TYPE = 52;
+
+public:
+ JournalQueueAck() ;
+ virtual ~JournalQueueAck() ;
+
+
+ virtual ActiveMQDestination getDestination() ;
+ virtual void setDestination(ActiveMQDestination destination) ;
+
+ virtual MessageAck getMessageAck() ;
+ virtual void setMessageAck(MessageAck messageAck) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*JournalQueueAck_hpp_*/
diff --git a/openwire-cpp/src/command/JournalTopicAck.cpp b/openwire-cpp/src/command/JournalTopicAck.cpp
new file mode 100644
index 0000000000..e02c0d4819
--- /dev/null
+++ b/openwire-cpp/src/command/JournalTopicAck.cpp
@@ -0,0 +1,109 @@
+/*
+* 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 "command/JournalTopicAck.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for JournalTopicAck
+ *
+ *
+ * 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
+ *
+ */
+JournalTopicAck::JournalTopicAck()
+{
+ this->destination = NULL ;
+ this->messageId = NULL ;
+ this->messageSequenceId = NULL ;
+ this->subscritionName = NULL ;
+ this->clientId = NULL ;
+ this->transactionId = NULL ;
+}
+
+JournalTopicAck::~JournalTopicAck()
+{
+}
+
+
+ActiveMQDestination JournalTopicAck::getDestination()
+{
+ return destination ;
+}
+
+void JournalTopicAck::setDestination(ActiveMQDestination destination)
+{
+ this->destination = destination ;
+}
+
+
+p JournalTopicAck::getMessageId()
+{
+ return messageId ;
+}
+
+void JournalTopicAck::setMessageId(p messageId)
+{
+ this->messageId = messageId ;
+}
+
+
+long JournalTopicAck::getMessageSequenceId()
+{
+ return messageSequenceId ;
+}
+
+void JournalTopicAck::setMessageSequenceId(long messageSequenceId)
+{
+ this->messageSequenceId = messageSequenceId ;
+}
+
+
+p JournalTopicAck::getSubscritionName()
+{
+ return subscritionName ;
+}
+
+void JournalTopicAck::setSubscritionName(p subscritionName)
+{
+ this->subscritionName = subscritionName ;
+}
+
+
+p JournalTopicAck::getClientId()
+{
+ return clientId ;
+}
+
+void JournalTopicAck::setClientId(p clientId)
+{
+ this->clientId = clientId ;
+}
+
+
+p JournalTopicAck::getTransactionId()
+{
+ return transactionId ;
+}
+
+void JournalTopicAck::setTransactionId(p transactionId)
+{
+ this->transactionId = transactionId ;
+}
diff --git a/openwire-cpp/src/command/JournalTopicAck.hpp b/openwire-cpp/src/command/JournalTopicAck.hpp
new file mode 100644
index 0000000000..adeefde936
--- /dev/null
+++ b/openwire-cpp/src/command/JournalTopicAck.hpp
@@ -0,0 +1,99 @@
+/*
+* 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 JournalTopicAck_hpp_
+#define JournalTopicAck_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/AbstractCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for JournalTopicAck
+ *
+ *
+ * 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 JournalTopicAck : public AbstractCommand
+{
+private:
+ ActiveMQDestination destination ;
+ p messageId ;
+ long messageSequenceId ;
+ p subscritionName ;
+ p clientId ;
+ p transactionId ;
+
+public:
+ const static int TYPE = 50;
+
+public:
+ JournalTopicAck() ;
+ virtual ~JournalTopicAck() ;
+
+
+ virtual ActiveMQDestination getDestination() ;
+ virtual void setDestination(ActiveMQDestination destination) ;
+
+ virtual p getMessageId() ;
+ virtual void setMessageId(p messageId) ;
+
+ virtual long getMessageSequenceId() ;
+ virtual void setMessageSequenceId(long messageSequenceId) ;
+
+ virtual p getSubscritionName() ;
+ virtual void setSubscritionName(p subscritionName) ;
+
+ virtual p getClientId() ;
+ virtual void setClientId(p clientId) ;
+
+ virtual p getTransactionId() ;
+ virtual void setTransactionId(p transactionId) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*JournalTopicAck_hpp_*/
diff --git a/openwire-cpp/src/command/JournalTrace.cpp b/openwire-cpp/src/command/JournalTrace.cpp
new file mode 100644
index 0000000000..3221d9b173
--- /dev/null
+++ b/openwire-cpp/src/command/JournalTrace.cpp
@@ -0,0 +1,49 @@
+/*
+* 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 "command/JournalTrace.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for JournalTrace
+ *
+ *
+ * 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
+ *
+ */
+JournalTrace::JournalTrace()
+{
+ this->message = NULL ;
+}
+
+JournalTrace::~JournalTrace()
+{
+}
+
+
+p JournalTrace::getMessage()
+{
+ return message ;
+}
+
+void JournalTrace::setMessage(p message)
+{
+ this->message = message ;
+}
diff --git a/openwire-cpp/src/command/JournalTrace.hpp b/openwire-cpp/src/command/JournalTrace.hpp
new file mode 100644
index 0000000000..2b4b1a1aa6
--- /dev/null
+++ b/openwire-cpp/src/command/JournalTrace.hpp
@@ -0,0 +1,79 @@
+/*
+* 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 JournalTrace_hpp_
+#define JournalTrace_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/AbstractCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for JournalTrace
+ *
+ *
+ * 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 JournalTrace : public AbstractCommand
+{
+private:
+ p message ;
+
+public:
+ const static int TYPE = 53;
+
+public:
+ JournalTrace() ;
+ virtual ~JournalTrace() ;
+
+
+ virtual p getMessage() ;
+ virtual void setMessage(p message) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*JournalTrace_hpp_*/
diff --git a/openwire-cpp/src/command/JournalTransaction.cpp b/openwire-cpp/src/command/JournalTransaction.cpp
new file mode 100644
index 0000000000..9bd922efe8
--- /dev/null
+++ b/openwire-cpp/src/command/JournalTransaction.cpp
@@ -0,0 +1,73 @@
+/*
+* 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 "command/JournalTransaction.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for JournalTransaction
+ *
+ *
+ * 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
+ *
+ */
+JournalTransaction::JournalTransaction()
+{
+ this->transactionId = NULL ;
+ this->type = NULL ;
+ this->wasPrepared = NULL ;
+}
+
+JournalTransaction::~JournalTransaction()
+{
+}
+
+
+p JournalTransaction::getTransactionId()
+{
+ return transactionId ;
+}
+
+void JournalTransaction::setTransactionId(p transactionId)
+{
+ this->transactionId = transactionId ;
+}
+
+
+byte JournalTransaction::getType()
+{
+ return type ;
+}
+
+void JournalTransaction::setType(byte type)
+{
+ this->type = type ;
+}
+
+
+bool JournalTransaction::getWasPrepared()
+{
+ return wasPrepared ;
+}
+
+void JournalTransaction::setWasPrepared(bool wasPrepared)
+{
+ this->wasPrepared = wasPrepared ;
+}
diff --git a/openwire-cpp/src/command/JournalTransaction.hpp b/openwire-cpp/src/command/JournalTransaction.hpp
new file mode 100644
index 0000000000..470cda64a0
--- /dev/null
+++ b/openwire-cpp/src/command/JournalTransaction.hpp
@@ -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 JournalTransaction_hpp_
+#define JournalTransaction_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/AbstractCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for JournalTransaction
+ *
+ *
+ * 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 JournalTransaction : public AbstractCommand
+{
+private:
+ p transactionId ;
+ byte type ;
+ bool wasPrepared ;
+
+public:
+ const static int TYPE = 54;
+
+public:
+ JournalTransaction() ;
+ virtual ~JournalTransaction() ;
+
+
+ virtual p getTransactionId() ;
+ virtual void setTransactionId(p transactionId) ;
+
+ virtual byte getType() ;
+ virtual void setType(byte type) ;
+
+ virtual bool getWasPrepared() ;
+ virtual void setWasPrepared(bool wasPrepared) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*JournalTransaction_hpp_*/
diff --git a/openwire-cpp/src/command/KeepAliveInfo.cpp b/openwire-cpp/src/command/KeepAliveInfo.cpp
new file mode 100644
index 0000000000..a04623f03c
--- /dev/null
+++ b/openwire-cpp/src/command/KeepAliveInfo.cpp
@@ -0,0 +1,37 @@
+/*
+* 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 "command/KeepAliveInfo.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for KeepAliveInfo
+ *
+ *
+ * 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
+ *
+ */
+KeepAliveInfo::KeepAliveInfo()
+{
+}
+
+KeepAliveInfo::~KeepAliveInfo()
+{
+}
diff --git a/openwire-cpp/src/command/KeepAliveInfo.hpp b/openwire-cpp/src/command/KeepAliveInfo.hpp
new file mode 100644
index 0000000000..883dbc5b2a
--- /dev/null
+++ b/openwire-cpp/src/command/KeepAliveInfo.hpp
@@ -0,0 +1,75 @@
+/*
+* 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 KeepAliveInfo_hpp_
+#define KeepAliveInfo_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/AbstractCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for KeepAliveInfo
+ *
+ *
+ * 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 KeepAliveInfo : public AbstractCommand
+{
+private:
+
+public:
+ const static int TYPE = 10;
+
+public:
+ KeepAliveInfo() ;
+ virtual ~KeepAliveInfo() ;
+
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*KeepAliveInfo_hpp_*/
diff --git a/openwire-cpp/src/command/LocalTransactionId.cpp b/openwire-cpp/src/command/LocalTransactionId.cpp
new file mode 100644
index 0000000000..a8fb1e3c7d
--- /dev/null
+++ b/openwire-cpp/src/command/LocalTransactionId.cpp
@@ -0,0 +1,61 @@
+/*
+* 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 "command/LocalTransactionId.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for LocalTransactionId
+ *
+ *
+ * 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
+ *
+ */
+LocalTransactionId::LocalTransactionId()
+{
+ this->value = NULL ;
+ this->connectionId = NULL ;
+}
+
+LocalTransactionId::~LocalTransactionId()
+{
+}
+
+
+long LocalTransactionId::getValue()
+{
+ return value ;
+}
+
+void LocalTransactionId::setValue(long value)
+{
+ this->value = value ;
+}
+
+
+p LocalTransactionId::getConnectionId()
+{
+ return connectionId ;
+}
+
+void LocalTransactionId::setConnectionId(p connectionId)
+{
+ this->connectionId = connectionId ;
+}
diff --git a/openwire-cpp/src/command/LocalTransactionId.hpp b/openwire-cpp/src/command/LocalTransactionId.hpp
new file mode 100644
index 0000000000..eddd259f47
--- /dev/null
+++ b/openwire-cpp/src/command/LocalTransactionId.hpp
@@ -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.
+*/
+#ifndef LocalTransactionId_hpp_
+#define LocalTransactionId_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/TransactionId.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for LocalTransactionId
+ *
+ *
+ * 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 LocalTransactionId : public TransactionId
+{
+private:
+ long value ;
+ p connectionId ;
+
+public:
+ const static int TYPE = 111;
+
+public:
+ LocalTransactionId() ;
+ virtual ~LocalTransactionId() ;
+
+
+ virtual long getValue() ;
+ virtual void setValue(long value) ;
+
+ virtual p getConnectionId() ;
+ virtual void setConnectionId(p connectionId) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*LocalTransactionId_hpp_*/
diff --git a/openwire-cpp/src/command/MessageDispatch.cpp b/openwire-cpp/src/command/MessageDispatch.cpp
new file mode 100644
index 0000000000..332f76e56b
--- /dev/null
+++ b/openwire-cpp/src/command/MessageDispatch.cpp
@@ -0,0 +1,85 @@
+/*
+* 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 "command/MessageDispatch.hpp"
+
+using namespace apache::activemq::client::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 = NULL ;
+}
+
+MessageDispatch::~MessageDispatch()
+{
+}
+
+
+p MessageDispatch::getConsumerId()
+{
+ return consumerId ;
+}
+
+void MessageDispatch::setConsumerId(p consumerId)
+{
+ this->consumerId = consumerId ;
+}
+
+
+ActiveMQDestination MessageDispatch::getDestination()
+{
+ return destination ;
+}
+
+void MessageDispatch::setDestination(ActiveMQDestination destination)
+{
+ this->destination = destination ;
+}
+
+
+Message MessageDispatch::getMessage()
+{
+ return message ;
+}
+
+void MessageDispatch::setMessage(Message message)
+{
+ this->message = message ;
+}
+
+
+int MessageDispatch::getRedeliveryCounter()
+{
+ return redeliveryCounter ;
+}
+
+void MessageDispatch::setRedeliveryCounter(int redeliveryCounter)
+{
+ this->redeliveryCounter = redeliveryCounter ;
+}
diff --git a/openwire-cpp/src/command/MessageDispatch.hpp b/openwire-cpp/src/command/MessageDispatch.hpp
new file mode 100644
index 0000000000..4ab200a546
--- /dev/null
+++ b/openwire-cpp/src/command/MessageDispatch.hpp
@@ -0,0 +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 MessageDispatch_hpp_
+#define MessageDispatch_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/BaseCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * 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
+{
+private:
+ p consumerId ;
+ ActiveMQDestination destination ;
+ Message message ;
+ int redeliveryCounter ;
+
+public:
+ const static int TYPE = 21;
+
+public:
+ MessageDispatch() ;
+ virtual ~MessageDispatch() ;
+
+
+ virtual p getConsumerId() ;
+ virtual void setConsumerId(p consumerId) ;
+
+ virtual ActiveMQDestination getDestination() ;
+ virtual void setDestination(ActiveMQDestination destination) ;
+
+ virtual Message getMessage() ;
+ virtual void setMessage(Message message) ;
+
+ virtual int getRedeliveryCounter() ;
+ virtual void setRedeliveryCounter(int redeliveryCounter) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*MessageDispatch_hpp_*/
diff --git a/openwire-cpp/src/command/MessageDispatchNotification.cpp b/openwire-cpp/src/command/MessageDispatchNotification.cpp
new file mode 100644
index 0000000000..727157b85b
--- /dev/null
+++ b/openwire-cpp/src/command/MessageDispatchNotification.cpp
@@ -0,0 +1,85 @@
+/*
+* 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 "command/MessageDispatchNotification.hpp"
+
+using namespace apache::activemq::client::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 = NULL ;
+ this->messageId = NULL ;
+}
+
+MessageDispatchNotification::~MessageDispatchNotification()
+{
+}
+
+
+p MessageDispatchNotification::getConsumerId()
+{
+ return consumerId ;
+}
+
+void MessageDispatchNotification::setConsumerId(p consumerId)
+{
+ this->consumerId = consumerId ;
+}
+
+
+ActiveMQDestination MessageDispatchNotification::getDestination()
+{
+ return destination ;
+}
+
+void MessageDispatchNotification::setDestination(ActiveMQDestination destination)
+{
+ this->destination = destination ;
+}
+
+
+long MessageDispatchNotification::getDeliverySequenceId()
+{
+ return deliverySequenceId ;
+}
+
+void MessageDispatchNotification::setDeliverySequenceId(long deliverySequenceId)
+{
+ this->deliverySequenceId = deliverySequenceId ;
+}
+
+
+p MessageDispatchNotification::getMessageId()
+{
+ return messageId ;
+}
+
+void MessageDispatchNotification::setMessageId(p messageId)
+{
+ this->messageId = messageId ;
+}
diff --git a/openwire-cpp/src/command/MessageDispatchNotification.hpp b/openwire-cpp/src/command/MessageDispatchNotification.hpp
new file mode 100644
index 0000000000..d74d151520
--- /dev/null
+++ b/openwire-cpp/src/command/MessageDispatchNotification.hpp
@@ -0,0 +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 MessageDispatchNotification_hpp_
+#define MessageDispatchNotification_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/BaseCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * 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
+{
+private:
+ p consumerId ;
+ ActiveMQDestination destination ;
+ long deliverySequenceId ;
+ p messageId ;
+
+public:
+ const static int TYPE = 90;
+
+public:
+ MessageDispatchNotification() ;
+ virtual ~MessageDispatchNotification() ;
+
+
+ virtual p getConsumerId() ;
+ virtual void setConsumerId(p consumerId) ;
+
+ virtual ActiveMQDestination getDestination() ;
+ virtual void setDestination(ActiveMQDestination destination) ;
+
+ virtual long getDeliverySequenceId() ;
+ virtual void setDeliverySequenceId(long deliverySequenceId) ;
+
+ virtual p getMessageId() ;
+ virtual void setMessageId(p messageId) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*MessageDispatchNotification_hpp_*/
diff --git a/openwire-cpp/src/command/MessageId.cpp b/openwire-cpp/src/command/MessageId.cpp
new file mode 100644
index 0000000000..f3ee9e342e
--- /dev/null
+++ b/openwire-cpp/src/command/MessageId.cpp
@@ -0,0 +1,73 @@
+/*
+* 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 "command/MessageId.hpp"
+
+using namespace apache::activemq::client::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 = NULL ;
+ this->brokerSequenceId = NULL ;
+}
+
+MessageId::~MessageId()
+{
+}
+
+
+p MessageId::getProducerId()
+{
+ return producerId ;
+}
+
+void MessageId::setProducerId(p producerId)
+{
+ this->producerId = producerId ;
+}
+
+
+long MessageId::getProducerSequenceId()
+{
+ return producerSequenceId ;
+}
+
+void MessageId::setProducerSequenceId(long producerSequenceId)
+{
+ this->producerSequenceId = producerSequenceId ;
+}
+
+
+long MessageId::getBrokerSequenceId()
+{
+ return brokerSequenceId ;
+}
+
+void MessageId::setBrokerSequenceId(long brokerSequenceId)
+{
+ this->brokerSequenceId = brokerSequenceId ;
+}
diff --git a/openwire-cpp/src/command/MessageId.hpp b/openwire-cpp/src/command/MessageId.hpp
new file mode 100644
index 0000000000..98613e427d
--- /dev/null
+++ b/openwire-cpp/src/command/MessageId.hpp
@@ -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 MessageId_hpp_
+#define MessageId_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/AbstractCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * 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
+{
+private:
+ p producerId ;
+ long producerSequenceId ;
+ long brokerSequenceId ;
+
+public:
+ const static int TYPE = 110;
+
+public:
+ MessageId() ;
+ virtual ~MessageId() ;
+
+
+ virtual p getProducerId() ;
+ virtual void setProducerId(p producerId) ;
+
+ virtual long getProducerSequenceId() ;
+ virtual void setProducerSequenceId(long producerSequenceId) ;
+
+ virtual long getBrokerSequenceId() ;
+ virtual void setBrokerSequenceId(long brokerSequenceId) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*MessageId_hpp_*/
diff --git a/openwire-cpp/src/command/RemoveSubscriptionInfo.cpp b/openwire-cpp/src/command/RemoveSubscriptionInfo.cpp
new file mode 100644
index 0000000000..496cfa0de6
--- /dev/null
+++ b/openwire-cpp/src/command/RemoveSubscriptionInfo.cpp
@@ -0,0 +1,73 @@
+/*
+* 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 "command/RemoveSubscriptionInfo.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+ *
+ *
+ * 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
+ *
+ */
+RemoveSubscriptionInfo::RemoveSubscriptionInfo()
+{
+ this->connectionId = NULL ;
+ this->subcriptionName = NULL ;
+ this->clientId = NULL ;
+}
+
+RemoveSubscriptionInfo::~RemoveSubscriptionInfo()
+{
+}
+
+
+p RemoveSubscriptionInfo::getConnectionId()
+{
+ return connectionId ;
+}
+
+void RemoveSubscriptionInfo::setConnectionId(p connectionId)
+{
+ this->connectionId = connectionId ;
+}
+
+
+p RemoveSubscriptionInfo::getSubcriptionName()
+{
+ return subcriptionName ;
+}
+
+void RemoveSubscriptionInfo::setSubcriptionName(p subcriptionName)
+{
+ this->subcriptionName = subcriptionName ;
+}
+
+
+p RemoveSubscriptionInfo::getClientId()
+{
+ return clientId ;
+}
+
+void RemoveSubscriptionInfo::setClientId(p clientId)
+{
+ this->clientId = clientId ;
+}
diff --git a/openwire-cpp/src/command/RemoveSubscriptionInfo.hpp b/openwire-cpp/src/command/RemoveSubscriptionInfo.hpp
new file mode 100644
index 0000000000..d88d1bccef
--- /dev/null
+++ b/openwire-cpp/src/command/RemoveSubscriptionInfo.hpp
@@ -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 RemoveSubscriptionInfo_hpp_
+#define RemoveSubscriptionInfo_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/BaseCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+ *
+ *
+ * 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 RemoveSubscriptionInfo : public BaseCommand
+{
+private:
+ p connectionId ;
+ p subcriptionName ;
+ p clientId ;
+
+public:
+ const static int TYPE = 0;
+
+public:
+ RemoveSubscriptionInfo() ;
+ virtual ~RemoveSubscriptionInfo() ;
+
+
+ virtual p getConnectionId() ;
+ virtual void setConnectionId(p connectionId) ;
+
+ virtual p getSubcriptionName() ;
+ virtual void setSubcriptionName(p subcriptionName) ;
+
+ virtual p getClientId() ;
+ virtual void setClientId(p clientId) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*RemoveSubscriptionInfo_hpp_*/
diff --git a/openwire-cpp/src/command/ShutdownInfo.cpp b/openwire-cpp/src/command/ShutdownInfo.cpp
new file mode 100644
index 0000000000..3177ea03d0
--- /dev/null
+++ b/openwire-cpp/src/command/ShutdownInfo.cpp
@@ -0,0 +1,37 @@
+/*
+* 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 "command/ShutdownInfo.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for ShutdownInfo
+ *
+ *
+ * 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
+ *
+ */
+ShutdownInfo::ShutdownInfo()
+{
+}
+
+ShutdownInfo::~ShutdownInfo()
+{
+}
diff --git a/openwire-cpp/src/command/ShutdownInfo.hpp b/openwire-cpp/src/command/ShutdownInfo.hpp
new file mode 100644
index 0000000000..be9a388672
--- /dev/null
+++ b/openwire-cpp/src/command/ShutdownInfo.hpp
@@ -0,0 +1,75 @@
+/*
+* 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 ShutdownInfo_hpp_
+#define ShutdownInfo_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/BaseCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for ShutdownInfo
+ *
+ *
+ * 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 ShutdownInfo : public BaseCommand
+{
+private:
+
+public:
+ const static int TYPE = 11;
+
+public:
+ ShutdownInfo() ;
+ virtual ~ShutdownInfo() ;
+
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*ShutdownInfo_hpp_*/
diff --git a/openwire-cpp/src/command/SubscriptionInfo.cpp b/openwire-cpp/src/command/SubscriptionInfo.cpp
new file mode 100644
index 0000000000..e4a739588b
--- /dev/null
+++ b/openwire-cpp/src/command/SubscriptionInfo.cpp
@@ -0,0 +1,85 @@
+/*
+* 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 "command/SubscriptionInfo.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for SubscriptionInfo
+ *
+ *
+ * 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
+ *
+ */
+SubscriptionInfo::SubscriptionInfo()
+{
+ this->clientId = NULL ;
+ this->destination = NULL ;
+ this->selector = NULL ;
+ this->subcriptionName = NULL ;
+}
+
+SubscriptionInfo::~SubscriptionInfo()
+{
+}
+
+
+p SubscriptionInfo::getClientId()
+{
+ return clientId ;
+}
+
+void SubscriptionInfo::setClientId(p clientId)
+{
+ this->clientId = clientId ;
+}
+
+
+ActiveMQDestination SubscriptionInfo::getDestination()
+{
+ return destination ;
+}
+
+void SubscriptionInfo::setDestination(ActiveMQDestination destination)
+{
+ this->destination = destination ;
+}
+
+
+p SubscriptionInfo::getSelector()
+{
+ return selector ;
+}
+
+void SubscriptionInfo::setSelector(p selector)
+{
+ this->selector = selector ;
+}
+
+
+p SubscriptionInfo::getSubcriptionName()
+{
+ return subcriptionName ;
+}
+
+void SubscriptionInfo::setSubcriptionName(p subcriptionName)
+{
+ this->subcriptionName = subcriptionName ;
+}
diff --git a/openwire-cpp/src/command/SubscriptionInfo.hpp b/openwire-cpp/src/command/SubscriptionInfo.hpp
new file mode 100644
index 0000000000..626e2dd729
--- /dev/null
+++ b/openwire-cpp/src/command/SubscriptionInfo.hpp
@@ -0,0 +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 SubscriptionInfo_hpp_
+#define SubscriptionInfo_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/AbstractCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for SubscriptionInfo
+ *
+ *
+ * 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 SubscriptionInfo : public AbstractCommand
+{
+private:
+ p clientId ;
+ ActiveMQDestination destination ;
+ p selector ;
+ p subcriptionName ;
+
+public:
+ const static int TYPE = 55;
+
+public:
+ SubscriptionInfo() ;
+ virtual ~SubscriptionInfo() ;
+
+
+ virtual p getClientId() ;
+ virtual void setClientId(p clientId) ;
+
+ virtual ActiveMQDestination getDestination() ;
+ virtual void setDestination(ActiveMQDestination destination) ;
+
+ virtual p getSelector() ;
+ virtual void setSelector(p selector) ;
+
+ virtual p getSubcriptionName() ;
+ virtual void setSubcriptionName(p subcriptionName) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*SubscriptionInfo_hpp_*/
diff --git a/openwire-cpp/src/command/TransactionId.cpp b/openwire-cpp/src/command/TransactionId.cpp
new file mode 100644
index 0000000000..f1e294f8db
--- /dev/null
+++ b/openwire-cpp/src/command/TransactionId.cpp
@@ -0,0 +1,37 @@
+/*
+* 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 "command/TransactionId.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for TransactionId
+ *
+ *
+ * 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
+ *
+ */
+TransactionId::TransactionId()
+{
+}
+
+TransactionId::~TransactionId()
+{
+}
diff --git a/openwire-cpp/src/command/TransactionId.hpp b/openwire-cpp/src/command/TransactionId.hpp
new file mode 100644
index 0000000000..2c84ea50f2
--- /dev/null
+++ b/openwire-cpp/src/command/TransactionId.hpp
@@ -0,0 +1,75 @@
+/*
+* 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 TransactionId_hpp_
+#define TransactionId_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/AbstractCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for TransactionId
+ *
+ *
+ * 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 TransactionId : public AbstractCommand
+{
+private:
+
+public:
+ const static int TYPE = 0;
+
+public:
+ TransactionId() ;
+ virtual ~TransactionId() ;
+
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*TransactionId_hpp_*/
diff --git a/openwire-cpp/src/command/TransactionInfo.cpp b/openwire-cpp/src/command/TransactionInfo.cpp
new file mode 100644
index 0000000000..80dc60736d
--- /dev/null
+++ b/openwire-cpp/src/command/TransactionInfo.cpp
@@ -0,0 +1,73 @@
+/*
+* 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 "command/TransactionInfo.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for TransactionInfo
+ *
+ *
+ * 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
+ *
+ */
+TransactionInfo::TransactionInfo()
+{
+ this->connectionId = NULL ;
+ this->transactionId = NULL ;
+ this->type = NULL ;
+}
+
+TransactionInfo::~TransactionInfo()
+{
+}
+
+
+p TransactionInfo::getConnectionId()
+{
+ return connectionId ;
+}
+
+void TransactionInfo::setConnectionId(p connectionId)
+{
+ this->connectionId = connectionId ;
+}
+
+
+p TransactionInfo::getTransactionId()
+{
+ return transactionId ;
+}
+
+void TransactionInfo::setTransactionId(p transactionId)
+{
+ this->transactionId = transactionId ;
+}
+
+
+byte TransactionInfo::getType()
+{
+ return type ;
+}
+
+void TransactionInfo::setType(byte type)
+{
+ this->type = type ;
+}
diff --git a/openwire-cpp/src/command/TransactionInfo.hpp b/openwire-cpp/src/command/TransactionInfo.hpp
new file mode 100644
index 0000000000..4314c106ff
--- /dev/null
+++ b/openwire-cpp/src/command/TransactionInfo.hpp
@@ -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 TransactionInfo_hpp_
+#define TransactionInfo_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/BaseCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for TransactionInfo
+ *
+ *
+ * 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 TransactionInfo : public BaseCommand
+{
+private:
+ p connectionId ;
+ p transactionId ;
+ byte type ;
+
+public:
+ const static int TYPE = 7;
+
+public:
+ TransactionInfo() ;
+ virtual ~TransactionInfo() ;
+
+
+ virtual p getConnectionId() ;
+ virtual void setConnectionId(p connectionId) ;
+
+ virtual p getTransactionId() ;
+ virtual void setTransactionId(p transactionId) ;
+
+ virtual byte getType() ;
+ virtual void setType(byte type) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*TransactionInfo_hpp_*/
diff --git a/openwire-cpp/src/command/WireFormatInfo.cpp b/openwire-cpp/src/command/WireFormatInfo.cpp
new file mode 100644
index 0000000000..0835796ff8
--- /dev/null
+++ b/openwire-cpp/src/command/WireFormatInfo.cpp
@@ -0,0 +1,121 @@
+/*
+* 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 "command/WireFormatInfo.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for WireFormatInfo
+ *
+ *
+ * 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
+ *
+ */
+WireFormatInfo::WireFormatInfo()
+{
+ this->magic = NULL ;
+ this->version = NULL ;
+ this->cacheEnabled = NULL ;
+ this->stackTraceEnabled = NULL ;
+ this->tcpNoDelayEnabled = NULL ;
+ this->prefixPacketSize = NULL ;
+ this->tightEncodingEnabled = NULL ;
+}
+
+WireFormatInfo::~WireFormatInfo()
+{
+}
+
+
+byte[] WireFormatInfo::getMagic()
+{
+ return magic ;
+}
+
+void WireFormatInfo::setMagic(byte[] magic)
+{
+ this->magic = magic ;
+}
+
+
+int WireFormatInfo::getVersion()
+{
+ return version ;
+}
+
+void WireFormatInfo::setVersion(int version)
+{
+ this->version = version ;
+}
+
+
+bool WireFormatInfo::getCacheEnabled()
+{
+ return cacheEnabled ;
+}
+
+void WireFormatInfo::setCacheEnabled(bool cacheEnabled)
+{
+ this->cacheEnabled = cacheEnabled ;
+}
+
+
+bool WireFormatInfo::getStackTraceEnabled()
+{
+ return stackTraceEnabled ;
+}
+
+void WireFormatInfo::setStackTraceEnabled(bool stackTraceEnabled)
+{
+ this->stackTraceEnabled = stackTraceEnabled ;
+}
+
+
+bool WireFormatInfo::getTcpNoDelayEnabled()
+{
+ return tcpNoDelayEnabled ;
+}
+
+void WireFormatInfo::setTcpNoDelayEnabled(bool tcpNoDelayEnabled)
+{
+ this->tcpNoDelayEnabled = tcpNoDelayEnabled ;
+}
+
+
+bool WireFormatInfo::getPrefixPacketSize()
+{
+ return prefixPacketSize ;
+}
+
+void WireFormatInfo::setPrefixPacketSize(bool prefixPacketSize)
+{
+ this->prefixPacketSize = prefixPacketSize ;
+}
+
+
+bool WireFormatInfo::getTightEncodingEnabled()
+{
+ return tightEncodingEnabled ;
+}
+
+void WireFormatInfo::setTightEncodingEnabled(bool tightEncodingEnabled)
+{
+ this->tightEncodingEnabled = tightEncodingEnabled ;
+}
diff --git a/openwire-cpp/src/command/WireFormatInfo.hpp b/openwire-cpp/src/command/WireFormatInfo.hpp
new file mode 100644
index 0000000000..07486fe88b
--- /dev/null
+++ b/openwire-cpp/src/command/WireFormatInfo.hpp
@@ -0,0 +1,103 @@
+/*
+* 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 WireFormatInfo_hpp_
+#define WireFormatInfo_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/AbstractCommand.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for WireFormatInfo
+ *
+ *
+ * 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 WireFormatInfo : public AbstractCommand
+{
+private:
+ byte[] magic ;
+ int version ;
+ bool cacheEnabled ;
+ bool stackTraceEnabled ;
+ bool tcpNoDelayEnabled ;
+ bool prefixPacketSize ;
+ bool tightEncodingEnabled ;
+
+public:
+ const static int TYPE = 1;
+
+public:
+ WireFormatInfo() ;
+ virtual ~WireFormatInfo() ;
+
+
+ virtual byte[] getMagic() ;
+ virtual void setMagic(byte[] magic) ;
+
+ virtual int getVersion() ;
+ virtual void setVersion(int version) ;
+
+ virtual bool getCacheEnabled() ;
+ virtual void setCacheEnabled(bool cacheEnabled) ;
+
+ virtual bool getStackTraceEnabled() ;
+ virtual void setStackTraceEnabled(bool stackTraceEnabled) ;
+
+ virtual bool getTcpNoDelayEnabled() ;
+ virtual void setTcpNoDelayEnabled(bool tcpNoDelayEnabled) ;
+
+ virtual bool getPrefixPacketSize() ;
+ virtual void setPrefixPacketSize(bool prefixPacketSize) ;
+
+ virtual bool getTightEncodingEnabled() ;
+ virtual void setTightEncodingEnabled(bool tightEncodingEnabled) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*WireFormatInfo_hpp_*/
diff --git a/openwire-cpp/src/command/XATransactionId.cpp b/openwire-cpp/src/command/XATransactionId.cpp
new file mode 100644
index 0000000000..3039af3400
--- /dev/null
+++ b/openwire-cpp/src/command/XATransactionId.cpp
@@ -0,0 +1,73 @@
+/*
+* 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 "command/XATransactionId.hpp"
+
+using namespace apache::activemq::client::command;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for XATransactionId
+ *
+ *
+ * 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
+ *
+ */
+XATransactionId::XATransactionId()
+{
+ this->formatId = NULL ;
+ this->globalTransactionId = NULL ;
+ this->branchQualifier = NULL ;
+}
+
+XATransactionId::~XATransactionId()
+{
+}
+
+
+int XATransactionId::getFormatId()
+{
+ return formatId ;
+}
+
+void XATransactionId::setFormatId(int formatId)
+{
+ this->formatId = formatId ;
+}
+
+
+byte[] XATransactionId::getGlobalTransactionId()
+{
+ return globalTransactionId ;
+}
+
+void XATransactionId::setGlobalTransactionId(byte[] globalTransactionId)
+{
+ this->globalTransactionId = globalTransactionId ;
+}
+
+
+byte[] XATransactionId::getBranchQualifier()
+{
+ return branchQualifier ;
+}
+
+void XATransactionId::setBranchQualifier(byte[] branchQualifier)
+{
+ this->branchQualifier = branchQualifier ;
+}
diff --git a/openwire-cpp/src/command/XATransactionId.hpp b/openwire-cpp/src/command/XATransactionId.hpp
new file mode 100644
index 0000000000..2d3e34fb1d
--- /dev/null
+++ b/openwire-cpp/src/command/XATransactionId.hpp
@@ -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 XATransactionId_hpp_
+#define XATransactionId_hpp_
+
+#include
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BaseCommand.hpp"
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "command/TransactionId.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace command
+ {
+ using namespace ifr;
+ using namespace apache::activemq::client;
+
+/*
+ *
+ * Marshalling code for Open Wire Format for XATransactionId
+ *
+ *
+ * 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 XATransactionId : public TransactionId
+{
+private:
+ int formatId ;
+ byte[] globalTransactionId ;
+ byte[] branchQualifier ;
+
+public:
+ const static int TYPE = 112;
+
+public:
+ XATransactionId() ;
+ virtual ~XATransactionId() ;
+
+
+ virtual int getFormatId() ;
+ virtual void setFormatId(int formatId) ;
+
+ virtual byte[] getGlobalTransactionId() ;
+ virtual void setGlobalTransactionId(byte[] globalTransactionId) ;
+
+ virtual byte[] getBranchQualifier() ;
+ virtual void setBranchQualifier(byte[] branchQualifier) ;
+
+
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*XATransactionId_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQBytesMessageMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQBytesMessageMarshaller.cpp
new file mode 100644
index 0000000000..75e51a393f
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQBytesMessageMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/ActiveMQBytesMessageMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQBytesMessage
+ *
+ * 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
+ */
+
+ActiveMQBytesMessageMarshaller::ActiveMQBytesMessageMarshaller()
+{
+ // no-op
+}
+
+ActiveMQBytesMessageMarshaller::~ActiveMQBytesMessageMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ActiveMQBytesMessageMarshaller::createObject()
+{
+ return new ActiveMQBytesMessage();
+}
+
+byte ActiveMQBytesMessageMarshaller::getDataStructureType()
+{
+ return ActiveMQBytesMessage.ID_ActiveMQBytesMessage;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQBytesMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQBytesMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQBytesMessage& info = (ActiveMQBytesMessage&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQBytesMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQBytesMessageMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQBytesMessageMarshaller.hpp
new file mode 100644
index 0000000000..a9e81d57ab
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQBytesMessageMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQBytesMessageMarshaller_hpp_
+#define ActiveMQBytesMessageMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ActiveMQMessageMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQBytesMessageMarshaller : public ActiveMQMessageMarshaller
+{
+public:
+ ActiveMQBytesMessageMarshaller() ;
+ virtual ~ActiveMQBytesMessageMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQBytesMessageMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQDestinationMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQDestinationMarshaller.cpp
new file mode 100644
index 0000000000..849a7e7f65
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQDestinationMarshaller.cpp
@@ -0,0 +1,74 @@
+/*
+ * 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 "marshal/ActiveMQDestinationMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQDestination
+ *
+ * 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
+ */
+
+ActiveMQDestinationMarshaller::ActiveMQDestinationMarshaller()
+{
+ // no-op
+}
+
+ActiveMQDestinationMarshaller::~ActiveMQDestinationMarshaller()
+{
+ // no-op
+}
+
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQDestinationMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ ActiveMQDestination& info = (ActiveMQDestination&) o;
+ info.setPhysicalName(tightUnmarshalString(dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQDestinationMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQDestination& info = (ActiveMQDestination&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += writeString(info.getPhysicalName(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQDestinationMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ ActiveMQDestination& info = (ActiveMQDestination&) o;
+ writeString(info.getPhysicalName(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQDestinationMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQDestinationMarshaller.hpp
new file mode 100644
index 0000000000..06577be2ed
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQDestinationMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQDestinationMarshaller_hpp_
+#define ActiveMQDestinationMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQDestinationMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ ActiveMQDestinationMarshaller() ;
+ virtual ~ActiveMQDestinationMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQDestinationMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQMapMessageMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQMapMessageMarshaller.cpp
new file mode 100644
index 0000000000..eb01fdebbf
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQMapMessageMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/ActiveMQMapMessageMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQMapMessage
+ *
+ * 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
+ */
+
+ActiveMQMapMessageMarshaller::ActiveMQMapMessageMarshaller()
+{
+ // no-op
+}
+
+ActiveMQMapMessageMarshaller::~ActiveMQMapMessageMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ActiveMQMapMessageMarshaller::createObject()
+{
+ return new ActiveMQMapMessage();
+}
+
+byte ActiveMQMapMessageMarshaller::getDataStructureType()
+{
+ return ActiveMQMapMessage.ID_ActiveMQMapMessage;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQMapMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQMapMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQMapMessage& info = (ActiveMQMapMessage&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQMapMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQMapMessageMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQMapMessageMarshaller.hpp
new file mode 100644
index 0000000000..af94909390
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQMapMessageMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQMapMessageMarshaller_hpp_
+#define ActiveMQMapMessageMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ActiveMQMessageMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQMapMessageMarshaller : public ActiveMQMessageMarshaller
+{
+public:
+ ActiveMQMapMessageMarshaller() ;
+ virtual ~ActiveMQMapMessageMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQMapMessageMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQMessageMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQMessageMarshaller.cpp
new file mode 100644
index 0000000000..578500725e
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQMessageMarshaller.cpp
@@ -0,0 +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.
+ */
+#include "marshal/ActiveMQMessageMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQMessage
+ *
+ * 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
+ */
+
+ActiveMQMessageMarshaller::ActiveMQMessageMarshaller()
+{
+ // no-op
+}
+
+ActiveMQMessageMarshaller::~ActiveMQMessageMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ActiveMQMessageMarshaller::createObject()
+{
+ return new ActiveMQMessage();
+}
+
+byte ActiveMQMessageMarshaller::getDataStructureType()
+{
+ return ActiveMQMessage.ID_ActiveMQMessage;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ ActiveMQMessage& info = (ActiveMQMessage&) o;
+
+ info.beforeUnmarshall(wireFormat);
+
+
+ info.afterUnmarshall(wireFormat);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQMessage& info = (ActiveMQMessage&) o;
+
+ info.beforeMarshall(wireFormat);
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ ActiveMQMessage& info = (ActiveMQMessage&) o;
+
+ info.afterMarshall(wireFormat);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQMessageMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQMessageMarshaller.hpp
new file mode 100644
index 0000000000..77dd08a848
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQMessageMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQMessageMarshaller_hpp_
+#define ActiveMQMessageMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/MessageMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQMessageMarshaller : public MessageMarshaller
+{
+public:
+ ActiveMQMessageMarshaller() ;
+ virtual ~ActiveMQMessageMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQMessageMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQObjectMessageMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQObjectMessageMarshaller.cpp
new file mode 100644
index 0000000000..9cef472de3
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQObjectMessageMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/ActiveMQObjectMessageMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQObjectMessage
+ *
+ * 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
+ */
+
+ActiveMQObjectMessageMarshaller::ActiveMQObjectMessageMarshaller()
+{
+ // no-op
+}
+
+ActiveMQObjectMessageMarshaller::~ActiveMQObjectMessageMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ActiveMQObjectMessageMarshaller::createObject()
+{
+ return new ActiveMQObjectMessage();
+}
+
+byte ActiveMQObjectMessageMarshaller::getDataStructureType()
+{
+ return ActiveMQObjectMessage.ID_ActiveMQObjectMessage;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQObjectMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQObjectMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQObjectMessage& info = (ActiveMQObjectMessage&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQObjectMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQObjectMessageMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQObjectMessageMarshaller.hpp
new file mode 100644
index 0000000000..12c47051b7
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQObjectMessageMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQObjectMessageMarshaller_hpp_
+#define ActiveMQObjectMessageMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ActiveMQMessageMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQObjectMessageMarshaller : public ActiveMQMessageMarshaller
+{
+public:
+ ActiveMQObjectMessageMarshaller() ;
+ virtual ~ActiveMQObjectMessageMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQObjectMessageMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQQueueMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQQueueMarshaller.cpp
new file mode 100644
index 0000000000..37f6188696
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQQueueMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/ActiveMQQueueMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQQueue
+ *
+ * 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
+ */
+
+ActiveMQQueueMarshaller::ActiveMQQueueMarshaller()
+{
+ // no-op
+}
+
+ActiveMQQueueMarshaller::~ActiveMQQueueMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ActiveMQQueueMarshaller::createObject()
+{
+ return new ActiveMQQueue();
+}
+
+byte ActiveMQQueueMarshaller::getDataStructureType()
+{
+ return ActiveMQQueue.ID_ActiveMQQueue;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQQueueMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQQueueMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQQueue& info = (ActiveMQQueue&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQQueueMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQQueueMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQQueueMarshaller.hpp
new file mode 100644
index 0000000000..c8744e417e
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQQueueMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQQueueMarshaller_hpp_
+#define ActiveMQQueueMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ActiveMQDestinationMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQQueueMarshaller : public ActiveMQDestinationMarshaller
+{
+public:
+ ActiveMQQueueMarshaller() ;
+ virtual ~ActiveMQQueueMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQQueueMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQStreamMessageMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQStreamMessageMarshaller.cpp
new file mode 100644
index 0000000000..94d262a301
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQStreamMessageMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/ActiveMQStreamMessageMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQStreamMessage
+ *
+ * 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
+ */
+
+ActiveMQStreamMessageMarshaller::ActiveMQStreamMessageMarshaller()
+{
+ // no-op
+}
+
+ActiveMQStreamMessageMarshaller::~ActiveMQStreamMessageMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ActiveMQStreamMessageMarshaller::createObject()
+{
+ return new ActiveMQStreamMessage();
+}
+
+byte ActiveMQStreamMessageMarshaller::getDataStructureType()
+{
+ return ActiveMQStreamMessage.ID_ActiveMQStreamMessage;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQStreamMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQStreamMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQStreamMessage& info = (ActiveMQStreamMessage&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQStreamMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQStreamMessageMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQStreamMessageMarshaller.hpp
new file mode 100644
index 0000000000..7c2e189445
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQStreamMessageMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQStreamMessageMarshaller_hpp_
+#define ActiveMQStreamMessageMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ActiveMQMessageMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQStreamMessageMarshaller : public ActiveMQMessageMarshaller
+{
+public:
+ ActiveMQStreamMessageMarshaller() ;
+ virtual ~ActiveMQStreamMessageMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQStreamMessageMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQTempDestinationMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQTempDestinationMarshaller.cpp
new file mode 100644
index 0000000000..81dcf3f130
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQTempDestinationMarshaller.cpp
@@ -0,0 +1,67 @@
+/*
+ * 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 "marshal/ActiveMQTempDestinationMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQTempDestination
+ *
+ * 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
+ */
+
+ActiveMQTempDestinationMarshaller::ActiveMQTempDestinationMarshaller()
+{
+ // no-op
+}
+
+ActiveMQTempDestinationMarshaller::~ActiveMQTempDestinationMarshaller()
+{
+ // no-op
+}
+
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQTempDestinationMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQTempDestinationMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQTempDestination& info = (ActiveMQTempDestination&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQTempDestinationMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQTempDestinationMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQTempDestinationMarshaller.hpp
new file mode 100644
index 0000000000..91453e9236
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQTempDestinationMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQTempDestinationMarshaller_hpp_
+#define ActiveMQTempDestinationMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ActiveMQDestinationMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQTempDestinationMarshaller : public ActiveMQDestinationMarshaller
+{
+public:
+ ActiveMQTempDestinationMarshaller() ;
+ virtual ~ActiveMQTempDestinationMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQTempDestinationMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQTempQueueMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQTempQueueMarshaller.cpp
new file mode 100644
index 0000000000..39af9b5078
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQTempQueueMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/ActiveMQTempQueueMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQTempQueue
+ *
+ * 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
+ */
+
+ActiveMQTempQueueMarshaller::ActiveMQTempQueueMarshaller()
+{
+ // no-op
+}
+
+ActiveMQTempQueueMarshaller::~ActiveMQTempQueueMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ActiveMQTempQueueMarshaller::createObject()
+{
+ return new ActiveMQTempQueue();
+}
+
+byte ActiveMQTempQueueMarshaller::getDataStructureType()
+{
+ return ActiveMQTempQueue.ID_ActiveMQTempQueue;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQTempQueueMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQTempQueueMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQTempQueue& info = (ActiveMQTempQueue&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQTempQueueMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQTempQueueMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQTempQueueMarshaller.hpp
new file mode 100644
index 0000000000..11ac30f41c
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQTempQueueMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQTempQueueMarshaller_hpp_
+#define ActiveMQTempQueueMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ActiveMQTempDestinationMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQTempQueueMarshaller : public ActiveMQTempDestinationMarshaller
+{
+public:
+ ActiveMQTempQueueMarshaller() ;
+ virtual ~ActiveMQTempQueueMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQTempQueueMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQTempTopicMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQTempTopicMarshaller.cpp
new file mode 100644
index 0000000000..e33f2afee3
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQTempTopicMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/ActiveMQTempTopicMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQTempTopic
+ *
+ * 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
+ */
+
+ActiveMQTempTopicMarshaller::ActiveMQTempTopicMarshaller()
+{
+ // no-op
+}
+
+ActiveMQTempTopicMarshaller::~ActiveMQTempTopicMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ActiveMQTempTopicMarshaller::createObject()
+{
+ return new ActiveMQTempTopic();
+}
+
+byte ActiveMQTempTopicMarshaller::getDataStructureType()
+{
+ return ActiveMQTempTopic.ID_ActiveMQTempTopic;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQTempTopicMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQTempTopicMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQTempTopic& info = (ActiveMQTempTopic&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQTempTopicMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQTempTopicMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQTempTopicMarshaller.hpp
new file mode 100644
index 0000000000..86771a9595
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQTempTopicMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQTempTopicMarshaller_hpp_
+#define ActiveMQTempTopicMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ActiveMQTempDestinationMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQTempTopicMarshaller : public ActiveMQTempDestinationMarshaller
+{
+public:
+ ActiveMQTempTopicMarshaller() ;
+ virtual ~ActiveMQTempTopicMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQTempTopicMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQTextMessageMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQTextMessageMarshaller.cpp
new file mode 100644
index 0000000000..c26a95cc27
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQTextMessageMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/ActiveMQTextMessageMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQTextMessage
+ *
+ * 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
+ */
+
+ActiveMQTextMessageMarshaller::ActiveMQTextMessageMarshaller()
+{
+ // no-op
+}
+
+ActiveMQTextMessageMarshaller::~ActiveMQTextMessageMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ActiveMQTextMessageMarshaller::createObject()
+{
+ return new ActiveMQTextMessage();
+}
+
+byte ActiveMQTextMessageMarshaller::getDataStructureType()
+{
+ return ActiveMQTextMessage.ID_ActiveMQTextMessage;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQTextMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQTextMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQTextMessage& info = (ActiveMQTextMessage&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQTextMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQTextMessageMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQTextMessageMarshaller.hpp
new file mode 100644
index 0000000000..326ffd003c
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQTextMessageMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQTextMessageMarshaller_hpp_
+#define ActiveMQTextMessageMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ActiveMQMessageMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQTextMessageMarshaller : public ActiveMQMessageMarshaller
+{
+public:
+ ActiveMQTextMessageMarshaller() ;
+ virtual ~ActiveMQTextMessageMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQTextMessageMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ActiveMQTopicMarshaller.cpp b/openwire-cpp/src/marshal/ActiveMQTopicMarshaller.cpp
new file mode 100644
index 0000000000..df1b12a9df
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQTopicMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/ActiveMQTopicMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ActiveMQTopic
+ *
+ * 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
+ */
+
+ActiveMQTopicMarshaller::ActiveMQTopicMarshaller()
+{
+ // no-op
+}
+
+ActiveMQTopicMarshaller::~ActiveMQTopicMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ActiveMQTopicMarshaller::createObject()
+{
+ return new ActiveMQTopic();
+}
+
+byte ActiveMQTopicMarshaller::getDataStructureType()
+{
+ return ActiveMQTopic.ID_ActiveMQTopic;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ActiveMQTopicMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ActiveMQTopicMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ActiveMQTopic& info = (ActiveMQTopic&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ActiveMQTopicMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ActiveMQTopicMarshaller.hpp b/openwire-cpp/src/marshal/ActiveMQTopicMarshaller.hpp
new file mode 100644
index 0000000000..2eaadd7a3f
--- /dev/null
+++ b/openwire-cpp/src/marshal/ActiveMQTopicMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ActiveMQTopicMarshaller_hpp_
+#define ActiveMQTopicMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ActiveMQDestinationMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ActiveMQTopicMarshaller : public ActiveMQDestinationMarshaller
+{
+public:
+ ActiveMQTopicMarshaller() ;
+ virtual ~ActiveMQTopicMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ActiveMQTopicMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/BaseCommandMarshaller.cpp b/openwire-cpp/src/marshal/BaseCommandMarshaller.cpp
new file mode 100644
index 0000000000..b76ecdbc3c
--- /dev/null
+++ b/openwire-cpp/src/marshal/BaseCommandMarshaller.cpp
@@ -0,0 +1,76 @@
+/*
+ * 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 "marshal/BaseCommandMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for BaseCommand
+ *
+ * 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
+ */
+
+BaseCommandMarshaller::BaseCommandMarshaller()
+{
+ // no-op
+}
+
+BaseCommandMarshaller::~BaseCommandMarshaller()
+{
+ // no-op
+}
+
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void BaseCommandMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ BaseCommand& info = (BaseCommand&) o;
+ info.setCommandId(dataIn.readShort());
+ info.setResponseRequired(bs.readBoolean());
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int BaseCommandMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ BaseCommand& info = (BaseCommand&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ bs.writeBoolean(info.isResponseRequired());
+
+ return rc + 1;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void BaseCommandMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ BaseCommand& info = (BaseCommand&) o;
+ DataStreamMarshaller.writeShort(info.getCommandId(), dataOut);
+ bs.readBoolean();
+
+}
diff --git a/openwire-cpp/src/marshal/BaseCommandMarshaller.hpp b/openwire-cpp/src/marshal/BaseCommandMarshaller.hpp
new file mode 100644
index 0000000000..e62c8b8acd
--- /dev/null
+++ b/openwire-cpp/src/marshal/BaseCommandMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 BaseCommandMarshaller_hpp_
+#define BaseCommandMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class BaseCommandMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ BaseCommandMarshaller() ;
+ virtual ~BaseCommandMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*BaseCommandMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/BrokerIdMarshaller.cpp b/openwire-cpp/src/marshal/BrokerIdMarshaller.cpp
index b99d63ce98..6f7e65124d 100755
--- a/openwire-cpp/src/marshal/BrokerIdMarshaller.cpp
+++ b/openwire-cpp/src/marshal/BrokerIdMarshaller.cpp
@@ -19,8 +19,13 @@
using namespace apache::activemq::client::marshal;
/*
+ * Marshalling code for Open Wire Format for BrokerId
*
+ * 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
*/
+
BrokerIdMarshaller::BrokerIdMarshaller()
{
// no-op
@@ -31,23 +36,50 @@ BrokerIdMarshaller::~BrokerIdMarshaller()
// no-op
}
-p BrokerIdMarshaller::createCommand()
+
+
+DataStructure* BrokerIdMarshaller::createObject()
{
- return new BrokerId() ;
+ return new BrokerId();
}
-void BrokerIdMarshaller::buildCommand(p command, p reader)
+byte BrokerIdMarshaller::getDataStructureType()
{
- //AbstractCommandMarshaller::buildCommand(command, reader) ;
-
- p brokerId = (p&)command ;
- brokerId->setValue( reader->readString()->c_str() ) ;
+ return BrokerId.ID_BrokerId;
}
-void BrokerIdMarshaller::writeCommand(p command, p writer)
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void BrokerIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
{
- //AbstractCommandMarshaller::writeCommand(command, writer) ;
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ BrokerId& info = (BrokerId&) o;
+ info.setValue(tightUnmarshalString(dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int BrokerIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ BrokerId& info = (BrokerId&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += writeString(info.getValue(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void BrokerIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ BrokerId& info = (BrokerId&) o;
+ writeString(info.getValue(), dataOut, bs);
- p brokerId = (p&)command ;
- writer->writeString( brokerId->getValue() ) ;
}
diff --git a/openwire-cpp/src/marshal/BrokerIdMarshaller.hpp b/openwire-cpp/src/marshal/BrokerIdMarshaller.hpp
index 2005e9aba4..9528ce48bb 100755
--- a/openwire-cpp/src/marshal/BrokerIdMarshaller.hpp
+++ b/openwire-cpp/src/marshal/BrokerIdMarshaller.hpp
@@ -1,27 +1,37 @@
/*
- * 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.
- */
+* 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 BrokerIdMarshaller_hpp_
#define BrokerIdMarshaller_hpp_
-#include "command/ICommand.hpp"
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
#include "io/BinaryReader.hpp"
#include "io/BinaryWriter.hpp"
-#include "marshal/AbstractCommandMarshaller.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
#include "util/ifr/p"
namespace apache
@@ -39,21 +49,23 @@ namespace apache
/*
*
*/
-class BrokerIdMarshaller : public AbstractCommandMarshaller
+class BrokerIdMarshaller : public BaseDataStreamMarshaller
{
public:
BrokerIdMarshaller() ;
virtual ~BrokerIdMarshaller() ;
- virtual p createCommand() ;
- virtual void buildCommand(p command, p reader) ;
- virtual void writeCommand(p command, p writer) ;
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
} ;
/* namespace */
- }
+ }
}
}
}
-
-#endif /*BrokerIdMarshaller_hpp_*/
\ No newline at end of file
+#endif /*BrokerIdMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/BrokerInfoMarshaller.cpp b/openwire-cpp/src/marshal/BrokerInfoMarshaller.cpp
index 432cb1aa5b..06dbdfca0b 100755
--- a/openwire-cpp/src/marshal/BrokerInfoMarshaller.cpp
+++ b/openwire-cpp/src/marshal/BrokerInfoMarshaller.cpp
@@ -19,8 +19,13 @@
using namespace apache::activemq::client::marshal;
/*
+ * Marshalling code for Open Wire Format for BrokerInfo
*
+ * 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
*/
+
BrokerInfoMarshaller::BrokerInfoMarshaller()
{
// no-op
@@ -31,29 +36,73 @@ BrokerInfoMarshaller::~BrokerInfoMarshaller()
// no-op
}
-p BrokerInfoMarshaller::createCommand()
+
+
+DataStructure* BrokerInfoMarshaller::createObject()
{
- return new BrokerInfo() ;
+ return new BrokerInfo();
}
-void BrokerInfoMarshaller::buildCommand(p command, p reader)
+byte BrokerInfoMarshaller::getDataStructureType()
{
- //AbstractCommandMarshaller::buildCommand(command, reader) ;
-
- p brokerInfo = (p&)command ;
- brokerInfo->setBrokerId( (p&)CommandMarshallerRegistry::getBrokerInfoMarshaller()->readCommand(reader) ) ;
- brokerInfo->setBrokerURL( reader->readString()->c_str() ) ;
- brokerInfo->setPeerBrokerInfo( AbstractCommandMarshaller::readBrokerInfos(reader) ) ;
- brokerInfo->setBrokerName( reader->readString()->c_str() ) ;
+ return BrokerInfo.ID_BrokerInfo;
}
-void BrokerInfoMarshaller::writeCommand(p command, p writer)
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void BrokerInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
{
- //AbstractCommandMarshaller::writeCommand(command, writer) ;
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ BrokerInfo& info = (BrokerInfo&) o;
+ info.setBrokerId((BrokerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setBrokerURL(tightUnmarshalString(dataIn, bs));
+
+ if (bs.readBoolean()) {
+ short size = dataIn.readShort();
+ BrokerInfo value[] = new BrokerInfo[size];
+ for( int i=0; i < size; i++ ) {
+ value[i] = (BrokerInfo) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
+ }
+ info.setPeerBrokerInfos(value);
+ }
+ else {
+ info.setPeerBrokerInfos(null);
+ }
+ info.setBrokerName(tightUnmarshalString(dataIn, bs));
+ info.setSlaveBroker(bs.readBoolean());
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int BrokerInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ BrokerInfo& info = (BrokerInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getBrokerId(), bs);
+ rc += writeString(info.getBrokerURL(), bs);
+ rc += marshalObjectArray(wireFormat, info.getPeerBrokerInfos(), bs);
+ rc += writeString(info.getBrokerName(), bs);
+ bs.writeBoolean(info.isSlaveBroker());
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void BrokerInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ BrokerInfo& info = (BrokerInfo&) o;
+ marshal2CachedObject(wireFormat, info.getBrokerId(), dataOut, bs);
+ writeString(info.getBrokerURL(), dataOut, bs);
+ marshalObjectArray(wireFormat, info.getPeerBrokerInfos(), dataOut, bs);
+ writeString(info.getBrokerName(), dataOut, bs);
+ bs.readBoolean();
- p brokerInfo = (p&)command ;
- CommandMarshallerRegistry::getBrokerInfoMarshaller()->writeCommand(brokerInfo->getBrokerId(), writer) ;
- writer->writeString( brokerInfo->getBrokerURL() ) ;
- AbstractCommandMarshaller::writeBrokerInfos( brokerInfo->getPeerBrokerInfo(), writer) ;
- writer->writeString( brokerInfo->getBrokerName() ) ;
}
diff --git a/openwire-cpp/src/marshal/BrokerInfoMarshaller.hpp b/openwire-cpp/src/marshal/BrokerInfoMarshaller.hpp
index 963fe1e40f..4357748374 100755
--- a/openwire-cpp/src/marshal/BrokerInfoMarshaller.hpp
+++ b/openwire-cpp/src/marshal/BrokerInfoMarshaller.hpp
@@ -1,28 +1,37 @@
/*
- * 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.
- */
+* 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 BrokerInfoMarshaller_hpp_
#define BrokerInfoMarshaller_hpp_
#include
-#include "command/ICommand.hpp"
-#include "command/BrokerInfo.hpp"
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
#include "io/BinaryReader.hpp"
#include "io/BinaryWriter.hpp"
-#include "marshal/AbstractCommandMarshaller.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
#include "util/ifr/p"
namespace apache
@@ -40,21 +49,23 @@ namespace apache
/*
*
*/
-class BrokerInfoMarshaller : public AbstractCommandMarshaller
+class BrokerInfoMarshaller : public BaseCommandMarshaller
{
public:
BrokerInfoMarshaller() ;
virtual ~BrokerInfoMarshaller() ;
- virtual p createCommand() ;
- virtual void buildCommand(p command, p reader) ;
- virtual void writeCommand(p command, p writer) ;
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
} ;
/* namespace */
- }
+ }
}
}
}
-
-#endif /*BrokerInfoMarshaller_hpp_*/
\ No newline at end of file
+#endif /*BrokerInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ConnectionErrorMarshaller.cpp b/openwire-cpp/src/marshal/ConnectionErrorMarshaller.cpp
new file mode 100644
index 0000000000..5fe3716d0d
--- /dev/null
+++ b/openwire-cpp/src/marshal/ConnectionErrorMarshaller.cpp
@@ -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.
+ */
+#include "marshal/ConnectionErrorMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ConnectionError
+ *
+ * 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
+ */
+
+ConnectionErrorMarshaller::ConnectionErrorMarshaller()
+{
+ // no-op
+}
+
+ConnectionErrorMarshaller::~ConnectionErrorMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ConnectionErrorMarshaller::createObject()
+{
+ return new ConnectionError();
+}
+
+byte ConnectionErrorMarshaller::getDataStructureType()
+{
+ return ConnectionError.ID_ConnectionError;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ConnectionErrorMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ ConnectionError& info = (ConnectionError&) o;
+ info.setException((Throwable) tightUnmarsalThrowable(wireFormat, dataIn, bs));
+ info.setConnectionId((ConnectionId) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ConnectionErrorMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ConnectionError& info = (ConnectionError&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshalBrokerError(wireFormat, info.getException(), bs);
+ rc += marshal1NestedObject(wireFormat, info.getConnectionId(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ConnectionErrorMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ ConnectionError& info = (ConnectionError&) o;
+ marshalBrokerError(wireFormat, info.getException(), dataOut, bs);
+ marshal2NestedObject(wireFormat, info.getConnectionId(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ConnectionErrorMarshaller.hpp b/openwire-cpp/src/marshal/ConnectionErrorMarshaller.hpp
new file mode 100644
index 0000000000..d3a8c2947a
--- /dev/null
+++ b/openwire-cpp/src/marshal/ConnectionErrorMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ConnectionErrorMarshaller_hpp_
+#define ConnectionErrorMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ConnectionErrorMarshaller : public BaseCommandMarshaller
+{
+public:
+ ConnectionErrorMarshaller() ;
+ virtual ~ConnectionErrorMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ConnectionErrorMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ConnectionIdMarshaller.cpp b/openwire-cpp/src/marshal/ConnectionIdMarshaller.cpp
new file mode 100644
index 0000000000..8fa00f86c1
--- /dev/null
+++ b/openwire-cpp/src/marshal/ConnectionIdMarshaller.cpp
@@ -0,0 +1,85 @@
+/*
+ * 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 "marshal/ConnectionIdMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ConnectionId
+ *
+ * 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
+ */
+
+ConnectionIdMarshaller::ConnectionIdMarshaller()
+{
+ // no-op
+}
+
+ConnectionIdMarshaller::~ConnectionIdMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ConnectionIdMarshaller::createObject()
+{
+ return new ConnectionId();
+}
+
+byte ConnectionIdMarshaller::getDataStructureType()
+{
+ return ConnectionId.ID_ConnectionId;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ConnectionIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ ConnectionId& info = (ConnectionId&) o;
+ info.setValue(tightUnmarshalString(dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ConnectionIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ConnectionId& info = (ConnectionId&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += writeString(info.getValue(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ConnectionIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ ConnectionId& info = (ConnectionId&) o;
+ writeString(info.getValue(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ConnectionIdMarshaller.hpp b/openwire-cpp/src/marshal/ConnectionIdMarshaller.hpp
new file mode 100644
index 0000000000..b1abcd2395
--- /dev/null
+++ b/openwire-cpp/src/marshal/ConnectionIdMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ConnectionIdMarshaller_hpp_
+#define ConnectionIdMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ConnectionIdMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ ConnectionIdMarshaller() ;
+ virtual ~ConnectionIdMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ConnectionIdMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ConnectionInfoMarshaller.cpp b/openwire-cpp/src/marshal/ConnectionInfoMarshaller.cpp
new file mode 100644
index 0000000000..75b01e3947
--- /dev/null
+++ b/openwire-cpp/src/marshal/ConnectionInfoMarshaller.cpp
@@ -0,0 +1,108 @@
+/*
+ * 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 "marshal/ConnectionInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ConnectionInfo
+ *
+ * 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
+ */
+
+ConnectionInfoMarshaller::ConnectionInfoMarshaller()
+{
+ // no-op
+}
+
+ConnectionInfoMarshaller::~ConnectionInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ConnectionInfoMarshaller::createObject()
+{
+ return new ConnectionInfo();
+}
+
+byte ConnectionInfoMarshaller::getDataStructureType()
+{
+ return ConnectionInfo.ID_ConnectionInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ConnectionInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ ConnectionInfo& info = (ConnectionInfo&) o;
+ info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setClientId(tightUnmarshalString(dataIn, bs));
+ info.setPassword(tightUnmarshalString(dataIn, bs));
+ info.setUserName(tightUnmarshalString(dataIn, bs));
+
+ if (bs.readBoolean()) {
+ short size = dataIn.readShort();
+ BrokerId value[] = new BrokerId[size];
+ for( int i=0; i < size; i++ ) {
+ value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
+ }
+ info.setBrokerPath(value);
+ }
+ else {
+ info.setBrokerPath(null);
+ }
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ConnectionInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ConnectionInfo& info = (ConnectionInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getConnectionId(), bs);
+ rc += writeString(info.getClientId(), bs);
+ rc += writeString(info.getPassword(), bs);
+ rc += writeString(info.getUserName(), bs);
+ rc += marshalObjectArray(wireFormat, info.getBrokerPath(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ConnectionInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ ConnectionInfo& info = (ConnectionInfo&) o;
+ marshal2CachedObject(wireFormat, info.getConnectionId(), dataOut, bs);
+ writeString(info.getClientId(), dataOut, bs);
+ writeString(info.getPassword(), dataOut, bs);
+ writeString(info.getUserName(), dataOut, bs);
+ marshalObjectArray(wireFormat, info.getBrokerPath(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ConnectionInfoMarshaller.hpp b/openwire-cpp/src/marshal/ConnectionInfoMarshaller.hpp
new file mode 100644
index 0000000000..c620911795
--- /dev/null
+++ b/openwire-cpp/src/marshal/ConnectionInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ConnectionInfoMarshaller_hpp_
+#define ConnectionInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ConnectionInfoMarshaller : public BaseCommandMarshaller
+{
+public:
+ ConnectionInfoMarshaller() ;
+ virtual ~ConnectionInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ConnectionInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ConsumerIdMarshaller.cpp b/openwire-cpp/src/marshal/ConsumerIdMarshaller.cpp
new file mode 100644
index 0000000000..1ddc063da0
--- /dev/null
+++ b/openwire-cpp/src/marshal/ConsumerIdMarshaller.cpp
@@ -0,0 +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.
+ */
+#include "marshal/ConsumerIdMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ConsumerId
+ *
+ * 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
+ */
+
+ConsumerIdMarshaller::ConsumerIdMarshaller()
+{
+ // no-op
+}
+
+ConsumerIdMarshaller::~ConsumerIdMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ConsumerIdMarshaller::createObject()
+{
+ return new ConsumerId();
+}
+
+byte ConsumerIdMarshaller::getDataStructureType()
+{
+ return ConsumerId.ID_ConsumerId;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ConsumerIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ ConsumerId& info = (ConsumerId&) o;
+ info.setConnectionId(tightUnmarshalString(dataIn, bs));
+ info.setSessionId(tightUnmarshalLong(wireFormat, dataIn, bs));
+ info.setValue(tightUnmarshalLong(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ConsumerIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ConsumerId& info = (ConsumerId&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += writeString(info.getConnectionId(), bs);
+ rc += marshal1Long(wireFormat, info.getSessionId(), bs);
+ rc += marshal1Long(wireFormat, info.getValue(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ConsumerIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ ConsumerId& info = (ConsumerId&) o;
+ writeString(info.getConnectionId(), dataOut, bs);
+ marshal2Long(wireFormat, info.getSessionId(), dataOut, bs);
+ marshal2Long(wireFormat, info.getValue(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ConsumerIdMarshaller.hpp b/openwire-cpp/src/marshal/ConsumerIdMarshaller.hpp
new file mode 100644
index 0000000000..72c40ea2fb
--- /dev/null
+++ b/openwire-cpp/src/marshal/ConsumerIdMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ConsumerIdMarshaller_hpp_
+#define ConsumerIdMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ConsumerIdMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ ConsumerIdMarshaller() ;
+ virtual ~ConsumerIdMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ConsumerIdMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ConsumerInfoMarshaller.cpp b/openwire-cpp/src/marshal/ConsumerInfoMarshaller.cpp
new file mode 100644
index 0000000000..c7f071dcb3
--- /dev/null
+++ b/openwire-cpp/src/marshal/ConsumerInfoMarshaller.cpp
@@ -0,0 +1,130 @@
+/*
+ * 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 "marshal/ConsumerInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ConsumerInfo
+ *
+ * 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
+ */
+
+ConsumerInfoMarshaller::ConsumerInfoMarshaller()
+{
+ // no-op
+}
+
+ConsumerInfoMarshaller::~ConsumerInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ConsumerInfoMarshaller::createObject()
+{
+ return new ConsumerInfo();
+}
+
+byte ConsumerInfoMarshaller::getDataStructureType()
+{
+ return ConsumerInfo.ID_ConsumerInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ConsumerInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ ConsumerInfo& info = (ConsumerInfo&) o;
+ info.setConsumerId((ConsumerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setBrowser(bs.readBoolean());
+ info.setDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setPrefetchSize(dataIn.readInt());
+ info.setDispatchAsync(bs.readBoolean());
+ info.setSelector(tightUnmarshalString(dataIn, bs));
+ info.setSubcriptionName(tightUnmarshalString(dataIn, bs));
+ info.setNoLocal(bs.readBoolean());
+ info.setExclusive(bs.readBoolean());
+ info.setRetroactive(bs.readBoolean());
+ info.setPriority(dataIn.readByte());
+
+ if (bs.readBoolean()) {
+ short size = dataIn.readShort();
+ BrokerId value[] = new BrokerId[size];
+ for( int i=0; i < size; i++ ) {
+ value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
+ }
+ info.setBrokerPath(value);
+ }
+ else {
+ info.setBrokerPath(null);
+ }
+ info.setNetworkSubscription(bs.readBoolean());
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ConsumerInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ConsumerInfo& info = (ConsumerInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getConsumerId(), bs);
+ bs.writeBoolean(info.isBrowser());
+ rc += marshal1CachedObject(wireFormat, info.getDestination(), bs);
+ bs.writeBoolean(info.isDispatchAsync());
+ rc += writeString(info.getSelector(), bs);
+ rc += writeString(info.getSubcriptionName(), bs);
+ bs.writeBoolean(info.isNoLocal());
+ bs.writeBoolean(info.isExclusive());
+ bs.writeBoolean(info.isRetroactive());
+ rc += marshalObjectArray(wireFormat, info.getBrokerPath(), bs);
+ bs.writeBoolean(info.isNetworkSubscription());
+
+ return rc + 2;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ConsumerInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ ConsumerInfo& info = (ConsumerInfo&) o;
+ marshal2CachedObject(wireFormat, info.getConsumerId(), dataOut, bs);
+ bs.readBoolean();
+ marshal2CachedObject(wireFormat, info.getDestination(), dataOut, bs);
+ DataStreamMarshaller.writeInt(info.getPrefetchSize(), dataOut);
+ bs.readBoolean();
+ writeString(info.getSelector(), dataOut, bs);
+ writeString(info.getSubcriptionName(), dataOut, bs);
+ bs.readBoolean();
+ bs.readBoolean();
+ bs.readBoolean();
+ DataStreamMarshaller.writeByte(info.getPriority(), dataOut);
+ marshalObjectArray(wireFormat, info.getBrokerPath(), dataOut, bs);
+ bs.readBoolean();
+
+}
diff --git a/openwire-cpp/src/marshal/ConsumerInfoMarshaller.hpp b/openwire-cpp/src/marshal/ConsumerInfoMarshaller.hpp
new file mode 100644
index 0000000000..4612a0c487
--- /dev/null
+++ b/openwire-cpp/src/marshal/ConsumerInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ConsumerInfoMarshaller_hpp_
+#define ConsumerInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ConsumerInfoMarshaller : public BaseCommandMarshaller
+{
+public:
+ ConsumerInfoMarshaller() ;
+ virtual ~ConsumerInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ConsumerInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ControlCommandMarshaller.cpp b/openwire-cpp/src/marshal/ControlCommandMarshaller.cpp
new file mode 100644
index 0000000000..47ef3307fa
--- /dev/null
+++ b/openwire-cpp/src/marshal/ControlCommandMarshaller.cpp
@@ -0,0 +1,85 @@
+/*
+ * 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 "marshal/ControlCommandMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ControlCommand
+ *
+ * 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
+ */
+
+ControlCommandMarshaller::ControlCommandMarshaller()
+{
+ // no-op
+}
+
+ControlCommandMarshaller::~ControlCommandMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ControlCommandMarshaller::createObject()
+{
+ return new ControlCommand();
+}
+
+byte ControlCommandMarshaller::getDataStructureType()
+{
+ return ControlCommand.ID_ControlCommand;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ControlCommandMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ ControlCommand& info = (ControlCommand&) o;
+ info.setCommand(tightUnmarshalString(dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ControlCommandMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ControlCommand& info = (ControlCommand&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += writeString(info.getCommand(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ControlCommandMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ ControlCommand& info = (ControlCommand&) o;
+ writeString(info.getCommand(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ControlCommandMarshaller.hpp b/openwire-cpp/src/marshal/ControlCommandMarshaller.hpp
new file mode 100644
index 0000000000..f045bc6c67
--- /dev/null
+++ b/openwire-cpp/src/marshal/ControlCommandMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ControlCommandMarshaller_hpp_
+#define ControlCommandMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ControlCommandMarshaller : public BaseCommandMarshaller
+{
+public:
+ ControlCommandMarshaller() ;
+ virtual ~ControlCommandMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ControlCommandMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/DataArrayResponseMarshaller.cpp b/openwire-cpp/src/marshal/DataArrayResponseMarshaller.cpp
new file mode 100644
index 0000000000..0183cadfb0
--- /dev/null
+++ b/openwire-cpp/src/marshal/DataArrayResponseMarshaller.cpp
@@ -0,0 +1,96 @@
+/*
+ * 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 "marshal/DataArrayResponseMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for DataArrayResponse
+ *
+ * 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
+ */
+
+DataArrayResponseMarshaller::DataArrayResponseMarshaller()
+{
+ // no-op
+}
+
+DataArrayResponseMarshaller::~DataArrayResponseMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* DataArrayResponseMarshaller::createObject()
+{
+ return new DataArrayResponse();
+}
+
+byte DataArrayResponseMarshaller::getDataStructureType()
+{
+ return DataArrayResponse.ID_DataArrayResponse;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void DataArrayResponseMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ DataArrayResponse& info = (DataArrayResponse&) o;
+
+ if (bs.readBoolean()) {
+ short size = dataIn.readShort();
+ DataStructure value[] = new DataStructure[size];
+ for( int i=0; i < size; i++ ) {
+ value[i] = (DataStructure) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
+ }
+ info.setData(value);
+ }
+ else {
+ info.setData(null);
+ }
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int DataArrayResponseMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ DataArrayResponse& info = (DataArrayResponse&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshalObjectArray(wireFormat, info.getData(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void DataArrayResponseMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ DataArrayResponse& info = (DataArrayResponse&) o;
+ marshalObjectArray(wireFormat, info.getData(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/DataArrayResponseMarshaller.hpp b/openwire-cpp/src/marshal/DataArrayResponseMarshaller.hpp
new file mode 100644
index 0000000000..36c290dad7
--- /dev/null
+++ b/openwire-cpp/src/marshal/DataArrayResponseMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 DataArrayResponseMarshaller_hpp_
+#define DataArrayResponseMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ResponseMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class DataArrayResponseMarshaller : public ResponseMarshaller
+{
+public:
+ DataArrayResponseMarshaller() ;
+ virtual ~DataArrayResponseMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*DataArrayResponseMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/DataResponseMarshaller.cpp b/openwire-cpp/src/marshal/DataResponseMarshaller.cpp
new file mode 100644
index 0000000000..c231c26732
--- /dev/null
+++ b/openwire-cpp/src/marshal/DataResponseMarshaller.cpp
@@ -0,0 +1,85 @@
+/*
+ * 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 "marshal/DataResponseMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for DataResponse
+ *
+ * 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
+ */
+
+DataResponseMarshaller::DataResponseMarshaller()
+{
+ // no-op
+}
+
+DataResponseMarshaller::~DataResponseMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* DataResponseMarshaller::createObject()
+{
+ return new DataResponse();
+}
+
+byte DataResponseMarshaller::getDataStructureType()
+{
+ return DataResponse.ID_DataResponse;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void DataResponseMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ DataResponse& info = (DataResponse&) o;
+ info.setData((DataStructure) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int DataResponseMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ DataResponse& info = (DataResponse&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1NestedObject(wireFormat, info.getData(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void DataResponseMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ DataResponse& info = (DataResponse&) o;
+ marshal2NestedObject(wireFormat, info.getData(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/DataResponseMarshaller.hpp b/openwire-cpp/src/marshal/DataResponseMarshaller.hpp
new file mode 100644
index 0000000000..4ebc0f9176
--- /dev/null
+++ b/openwire-cpp/src/marshal/DataResponseMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 DataResponseMarshaller_hpp_
+#define DataResponseMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ResponseMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class DataResponseMarshaller : public ResponseMarshaller
+{
+public:
+ DataResponseMarshaller() ;
+ virtual ~DataResponseMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*DataResponseMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/DestinationInfoMarshaller.cpp b/openwire-cpp/src/marshal/DestinationInfoMarshaller.cpp
new file mode 100644
index 0000000000..259cb72876
--- /dev/null
+++ b/openwire-cpp/src/marshal/DestinationInfoMarshaller.cpp
@@ -0,0 +1,107 @@
+/*
+ * 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 "marshal/DestinationInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for DestinationInfo
+ *
+ * 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
+ */
+
+DestinationInfoMarshaller::DestinationInfoMarshaller()
+{
+ // no-op
+}
+
+DestinationInfoMarshaller::~DestinationInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* DestinationInfoMarshaller::createObject()
+{
+ return new DestinationInfo();
+}
+
+byte DestinationInfoMarshaller::getDataStructureType()
+{
+ return DestinationInfo.ID_DestinationInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void DestinationInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ DestinationInfo& info = (DestinationInfo&) o;
+ info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setOperationType(dataIn.readByte());
+ info.setTimeout(tightUnmarshalLong(wireFormat, dataIn, bs));
+
+ if (bs.readBoolean()) {
+ short size = dataIn.readShort();
+ BrokerId value[] = new BrokerId[size];
+ for( int i=0; i < size; i++ ) {
+ value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
+ }
+ info.setBrokerPath(value);
+ }
+ else {
+ info.setBrokerPath(null);
+ }
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int DestinationInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ DestinationInfo& info = (DestinationInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getConnectionId(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getDestination(), bs);
+ rc += marshal1Long(wireFormat, info.getTimeout(), bs);
+ rc += marshalObjectArray(wireFormat, info.getBrokerPath(), bs);
+
+ return rc + 1;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void DestinationInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ DestinationInfo& info = (DestinationInfo&) o;
+ marshal2CachedObject(wireFormat, info.getConnectionId(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getDestination(), dataOut, bs);
+ DataStreamMarshaller.writeByte(info.getOperationType(), dataOut);
+ marshal2Long(wireFormat, info.getTimeout(), dataOut, bs);
+ marshalObjectArray(wireFormat, info.getBrokerPath(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/DestinationInfoMarshaller.hpp b/openwire-cpp/src/marshal/DestinationInfoMarshaller.hpp
new file mode 100644
index 0000000000..019bda56ad
--- /dev/null
+++ b/openwire-cpp/src/marshal/DestinationInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 DestinationInfoMarshaller_hpp_
+#define DestinationInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class DestinationInfoMarshaller : public BaseCommandMarshaller
+{
+public:
+ DestinationInfoMarshaller() ;
+ virtual ~DestinationInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*DestinationInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/DiscoveryEventMarshaller.cpp b/openwire-cpp/src/marshal/DiscoveryEventMarshaller.cpp
new file mode 100644
index 0000000000..39505750d1
--- /dev/null
+++ b/openwire-cpp/src/marshal/DiscoveryEventMarshaller.cpp
@@ -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.
+ */
+#include "marshal/DiscoveryEventMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for DiscoveryEvent
+ *
+ * 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
+ */
+
+DiscoveryEventMarshaller::DiscoveryEventMarshaller()
+{
+ // no-op
+}
+
+DiscoveryEventMarshaller::~DiscoveryEventMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* DiscoveryEventMarshaller::createObject()
+{
+ return new DiscoveryEvent();
+}
+
+byte DiscoveryEventMarshaller::getDataStructureType()
+{
+ return DiscoveryEvent.ID_DiscoveryEvent;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void DiscoveryEventMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ DiscoveryEvent& info = (DiscoveryEvent&) o;
+ info.setServiceName(tightUnmarshalString(dataIn, bs));
+ info.setBrokerName(tightUnmarshalString(dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int DiscoveryEventMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ DiscoveryEvent& info = (DiscoveryEvent&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += writeString(info.getServiceName(), bs);
+ rc += writeString(info.getBrokerName(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void DiscoveryEventMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ DiscoveryEvent& info = (DiscoveryEvent&) o;
+ writeString(info.getServiceName(), dataOut, bs);
+ writeString(info.getBrokerName(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/DiscoveryEventMarshaller.hpp b/openwire-cpp/src/marshal/DiscoveryEventMarshaller.hpp
new file mode 100644
index 0000000000..9053e3f3f7
--- /dev/null
+++ b/openwire-cpp/src/marshal/DiscoveryEventMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 DiscoveryEventMarshaller_hpp_
+#define DiscoveryEventMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class DiscoveryEventMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ DiscoveryEventMarshaller() ;
+ virtual ~DiscoveryEventMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*DiscoveryEventMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ExceptionResponseMarshaller.cpp b/openwire-cpp/src/marshal/ExceptionResponseMarshaller.cpp
new file mode 100644
index 0000000000..7466ccdc65
--- /dev/null
+++ b/openwire-cpp/src/marshal/ExceptionResponseMarshaller.cpp
@@ -0,0 +1,85 @@
+/*
+ * 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 "marshal/ExceptionResponseMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ExceptionResponse
+ *
+ * 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
+ */
+
+ExceptionResponseMarshaller::ExceptionResponseMarshaller()
+{
+ // no-op
+}
+
+ExceptionResponseMarshaller::~ExceptionResponseMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ExceptionResponseMarshaller::createObject()
+{
+ return new ExceptionResponse();
+}
+
+byte ExceptionResponseMarshaller::getDataStructureType()
+{
+ return ExceptionResponse.ID_ExceptionResponse;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ExceptionResponseMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ ExceptionResponse& info = (ExceptionResponse&) o;
+ info.setException((Throwable) tightUnmarsalThrowable(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ExceptionResponseMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ExceptionResponse& info = (ExceptionResponse&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshalBrokerError(wireFormat, info.getException(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ExceptionResponseMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ ExceptionResponse& info = (ExceptionResponse&) o;
+ marshalBrokerError(wireFormat, info.getException(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ExceptionResponseMarshaller.hpp b/openwire-cpp/src/marshal/ExceptionResponseMarshaller.hpp
new file mode 100644
index 0000000000..7e7f2c205c
--- /dev/null
+++ b/openwire-cpp/src/marshal/ExceptionResponseMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ExceptionResponseMarshaller_hpp_
+#define ExceptionResponseMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ResponseMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ExceptionResponseMarshaller : public ResponseMarshaller
+{
+public:
+ ExceptionResponseMarshaller() ;
+ virtual ~ExceptionResponseMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ExceptionResponseMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/FlushCommandMarshaller.cpp b/openwire-cpp/src/marshal/FlushCommandMarshaller.cpp
new file mode 100644
index 0000000000..fc25cdb09f
--- /dev/null
+++ b/openwire-cpp/src/marshal/FlushCommandMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/FlushCommandMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for FlushCommand
+ *
+ * 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
+ */
+
+FlushCommandMarshaller::FlushCommandMarshaller()
+{
+ // no-op
+}
+
+FlushCommandMarshaller::~FlushCommandMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* FlushCommandMarshaller::createObject()
+{
+ return new FlushCommand();
+}
+
+byte FlushCommandMarshaller::getDataStructureType()
+{
+ return FlushCommand.ID_FlushCommand;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void FlushCommandMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int FlushCommandMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ FlushCommand& info = (FlushCommand&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void FlushCommandMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/FlushCommandMarshaller.hpp b/openwire-cpp/src/marshal/FlushCommandMarshaller.hpp
new file mode 100644
index 0000000000..9d05b86982
--- /dev/null
+++ b/openwire-cpp/src/marshal/FlushCommandMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 FlushCommandMarshaller_hpp_
+#define FlushCommandMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class FlushCommandMarshaller : public BaseCommandMarshaller
+{
+public:
+ FlushCommandMarshaller() ;
+ virtual ~FlushCommandMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*FlushCommandMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/IntegerResponseMarshaller.cpp b/openwire-cpp/src/marshal/IntegerResponseMarshaller.cpp
new file mode 100644
index 0000000000..45c69f2305
--- /dev/null
+++ b/openwire-cpp/src/marshal/IntegerResponseMarshaller.cpp
@@ -0,0 +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.
+ */
+#include "marshal/IntegerResponseMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for IntegerResponse
+ *
+ * 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
+ */
+
+IntegerResponseMarshaller::IntegerResponseMarshaller()
+{
+ // no-op
+}
+
+IntegerResponseMarshaller::~IntegerResponseMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* IntegerResponseMarshaller::createObject()
+{
+ return new IntegerResponse();
+}
+
+byte IntegerResponseMarshaller::getDataStructureType()
+{
+ return IntegerResponse.ID_IntegerResponse;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void IntegerResponseMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ IntegerResponse& info = (IntegerResponse&) o;
+ info.setResult(dataIn.readInt());
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int IntegerResponseMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ IntegerResponse& info = (IntegerResponse&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 1;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void IntegerResponseMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ IntegerResponse& info = (IntegerResponse&) o;
+ DataStreamMarshaller.writeInt(info.getResult(), dataOut);
+
+}
diff --git a/openwire-cpp/src/marshal/IntegerResponseMarshaller.hpp b/openwire-cpp/src/marshal/IntegerResponseMarshaller.hpp
new file mode 100644
index 0000000000..0d037eba9e
--- /dev/null
+++ b/openwire-cpp/src/marshal/IntegerResponseMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 IntegerResponseMarshaller_hpp_
+#define IntegerResponseMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/ResponseMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class IntegerResponseMarshaller : public ResponseMarshaller
+{
+public:
+ IntegerResponseMarshaller() ;
+ virtual ~IntegerResponseMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*IntegerResponseMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/JournalQueueAckMarshaller.cpp b/openwire-cpp/src/marshal/JournalQueueAckMarshaller.cpp
new file mode 100644
index 0000000000..bb6d6e9734
--- /dev/null
+++ b/openwire-cpp/src/marshal/JournalQueueAckMarshaller.cpp
@@ -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.
+ */
+#include "marshal/JournalQueueAckMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for JournalQueueAck
+ *
+ * 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
+ */
+
+JournalQueueAckMarshaller::JournalQueueAckMarshaller()
+{
+ // no-op
+}
+
+JournalQueueAckMarshaller::~JournalQueueAckMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* JournalQueueAckMarshaller::createObject()
+{
+ return new JournalQueueAck();
+}
+
+byte JournalQueueAckMarshaller::getDataStructureType()
+{
+ return JournalQueueAck.ID_JournalQueueAck;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void JournalQueueAckMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ JournalQueueAck& info = (JournalQueueAck&) o;
+ info.setDestination((ActiveMQDestination) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+ info.setMessageAck((MessageAck) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int JournalQueueAckMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ JournalQueueAck& info = (JournalQueueAck&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1NestedObject(wireFormat, info.getDestination(), bs);
+ rc += marshal1NestedObject(wireFormat, info.getMessageAck(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void JournalQueueAckMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ JournalQueueAck& info = (JournalQueueAck&) o;
+ marshal2NestedObject(wireFormat, info.getDestination(), dataOut, bs);
+ marshal2NestedObject(wireFormat, info.getMessageAck(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/JournalQueueAckMarshaller.hpp b/openwire-cpp/src/marshal/JournalQueueAckMarshaller.hpp
new file mode 100644
index 0000000000..d15cb99c44
--- /dev/null
+++ b/openwire-cpp/src/marshal/JournalQueueAckMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 JournalQueueAckMarshaller_hpp_
+#define JournalQueueAckMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class JournalQueueAckMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ JournalQueueAckMarshaller() ;
+ virtual ~JournalQueueAckMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*JournalQueueAckMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/JournalTopicAckMarshaller.cpp b/openwire-cpp/src/marshal/JournalTopicAckMarshaller.cpp
new file mode 100644
index 0000000000..64f0f83103
--- /dev/null
+++ b/openwire-cpp/src/marshal/JournalTopicAckMarshaller.cpp
@@ -0,0 +1,100 @@
+/*
+ * 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 "marshal/JournalTopicAckMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for JournalTopicAck
+ *
+ * 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
+ */
+
+JournalTopicAckMarshaller::JournalTopicAckMarshaller()
+{
+ // no-op
+}
+
+JournalTopicAckMarshaller::~JournalTopicAckMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* JournalTopicAckMarshaller::createObject()
+{
+ return new JournalTopicAck();
+}
+
+byte JournalTopicAckMarshaller::getDataStructureType()
+{
+ return JournalTopicAck.ID_JournalTopicAck;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void JournalTopicAckMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ JournalTopicAck& info = (JournalTopicAck&) o;
+ info.setDestination((ActiveMQDestination) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+ info.setMessageId((MessageId) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+ info.setMessageSequenceId(tightUnmarshalLong(wireFormat, dataIn, bs));
+ info.setSubscritionName(tightUnmarshalString(dataIn, bs));
+ info.setClientId(tightUnmarshalString(dataIn, bs));
+ info.setTransactionId((TransactionId) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int JournalTopicAckMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ JournalTopicAck& info = (JournalTopicAck&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1NestedObject(wireFormat, info.getDestination(), bs);
+ rc += marshal1NestedObject(wireFormat, info.getMessageId(), bs);
+ rc += marshal1Long(wireFormat, info.getMessageSequenceId(), bs);
+ rc += writeString(info.getSubscritionName(), bs);
+ rc += writeString(info.getClientId(), bs);
+ rc += marshal1NestedObject(wireFormat, info.getTransactionId(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void JournalTopicAckMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ JournalTopicAck& info = (JournalTopicAck&) o;
+ marshal2NestedObject(wireFormat, info.getDestination(), dataOut, bs);
+ marshal2NestedObject(wireFormat, info.getMessageId(), dataOut, bs);
+ marshal2Long(wireFormat, info.getMessageSequenceId(), dataOut, bs);
+ writeString(info.getSubscritionName(), dataOut, bs);
+ writeString(info.getClientId(), dataOut, bs);
+ marshal2NestedObject(wireFormat, info.getTransactionId(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/JournalTopicAckMarshaller.hpp b/openwire-cpp/src/marshal/JournalTopicAckMarshaller.hpp
new file mode 100644
index 0000000000..900ce8dd4a
--- /dev/null
+++ b/openwire-cpp/src/marshal/JournalTopicAckMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 JournalTopicAckMarshaller_hpp_
+#define JournalTopicAckMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class JournalTopicAckMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ JournalTopicAckMarshaller() ;
+ virtual ~JournalTopicAckMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*JournalTopicAckMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/JournalTraceMarshaller.cpp b/openwire-cpp/src/marshal/JournalTraceMarshaller.cpp
new file mode 100644
index 0000000000..e0bb454666
--- /dev/null
+++ b/openwire-cpp/src/marshal/JournalTraceMarshaller.cpp
@@ -0,0 +1,85 @@
+/*
+ * 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 "marshal/JournalTraceMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for JournalTrace
+ *
+ * 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
+ */
+
+JournalTraceMarshaller::JournalTraceMarshaller()
+{
+ // no-op
+}
+
+JournalTraceMarshaller::~JournalTraceMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* JournalTraceMarshaller::createObject()
+{
+ return new JournalTrace();
+}
+
+byte JournalTraceMarshaller::getDataStructureType()
+{
+ return JournalTrace.ID_JournalTrace;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void JournalTraceMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ JournalTrace& info = (JournalTrace&) o;
+ info.setMessage(tightUnmarshalString(dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int JournalTraceMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ JournalTrace& info = (JournalTrace&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += writeString(info.getMessage(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void JournalTraceMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ JournalTrace& info = (JournalTrace&) o;
+ writeString(info.getMessage(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/JournalTraceMarshaller.hpp b/openwire-cpp/src/marshal/JournalTraceMarshaller.hpp
new file mode 100644
index 0000000000..575bfe4333
--- /dev/null
+++ b/openwire-cpp/src/marshal/JournalTraceMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 JournalTraceMarshaller_hpp_
+#define JournalTraceMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class JournalTraceMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ JournalTraceMarshaller() ;
+ virtual ~JournalTraceMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*JournalTraceMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/JournalTransactionMarshaller.cpp b/openwire-cpp/src/marshal/JournalTransactionMarshaller.cpp
new file mode 100644
index 0000000000..46058709ff
--- /dev/null
+++ b/openwire-cpp/src/marshal/JournalTransactionMarshaller.cpp
@@ -0,0 +1,90 @@
+/*
+ * 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 "marshal/JournalTransactionMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for JournalTransaction
+ *
+ * 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
+ */
+
+JournalTransactionMarshaller::JournalTransactionMarshaller()
+{
+ // no-op
+}
+
+JournalTransactionMarshaller::~JournalTransactionMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* JournalTransactionMarshaller::createObject()
+{
+ return new JournalTransaction();
+}
+
+byte JournalTransactionMarshaller::getDataStructureType()
+{
+ return JournalTransaction.ID_JournalTransaction;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void JournalTransactionMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ JournalTransaction& info = (JournalTransaction&) o;
+ info.setTransactionId((TransactionId) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+ info.setType(dataIn.readByte());
+ info.setWasPrepared(bs.readBoolean());
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int JournalTransactionMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ JournalTransaction& info = (JournalTransaction&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1NestedObject(wireFormat, info.getTransactionId(), bs);
+ bs.writeBoolean(info.getWasPrepared());
+
+ return rc + 1;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void JournalTransactionMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ JournalTransaction& info = (JournalTransaction&) o;
+ marshal2NestedObject(wireFormat, info.getTransactionId(), dataOut, bs);
+ DataStreamMarshaller.writeByte(info.getType(), dataOut);
+ bs.readBoolean();
+
+}
diff --git a/openwire-cpp/src/marshal/JournalTransactionMarshaller.hpp b/openwire-cpp/src/marshal/JournalTransactionMarshaller.hpp
new file mode 100644
index 0000000000..ffa6debe17
--- /dev/null
+++ b/openwire-cpp/src/marshal/JournalTransactionMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 JournalTransactionMarshaller_hpp_
+#define JournalTransactionMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class JournalTransactionMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ JournalTransactionMarshaller() ;
+ virtual ~JournalTransactionMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*JournalTransactionMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/KeepAliveInfoMarshaller.cpp b/openwire-cpp/src/marshal/KeepAliveInfoMarshaller.cpp
new file mode 100644
index 0000000000..acb78db7aa
--- /dev/null
+++ b/openwire-cpp/src/marshal/KeepAliveInfoMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/KeepAliveInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for KeepAliveInfo
+ *
+ * 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
+ */
+
+KeepAliveInfoMarshaller::KeepAliveInfoMarshaller()
+{
+ // no-op
+}
+
+KeepAliveInfoMarshaller::~KeepAliveInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* KeepAliveInfoMarshaller::createObject()
+{
+ return new KeepAliveInfo();
+}
+
+byte KeepAliveInfoMarshaller::getDataStructureType()
+{
+ return KeepAliveInfo.ID_KeepAliveInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void KeepAliveInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int KeepAliveInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ KeepAliveInfo& info = (KeepAliveInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void KeepAliveInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/KeepAliveInfoMarshaller.hpp b/openwire-cpp/src/marshal/KeepAliveInfoMarshaller.hpp
new file mode 100644
index 0000000000..86d433b8c3
--- /dev/null
+++ b/openwire-cpp/src/marshal/KeepAliveInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 KeepAliveInfoMarshaller_hpp_
+#define KeepAliveInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class KeepAliveInfoMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ KeepAliveInfoMarshaller() ;
+ virtual ~KeepAliveInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*KeepAliveInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/LocalTransactionIdMarshaller.cpp b/openwire-cpp/src/marshal/LocalTransactionIdMarshaller.cpp
new file mode 100644
index 0000000000..f2d2d1c00a
--- /dev/null
+++ b/openwire-cpp/src/marshal/LocalTransactionIdMarshaller.cpp
@@ -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.
+ */
+#include "marshal/LocalTransactionIdMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for LocalTransactionId
+ *
+ * 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
+ */
+
+LocalTransactionIdMarshaller::LocalTransactionIdMarshaller()
+{
+ // no-op
+}
+
+LocalTransactionIdMarshaller::~LocalTransactionIdMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* LocalTransactionIdMarshaller::createObject()
+{
+ return new LocalTransactionId();
+}
+
+byte LocalTransactionIdMarshaller::getDataStructureType()
+{
+ return LocalTransactionId.ID_LocalTransactionId;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void LocalTransactionIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ LocalTransactionId& info = (LocalTransactionId&) o;
+ info.setValue(tightUnmarshalLong(wireFormat, dataIn, bs));
+ info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int LocalTransactionIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ LocalTransactionId& info = (LocalTransactionId&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1Long(wireFormat, info.getValue(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getConnectionId(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void LocalTransactionIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ LocalTransactionId& info = (LocalTransactionId&) o;
+ marshal2Long(wireFormat, info.getValue(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getConnectionId(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/LocalTransactionIdMarshaller.hpp b/openwire-cpp/src/marshal/LocalTransactionIdMarshaller.hpp
new file mode 100644
index 0000000000..3148d48d1a
--- /dev/null
+++ b/openwire-cpp/src/marshal/LocalTransactionIdMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 LocalTransactionIdMarshaller_hpp_
+#define LocalTransactionIdMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/TransactionIdMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class LocalTransactionIdMarshaller : public TransactionIdMarshaller
+{
+public:
+ LocalTransactionIdMarshaller() ;
+ virtual ~LocalTransactionIdMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*LocalTransactionIdMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/MarshallerFactory.cpp b/openwire-cpp/src/marshal/MarshallerFactory.cpp
new file mode 100644
index 0000000000..0fe34e2250
--- /dev/null
+++ b/openwire-cpp/src/marshal/MarshallerFactory.cpp
@@ -0,0 +1,130 @@
+/*
+* 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.
+*/
+
+// Marshalling code for Open Wire Format
+//
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Groovy scripts in the
+// activemq-openwire module
+//
+
+#include "marshal/ExceptionResponseMarshaller.hpp"
+
+#include "marshal/MessageIdMarshaller.hpp"
+#include "marshal/BrokerInfoMarshaller.hpp"
+#include "marshal/ActiveMQTempQueueMarshaller.hpp"
+#include "marshal/LocalTransactionIdMarshaller.hpp"
+#include "marshal/RemoveSubscriptionInfoMarshaller.hpp"
+#include "marshal/IntegerResponseMarshaller.hpp"
+#include "marshal/ActiveMQQueueMarshaller.hpp"
+#include "marshal/DestinationInfoMarshaller.hpp"
+#include "marshal/ActiveMQBytesMessageMarshaller.hpp"
+#include "marshal/ShutdownInfoMarshaller.hpp"
+#include "marshal/DataResponseMarshaller.hpp"
+#include "marshal/SessionIdMarshaller.hpp"
+#include "marshal/DataArrayResponseMarshaller.hpp"
+#include "marshal/JournalQueueAckMarshaller.hpp"
+#include "marshal/WireFormatInfoMarshaller.hpp"
+#include "marshal/ResponseMarshaller.hpp"
+#include "marshal/ConnectionErrorMarshaller.hpp"
+#include "marshal/ActiveMQObjectMessageMarshaller.hpp"
+#include "marshal/ConsumerInfoMarshaller.hpp"
+#include "marshal/ActiveMQTempTopicMarshaller.hpp"
+#include "marshal/ConnectionIdMarshaller.hpp"
+#include "marshal/DiscoveryEventMarshaller.hpp"
+#include "marshal/ConnectionInfoMarshaller.hpp"
+#include "marshal/KeepAliveInfoMarshaller.hpp"
+#include "marshal/XATransactionIdMarshaller.hpp"
+#include "marshal/JournalTraceMarshaller.hpp"
+#include "marshal/FlushCommandMarshaller.hpp"
+#include "marshal/ConsumerIdMarshaller.hpp"
+#include "marshal/JournalTopicAckMarshaller.hpp"
+#include "marshal/ActiveMQTextMessageMarshaller.hpp"
+#include "marshal/BrokerIdMarshaller.hpp"
+#include "marshal/MessageDispatchMarshaller.hpp"
+#include "marshal/ProducerInfoMarshaller.hpp"
+#include "marshal/SubscriptionInfoMarshaller.hpp"
+#include "marshal/ActiveMQMapMessageMarshaller.hpp"
+#include "marshal/MessageDispatchNotificationMarshaller.hpp"
+#include "marshal/SessionInfoMarshaller.hpp"
+#include "marshal/ActiveMQMessageMarshaller.hpp"
+#include "marshal/TransactionInfoMarshaller.hpp"
+#include "marshal/ActiveMQStreamMessageMarshaller.hpp"
+#include "marshal/MessageAckMarshaller.hpp"
+#include "marshal/ProducerIdMarshaller.hpp"
+#include "marshal/ActiveMQTopicMarshaller.hpp"
+#include "marshal/JournalTransactionMarshaller.hpp"
+#include "marshal/RemoveInfoMarshaller.hpp"
+#include "marshal/ControlCommandMarshaller.hpp"
+#include "marshal/ExceptionResponseMarshaller.hpp"
+
+
+using namespace apache::activemq::client::marshal;
+
+
+void MarshallerFactory::configure(OpenWireFormat& format)
+{
+
+ format.addMarshaller(new MessageIdMarshaller());
+ format.addMarshaller(new BrokerInfoMarshaller());
+ format.addMarshaller(new ActiveMQTempQueueMarshaller());
+ format.addMarshaller(new LocalTransactionIdMarshaller());
+ format.addMarshaller(new RemoveSubscriptionInfoMarshaller());
+ format.addMarshaller(new IntegerResponseMarshaller());
+ format.addMarshaller(new ActiveMQQueueMarshaller());
+ format.addMarshaller(new DestinationInfoMarshaller());
+ format.addMarshaller(new ActiveMQBytesMessageMarshaller());
+ format.addMarshaller(new ShutdownInfoMarshaller());
+ format.addMarshaller(new DataResponseMarshaller());
+ format.addMarshaller(new SessionIdMarshaller());
+ format.addMarshaller(new DataArrayResponseMarshaller());
+ format.addMarshaller(new JournalQueueAckMarshaller());
+ format.addMarshaller(new WireFormatInfoMarshaller());
+ format.addMarshaller(new ResponseMarshaller());
+ format.addMarshaller(new ConnectionErrorMarshaller());
+ format.addMarshaller(new ActiveMQObjectMessageMarshaller());
+ format.addMarshaller(new ConsumerInfoMarshaller());
+ format.addMarshaller(new ActiveMQTempTopicMarshaller());
+ format.addMarshaller(new ConnectionIdMarshaller());
+ format.addMarshaller(new DiscoveryEventMarshaller());
+ format.addMarshaller(new ConnectionInfoMarshaller());
+ format.addMarshaller(new KeepAliveInfoMarshaller());
+ format.addMarshaller(new XATransactionIdMarshaller());
+ format.addMarshaller(new JournalTraceMarshaller());
+ format.addMarshaller(new FlushCommandMarshaller());
+ format.addMarshaller(new ConsumerIdMarshaller());
+ format.addMarshaller(new JournalTopicAckMarshaller());
+ format.addMarshaller(new ActiveMQTextMessageMarshaller());
+ format.addMarshaller(new BrokerIdMarshaller());
+ format.addMarshaller(new MessageDispatchMarshaller());
+ format.addMarshaller(new ProducerInfoMarshaller());
+ format.addMarshaller(new SubscriptionInfoMarshaller());
+ format.addMarshaller(new ActiveMQMapMessageMarshaller());
+ format.addMarshaller(new MessageDispatchNotificationMarshaller());
+ format.addMarshaller(new SessionInfoMarshaller());
+ format.addMarshaller(new ActiveMQMessageMarshaller());
+ format.addMarshaller(new TransactionInfoMarshaller());
+ format.addMarshaller(new ActiveMQStreamMessageMarshaller());
+ format.addMarshaller(new MessageAckMarshaller());
+ format.addMarshaller(new ProducerIdMarshaller());
+ format.addMarshaller(new ActiveMQTopicMarshaller());
+ format.addMarshaller(new JournalTransactionMarshaller());
+ format.addMarshaller(new RemoveInfoMarshaller());
+ format.addMarshaller(new ControlCommandMarshaller());
+ format.addMarshaller(new ExceptionResponseMarshaller());
+}
diff --git a/openwire-cpp/src/marshal/MarshallerFactory.hpp b/openwire-cpp/src/marshal/MarshallerFactory.hpp
new file mode 100644
index 0000000000..38a4240125
--- /dev/null
+++ b/openwire-cpp/src/marshal/MarshallerFactory.hpp
@@ -0,0 +1,62 @@
+//*
+* 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.
+*/
+
+// Marshalling code for Open Wire Format
+//
+//
+// NOTE!: This file is autogenerated - do not modify!
+// if you need to make a change, please see the Groovy scripts in the
+// activemq-openwire module
+//
+
+#ifndef MarshallerFactory_hpp_
+#define MarshallerFactory_hpp_
+
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace std ;
+ using namespace apache::activemq::client;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class MarshallerFactory
+{
+public:
+ MarshallerFactory() ;
+ virtual ~MarshallerFactory() ;
+
+ virtual void configure(OpenWireFormat& format) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+
+#endif /*MarshallerFactory_hpp_*/
diff --git a/openwire-cpp/src/marshal/MessageAckMarshaller.cpp b/openwire-cpp/src/marshal/MessageAckMarshaller.cpp
new file mode 100644
index 0000000000..b15f7f724b
--- /dev/null
+++ b/openwire-cpp/src/marshal/MessageAckMarshaller.cpp
@@ -0,0 +1,101 @@
+/*
+ * 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 "marshal/MessageAckMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for MessageAck
+ *
+ * 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
+ */
+
+MessageAckMarshaller::MessageAckMarshaller()
+{
+ // no-op
+}
+
+MessageAckMarshaller::~MessageAckMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* MessageAckMarshaller::createObject()
+{
+ return new MessageAck();
+}
+
+byte MessageAckMarshaller::getDataStructureType()
+{
+ return MessageAck.ID_MessageAck;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void MessageAckMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ MessageAck& info = (MessageAck&) o;
+ info.setDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setTransactionId((TransactionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setConsumerId((ConsumerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setAckType(dataIn.readByte());
+ info.setFirstMessageId((MessageId) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+ info.setLastMessageId((MessageId) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+ info.setMessageCount(dataIn.readInt());
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int MessageAckMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ MessageAck& info = (MessageAck&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getDestination(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getTransactionId(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getConsumerId(), bs);
+ rc += marshal1NestedObject(wireFormat, info.getFirstMessageId(), bs);
+ rc += marshal1NestedObject(wireFormat, info.getLastMessageId(), bs);
+
+ return rc + 2;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void MessageAckMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ MessageAck& info = (MessageAck&) o;
+ marshal2CachedObject(wireFormat, info.getDestination(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getTransactionId(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getConsumerId(), dataOut, bs);
+ DataStreamMarshaller.writeByte(info.getAckType(), dataOut);
+ marshal2NestedObject(wireFormat, info.getFirstMessageId(), dataOut, bs);
+ marshal2NestedObject(wireFormat, info.getLastMessageId(), dataOut, bs);
+ DataStreamMarshaller.writeInt(info.getMessageCount(), dataOut);
+
+}
diff --git a/openwire-cpp/src/marshal/MessageAckMarshaller.hpp b/openwire-cpp/src/marshal/MessageAckMarshaller.hpp
new file mode 100644
index 0000000000..8aa0859c42
--- /dev/null
+++ b/openwire-cpp/src/marshal/MessageAckMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 MessageAckMarshaller_hpp_
+#define MessageAckMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class MessageAckMarshaller : public BaseCommandMarshaller
+{
+public:
+ MessageAckMarshaller() ;
+ virtual ~MessageAckMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*MessageAckMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/MessageDispatchMarshaller.cpp b/openwire-cpp/src/marshal/MessageDispatchMarshaller.cpp
new file mode 100644
index 0000000000..2cc4870948
--- /dev/null
+++ b/openwire-cpp/src/marshal/MessageDispatchMarshaller.cpp
@@ -0,0 +1,93 @@
+/*
+ * 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 "marshal/MessageDispatchMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * 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
+ */
+
+MessageDispatchMarshaller::MessageDispatchMarshaller()
+{
+ // no-op
+}
+
+MessageDispatchMarshaller::~MessageDispatchMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* MessageDispatchMarshaller::createObject()
+{
+ return new MessageDispatch();
+}
+
+byte MessageDispatchMarshaller::getDataStructureType()
+{
+ return MessageDispatch.ID_MessageDispatch;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void MessageDispatchMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ MessageDispatch& info = (MessageDispatch&) o;
+ info.setConsumerId((ConsumerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setMessage((Message) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+ info.setRedeliveryCounter(dataIn.readInt());
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int MessageDispatchMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ MessageDispatch& info = (MessageDispatch&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getConsumerId(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getDestination(), bs);
+ rc += marshal1NestedObject(wireFormat, info.getMessage(), bs);
+
+ return rc + 1;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void MessageDispatchMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ MessageDispatch& info = (MessageDispatch&) o;
+ marshal2CachedObject(wireFormat, info.getConsumerId(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getDestination(), dataOut, bs);
+ marshal2NestedObject(wireFormat, info.getMessage(), dataOut, bs);
+ DataStreamMarshaller.writeInt(info.getRedeliveryCounter(), dataOut);
+
+}
diff --git a/openwire-cpp/src/marshal/MessageDispatchMarshaller.hpp b/openwire-cpp/src/marshal/MessageDispatchMarshaller.hpp
new file mode 100644
index 0000000000..ee481f7a25
--- /dev/null
+++ b/openwire-cpp/src/marshal/MessageDispatchMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 MessageDispatchMarshaller_hpp_
+#define MessageDispatchMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class MessageDispatchMarshaller : public BaseCommandMarshaller
+{
+public:
+ MessageDispatchMarshaller() ;
+ virtual ~MessageDispatchMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*MessageDispatchMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/MessageDispatchNotificationMarshaller.cpp b/openwire-cpp/src/marshal/MessageDispatchNotificationMarshaller.cpp
new file mode 100644
index 0000000000..1c7e030f45
--- /dev/null
+++ b/openwire-cpp/src/marshal/MessageDispatchNotificationMarshaller.cpp
@@ -0,0 +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.
+ */
+#include "marshal/MessageDispatchNotificationMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * 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
+ */
+
+MessageDispatchNotificationMarshaller::MessageDispatchNotificationMarshaller()
+{
+ // no-op
+}
+
+MessageDispatchNotificationMarshaller::~MessageDispatchNotificationMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* MessageDispatchNotificationMarshaller::createObject()
+{
+ return new MessageDispatchNotification();
+}
+
+byte MessageDispatchNotificationMarshaller::getDataStructureType()
+{
+ return MessageDispatchNotification.ID_MessageDispatchNotification;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void MessageDispatchNotificationMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ MessageDispatchNotification& info = (MessageDispatchNotification&) o;
+ info.setConsumerId((ConsumerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setDeliverySequenceId(tightUnmarshalLong(wireFormat, dataIn, bs));
+ info.setMessageId((MessageId) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int MessageDispatchNotificationMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ MessageDispatchNotification& info = (MessageDispatchNotification&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getConsumerId(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getDestination(), bs);
+ rc += marshal1Long(wireFormat, info.getDeliverySequenceId(), bs);
+ rc += marshal1NestedObject(wireFormat, info.getMessageId(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void MessageDispatchNotificationMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ MessageDispatchNotification& info = (MessageDispatchNotification&) o;
+ marshal2CachedObject(wireFormat, info.getConsumerId(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getDestination(), dataOut, bs);
+ marshal2Long(wireFormat, info.getDeliverySequenceId(), dataOut, bs);
+ marshal2NestedObject(wireFormat, info.getMessageId(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/MessageDispatchNotificationMarshaller.hpp b/openwire-cpp/src/marshal/MessageDispatchNotificationMarshaller.hpp
new file mode 100644
index 0000000000..00d7b85c57
--- /dev/null
+++ b/openwire-cpp/src/marshal/MessageDispatchNotificationMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 MessageDispatchNotificationMarshaller_hpp_
+#define MessageDispatchNotificationMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class MessageDispatchNotificationMarshaller : public BaseCommandMarshaller
+{
+public:
+ MessageDispatchNotificationMarshaller() ;
+ virtual ~MessageDispatchNotificationMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*MessageDispatchNotificationMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/MessageIdMarshaller.cpp b/openwire-cpp/src/marshal/MessageIdMarshaller.cpp
new file mode 100644
index 0000000000..3a2059331e
--- /dev/null
+++ b/openwire-cpp/src/marshal/MessageIdMarshaller.cpp
@@ -0,0 +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.
+ */
+#include "marshal/MessageIdMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * 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
+ */
+
+MessageIdMarshaller::MessageIdMarshaller()
+{
+ // no-op
+}
+
+MessageIdMarshaller::~MessageIdMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* MessageIdMarshaller::createObject()
+{
+ return new MessageId();
+}
+
+byte MessageIdMarshaller::getDataStructureType()
+{
+ return MessageId.ID_MessageId;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void MessageIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ MessageId& info = (MessageId&) o;
+ info.setProducerId((ProducerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setProducerSequenceId(tightUnmarshalLong(wireFormat, dataIn, bs));
+ info.setBrokerSequenceId(tightUnmarshalLong(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int MessageIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ MessageId& info = (MessageId&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getProducerId(), bs);
+ rc += marshal1Long(wireFormat, info.getProducerSequenceId(), bs);
+ rc += marshal1Long(wireFormat, info.getBrokerSequenceId(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void MessageIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ MessageId& info = (MessageId&) o;
+ marshal2CachedObject(wireFormat, info.getProducerId(), dataOut, bs);
+ marshal2Long(wireFormat, info.getProducerSequenceId(), dataOut, bs);
+ marshal2Long(wireFormat, info.getBrokerSequenceId(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/MessageIdMarshaller.hpp b/openwire-cpp/src/marshal/MessageIdMarshaller.hpp
new file mode 100644
index 0000000000..c4dc063429
--- /dev/null
+++ b/openwire-cpp/src/marshal/MessageIdMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 MessageIdMarshaller_hpp_
+#define MessageIdMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class MessageIdMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ MessageIdMarshaller() ;
+ virtual ~MessageIdMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*MessageIdMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/MessageMarshaller.cpp b/openwire-cpp/src/marshal/MessageMarshaller.cpp
new file mode 100644
index 0000000000..f34759378d
--- /dev/null
+++ b/openwire-cpp/src/marshal/MessageMarshaller.cpp
@@ -0,0 +1,162 @@
+/*
+ * 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 "marshal/MessageMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for Message
+ *
+ * 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
+ */
+
+MessageMarshaller::MessageMarshaller()
+{
+ // no-op
+}
+
+MessageMarshaller::~MessageMarshaller()
+{
+ // no-op
+}
+
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void MessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ Message& info = (Message&) o;
+ info.setProducerId((ProducerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setTransactionId((TransactionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setOriginalDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setMessageId((MessageId) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+ info.setOriginalTransactionId((TransactionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setGroupID(tightUnmarshalString(dataIn, bs));
+ info.setGroupSequence(dataIn.readInt());
+ info.setCorrelationId(tightUnmarshalString(dataIn, bs));
+ info.setPersistent(bs.readBoolean());
+ info.setExpiration(tightUnmarshalLong(wireFormat, dataIn, bs));
+ info.setPriority(dataIn.readByte());
+ info.setReplyTo((ActiveMQDestination) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+ info.setTimestamp(tightUnmarshalLong(wireFormat, dataIn, bs));
+ info.setType(tightUnmarshalString(dataIn, bs));
+ info.setContent(tightUnmarshalByteSequence(dataIn, bs));
+ info.setMarshalledProperties(tightUnmarshalByteSequence(dataIn, bs));
+ info.setDataStructure((DataStructure) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
+ info.setTargetConsumerId((ConsumerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setCompressed(bs.readBoolean());
+ info.setRedeliveryCounter(dataIn.readInt());
+
+ if (bs.readBoolean()) {
+ short size = dataIn.readShort();
+ BrokerId value[] = new BrokerId[size];
+ for( int i=0; i < size; i++ ) {
+ value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
+ }
+ info.setBrokerPath(value);
+ }
+ else {
+ info.setBrokerPath(null);
+ }
+ info.setArrival(tightUnmarshalLong(wireFormat, dataIn, bs));
+ info.setUserID(tightUnmarshalString(dataIn, bs));
+ info.setRecievedByDFBridge(bs.readBoolean());
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int MessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ Message& info = (Message&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getProducerId(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getDestination(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getTransactionId(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getOriginalDestination(), bs);
+ rc += marshal1NestedObject(wireFormat, info.getMessageId(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getOriginalTransactionId(), bs);
+ rc += writeString(info.getGroupID(), bs);
+ rc += writeString(info.getCorrelationId(), bs);
+ bs.writeBoolean(info.isPersistent());
+ rc += marshal1Long(wireFormat, info.getExpiration(), bs);
+ rc += marshal1NestedObject(wireFormat, info.getReplyTo(), bs);
+ rc += marshal1Long(wireFormat, info.getTimestamp(), bs);
+ rc += writeString(info.getType(), bs);
+ bs.writeBoolean(info.getContent()!=null);
+ rc += info.getContent()==null ? 0 : info.getContent().Length+4;
+ bs.writeBoolean(info.getMarshalledProperties()!=null);
+ rc += info.getMarshalledProperties()==null ? 0 : info.getMarshalledProperties().Length+4;
+ rc += marshal1NestedObject(wireFormat, info.getDataStructure(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getTargetConsumerId(), bs);
+ bs.writeBoolean(info.isCompressed());
+ rc += marshalObjectArray(wireFormat, info.getBrokerPath(), bs);
+ rc += marshal1Long(wireFormat, info.getArrival(), bs);
+ rc += writeString(info.getUserID(), bs);
+ bs.writeBoolean(info.isRecievedByDFBridge());
+
+ return rc + 3;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void MessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ Message& info = (Message&) o;
+ marshal2CachedObject(wireFormat, info.getProducerId(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getDestination(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getTransactionId(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getOriginalDestination(), dataOut, bs);
+ marshal2NestedObject(wireFormat, info.getMessageId(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getOriginalTransactionId(), dataOut, bs);
+ writeString(info.getGroupID(), dataOut, bs);
+ DataStreamMarshaller.writeInt(info.getGroupSequence(), dataOut);
+ writeString(info.getCorrelationId(), dataOut, bs);
+ bs.readBoolean();
+ marshal2Long(wireFormat, info.getExpiration(), dataOut, bs);
+ DataStreamMarshaller.writeByte(info.getPriority(), dataOut);
+ marshal2NestedObject(wireFormat, info.getReplyTo(), dataOut, bs);
+ marshal2Long(wireFormat, info.getTimestamp(), dataOut, bs);
+ writeString(info.getType(), dataOut, bs);
+ if(bs.readBoolean()) {
+ DataStreamMarshaller.writeInt(info.getContent().Length, dataOut);
+ dataOut.write(info.getContent());
+ }
+ if(bs.readBoolean()) {
+ DataStreamMarshaller.writeInt(info.getMarshalledProperties().Length, dataOut);
+ dataOut.write(info.getMarshalledProperties());
+ }
+ marshal2NestedObject(wireFormat, info.getDataStructure(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getTargetConsumerId(), dataOut, bs);
+ bs.readBoolean();
+ DataStreamMarshaller.writeInt(info.getRedeliveryCounter(), dataOut);
+ marshalObjectArray(wireFormat, info.getBrokerPath(), dataOut, bs);
+ marshal2Long(wireFormat, info.getArrival(), dataOut, bs);
+ writeString(info.getUserID(), dataOut, bs);
+ bs.readBoolean();
+
+}
diff --git a/openwire-cpp/src/marshal/MessageMarshaller.hpp b/openwire-cpp/src/marshal/MessageMarshaller.hpp
new file mode 100644
index 0000000000..e2ece286fe
--- /dev/null
+++ b/openwire-cpp/src/marshal/MessageMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 MessageMarshaller_hpp_
+#define MessageMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class MessageMarshaller : public BaseCommandMarshaller
+{
+public:
+ MessageMarshaller() ;
+ virtual ~MessageMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*MessageMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ProducerIdMarshaller.cpp b/openwire-cpp/src/marshal/ProducerIdMarshaller.cpp
new file mode 100644
index 0000000000..938acb59d6
--- /dev/null
+++ b/openwire-cpp/src/marshal/ProducerIdMarshaller.cpp
@@ -0,0 +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.
+ */
+#include "marshal/ProducerIdMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * 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
+ */
+
+ProducerIdMarshaller::ProducerIdMarshaller()
+{
+ // no-op
+}
+
+ProducerIdMarshaller::~ProducerIdMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ProducerIdMarshaller::createObject()
+{
+ return new ProducerId();
+}
+
+byte ProducerIdMarshaller::getDataStructureType()
+{
+ return ProducerId.ID_ProducerId;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ProducerIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ ProducerId& info = (ProducerId&) o;
+ info.setConnectionId(tightUnmarshalString(dataIn, bs));
+ info.setValue(tightUnmarshalLong(wireFormat, dataIn, bs));
+ info.setSessionId(tightUnmarshalLong(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ProducerIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ProducerId& info = (ProducerId&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += writeString(info.getConnectionId(), bs);
+ rc += marshal1Long(wireFormat, info.getValue(), bs);
+ rc += marshal1Long(wireFormat, info.getSessionId(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ProducerIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ ProducerId& info = (ProducerId&) o;
+ writeString(info.getConnectionId(), dataOut, bs);
+ marshal2Long(wireFormat, info.getValue(), dataOut, bs);
+ marshal2Long(wireFormat, info.getSessionId(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ProducerIdMarshaller.hpp b/openwire-cpp/src/marshal/ProducerIdMarshaller.hpp
new file mode 100644
index 0000000000..a4b4d99545
--- /dev/null
+++ b/openwire-cpp/src/marshal/ProducerIdMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ProducerIdMarshaller_hpp_
+#define ProducerIdMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ProducerIdMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ ProducerIdMarshaller() ;
+ virtual ~ProducerIdMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ProducerIdMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ProducerInfoMarshaller.cpp b/openwire-cpp/src/marshal/ProducerInfoMarshaller.cpp
new file mode 100644
index 0000000000..c68d72fd59
--- /dev/null
+++ b/openwire-cpp/src/marshal/ProducerInfoMarshaller.cpp
@@ -0,0 +1,102 @@
+/*
+ * 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 "marshal/ProducerInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * 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
+ */
+
+ProducerInfoMarshaller::ProducerInfoMarshaller()
+{
+ // no-op
+}
+
+ProducerInfoMarshaller::~ProducerInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ProducerInfoMarshaller::createObject()
+{
+ return new ProducerInfo();
+}
+
+byte ProducerInfoMarshaller::getDataStructureType()
+{
+ return ProducerInfo.ID_ProducerInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ProducerInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ ProducerInfo& info = (ProducerInfo&) o;
+ info.setProducerId((ProducerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+
+ if (bs.readBoolean()) {
+ short size = dataIn.readShort();
+ BrokerId value[] = new BrokerId[size];
+ for( int i=0; i < size; i++ ) {
+ value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
+ }
+ info.setBrokerPath(value);
+ }
+ else {
+ info.setBrokerPath(null);
+ }
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ProducerInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ProducerInfo& info = (ProducerInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getProducerId(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getDestination(), bs);
+ rc += marshalObjectArray(wireFormat, info.getBrokerPath(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ProducerInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ ProducerInfo& info = (ProducerInfo&) o;
+ marshal2CachedObject(wireFormat, info.getProducerId(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getDestination(), dataOut, bs);
+ marshalObjectArray(wireFormat, info.getBrokerPath(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ProducerInfoMarshaller.hpp b/openwire-cpp/src/marshal/ProducerInfoMarshaller.hpp
new file mode 100644
index 0000000000..89ef3096de
--- /dev/null
+++ b/openwire-cpp/src/marshal/ProducerInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ProducerInfoMarshaller_hpp_
+#define ProducerInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ProducerInfoMarshaller : public BaseCommandMarshaller
+{
+public:
+ ProducerInfoMarshaller() ;
+ virtual ~ProducerInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ProducerInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/RemoveInfoMarshaller.cpp b/openwire-cpp/src/marshal/RemoveInfoMarshaller.cpp
new file mode 100644
index 0000000000..9f9f26cd7e
--- /dev/null
+++ b/openwire-cpp/src/marshal/RemoveInfoMarshaller.cpp
@@ -0,0 +1,85 @@
+/*
+ * 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 "marshal/RemoveInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * 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
+ */
+
+RemoveInfoMarshaller::RemoveInfoMarshaller()
+{
+ // no-op
+}
+
+RemoveInfoMarshaller::~RemoveInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* RemoveInfoMarshaller::createObject()
+{
+ return new RemoveInfo();
+}
+
+byte RemoveInfoMarshaller::getDataStructureType()
+{
+ return RemoveInfo.ID_RemoveInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void RemoveInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ RemoveInfo& info = (RemoveInfo&) o;
+ info.setObjectId((DataStructure) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int RemoveInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ RemoveInfo& info = (RemoveInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getObjectId(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void RemoveInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ RemoveInfo& info = (RemoveInfo&) o;
+ marshal2CachedObject(wireFormat, info.getObjectId(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/RemoveInfoMarshaller.hpp b/openwire-cpp/src/marshal/RemoveInfoMarshaller.hpp
new file mode 100644
index 0000000000..3ec06be47c
--- /dev/null
+++ b/openwire-cpp/src/marshal/RemoveInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 RemoveInfoMarshaller_hpp_
+#define RemoveInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class RemoveInfoMarshaller : public BaseCommandMarshaller
+{
+public:
+ RemoveInfoMarshaller() ;
+ virtual ~RemoveInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*RemoveInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/RemoveSubscriptionInfoMarshaller.cpp b/openwire-cpp/src/marshal/RemoveSubscriptionInfoMarshaller.cpp
new file mode 100644
index 0000000000..3205bcca13
--- /dev/null
+++ b/openwire-cpp/src/marshal/RemoveSubscriptionInfoMarshaller.cpp
@@ -0,0 +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.
+ */
+#include "marshal/RemoveSubscriptionInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+ *
+ * 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
+ */
+
+RemoveSubscriptionInfoMarshaller::RemoveSubscriptionInfoMarshaller()
+{
+ // no-op
+}
+
+RemoveSubscriptionInfoMarshaller::~RemoveSubscriptionInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* RemoveSubscriptionInfoMarshaller::createObject()
+{
+ return new RemoveSubscriptionInfo();
+}
+
+byte RemoveSubscriptionInfoMarshaller::getDataStructureType()
+{
+ return RemoveSubscriptionInfo.ID_RemoveSubscriptionInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void RemoveSubscriptionInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ RemoveSubscriptionInfo& info = (RemoveSubscriptionInfo&) o;
+ info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setSubcriptionName(tightUnmarshalString(dataIn, bs));
+ info.setClientId(tightUnmarshalString(dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int RemoveSubscriptionInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ RemoveSubscriptionInfo& info = (RemoveSubscriptionInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getConnectionId(), bs);
+ rc += writeString(info.getSubcriptionName(), bs);
+ rc += writeString(info.getClientId(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void RemoveSubscriptionInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ RemoveSubscriptionInfo& info = (RemoveSubscriptionInfo&) o;
+ marshal2CachedObject(wireFormat, info.getConnectionId(), dataOut, bs);
+ writeString(info.getSubcriptionName(), dataOut, bs);
+ writeString(info.getClientId(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/RemoveSubscriptionInfoMarshaller.hpp b/openwire-cpp/src/marshal/RemoveSubscriptionInfoMarshaller.hpp
new file mode 100644
index 0000000000..08e827db06
--- /dev/null
+++ b/openwire-cpp/src/marshal/RemoveSubscriptionInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 RemoveSubscriptionInfoMarshaller_hpp_
+#define RemoveSubscriptionInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class RemoveSubscriptionInfoMarshaller : public BaseCommandMarshaller
+{
+public:
+ RemoveSubscriptionInfoMarshaller() ;
+ virtual ~RemoveSubscriptionInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*RemoveSubscriptionInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ResponseMarshaller.cpp b/openwire-cpp/src/marshal/ResponseMarshaller.cpp
new file mode 100644
index 0000000000..ddd44b7016
--- /dev/null
+++ b/openwire-cpp/src/marshal/ResponseMarshaller.cpp
@@ -0,0 +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.
+ */
+#include "marshal/ResponseMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for Response
+ *
+ * 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
+ */
+
+ResponseMarshaller::ResponseMarshaller()
+{
+ // no-op
+}
+
+ResponseMarshaller::~ResponseMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ResponseMarshaller::createObject()
+{
+ return new Response();
+}
+
+byte ResponseMarshaller::getDataStructureType()
+{
+ return Response.ID_Response;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ResponseMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ Response& info = (Response&) o;
+ info.setCorrelationId(dataIn.readShort());
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ResponseMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ Response& info = (Response&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 1;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ResponseMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ Response& info = (Response&) o;
+ DataStreamMarshaller.writeShort(info.getCorrelationId(), dataOut);
+
+}
diff --git a/openwire-cpp/src/marshal/ResponseMarshaller.hpp b/openwire-cpp/src/marshal/ResponseMarshaller.hpp
new file mode 100644
index 0000000000..0e67ddcd6a
--- /dev/null
+++ b/openwire-cpp/src/marshal/ResponseMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ResponseMarshaller_hpp_
+#define ResponseMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ResponseMarshaller : public BaseCommandMarshaller
+{
+public:
+ ResponseMarshaller() ;
+ virtual ~ResponseMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ResponseMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/SessionIdMarshaller.cpp b/openwire-cpp/src/marshal/SessionIdMarshaller.cpp
new file mode 100644
index 0000000000..f42a9f366a
--- /dev/null
+++ b/openwire-cpp/src/marshal/SessionIdMarshaller.cpp
@@ -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.
+ */
+#include "marshal/SessionIdMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for SessionId
+ *
+ * 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
+ */
+
+SessionIdMarshaller::SessionIdMarshaller()
+{
+ // no-op
+}
+
+SessionIdMarshaller::~SessionIdMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* SessionIdMarshaller::createObject()
+{
+ return new SessionId();
+}
+
+byte SessionIdMarshaller::getDataStructureType()
+{
+ return SessionId.ID_SessionId;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void SessionIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ SessionId& info = (SessionId&) o;
+ info.setConnectionId(tightUnmarshalString(dataIn, bs));
+ info.setValue(tightUnmarshalLong(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int SessionIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ SessionId& info = (SessionId&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += writeString(info.getConnectionId(), bs);
+ rc += marshal1Long(wireFormat, info.getValue(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void SessionIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ SessionId& info = (SessionId&) o;
+ writeString(info.getConnectionId(), dataOut, bs);
+ marshal2Long(wireFormat, info.getValue(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/SessionIdMarshaller.hpp b/openwire-cpp/src/marshal/SessionIdMarshaller.hpp
new file mode 100644
index 0000000000..c1df86b384
--- /dev/null
+++ b/openwire-cpp/src/marshal/SessionIdMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 SessionIdMarshaller_hpp_
+#define SessionIdMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class SessionIdMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ SessionIdMarshaller() ;
+ virtual ~SessionIdMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*SessionIdMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/SessionInfoMarshaller.cpp b/openwire-cpp/src/marshal/SessionInfoMarshaller.cpp
new file mode 100644
index 0000000000..8b83c435e3
--- /dev/null
+++ b/openwire-cpp/src/marshal/SessionInfoMarshaller.cpp
@@ -0,0 +1,85 @@
+/*
+ * 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 "marshal/SessionInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for SessionInfo
+ *
+ * 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
+ */
+
+SessionInfoMarshaller::SessionInfoMarshaller()
+{
+ // no-op
+}
+
+SessionInfoMarshaller::~SessionInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* SessionInfoMarshaller::createObject()
+{
+ return new SessionInfo();
+}
+
+byte SessionInfoMarshaller::getDataStructureType()
+{
+ return SessionInfo.ID_SessionInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void SessionInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ SessionInfo& info = (SessionInfo&) o;
+ info.setSessionId((SessionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int SessionInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ SessionInfo& info = (SessionInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getSessionId(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void SessionInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ SessionInfo& info = (SessionInfo&) o;
+ marshal2CachedObject(wireFormat, info.getSessionId(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/SessionInfoMarshaller.hpp b/openwire-cpp/src/marshal/SessionInfoMarshaller.hpp
new file mode 100644
index 0000000000..78779c2620
--- /dev/null
+++ b/openwire-cpp/src/marshal/SessionInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 SessionInfoMarshaller_hpp_
+#define SessionInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class SessionInfoMarshaller : public BaseCommandMarshaller
+{
+public:
+ SessionInfoMarshaller() ;
+ virtual ~SessionInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*SessionInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/ShutdownInfoMarshaller.cpp b/openwire-cpp/src/marshal/ShutdownInfoMarshaller.cpp
new file mode 100644
index 0000000000..52927b8ce6
--- /dev/null
+++ b/openwire-cpp/src/marshal/ShutdownInfoMarshaller.cpp
@@ -0,0 +1,78 @@
+/*
+ * 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 "marshal/ShutdownInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for ShutdownInfo
+ *
+ * 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
+ */
+
+ShutdownInfoMarshaller::ShutdownInfoMarshaller()
+{
+ // no-op
+}
+
+ShutdownInfoMarshaller::~ShutdownInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* ShutdownInfoMarshaller::createObject()
+{
+ return new ShutdownInfo();
+}
+
+byte ShutdownInfoMarshaller::getDataStructureType()
+{
+ return ShutdownInfo.ID_ShutdownInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void ShutdownInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int ShutdownInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ ShutdownInfo& info = (ShutdownInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void ShutdownInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/ShutdownInfoMarshaller.hpp b/openwire-cpp/src/marshal/ShutdownInfoMarshaller.hpp
new file mode 100644
index 0000000000..8e4bcf39ad
--- /dev/null
+++ b/openwire-cpp/src/marshal/ShutdownInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 ShutdownInfoMarshaller_hpp_
+#define ShutdownInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class ShutdownInfoMarshaller : public BaseCommandMarshaller
+{
+public:
+ ShutdownInfoMarshaller() ;
+ virtual ~ShutdownInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*ShutdownInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/SubscriptionInfoMarshaller.cpp b/openwire-cpp/src/marshal/SubscriptionInfoMarshaller.cpp
new file mode 100644
index 0000000000..640747520d
--- /dev/null
+++ b/openwire-cpp/src/marshal/SubscriptionInfoMarshaller.cpp
@@ -0,0 +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.
+ */
+#include "marshal/SubscriptionInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for SubscriptionInfo
+ *
+ * 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
+ */
+
+SubscriptionInfoMarshaller::SubscriptionInfoMarshaller()
+{
+ // no-op
+}
+
+SubscriptionInfoMarshaller::~SubscriptionInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* SubscriptionInfoMarshaller::createObject()
+{
+ return new SubscriptionInfo();
+}
+
+byte SubscriptionInfoMarshaller::getDataStructureType()
+{
+ return SubscriptionInfo.ID_SubscriptionInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void SubscriptionInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ SubscriptionInfo& info = (SubscriptionInfo&) o;
+ info.setClientId(tightUnmarshalString(dataIn, bs));
+ info.setDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setSelector(tightUnmarshalString(dataIn, bs));
+ info.setSubcriptionName(tightUnmarshalString(dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int SubscriptionInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ SubscriptionInfo& info = (SubscriptionInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += writeString(info.getClientId(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getDestination(), bs);
+ rc += writeString(info.getSelector(), bs);
+ rc += writeString(info.getSubcriptionName(), bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void SubscriptionInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ SubscriptionInfo& info = (SubscriptionInfo&) o;
+ writeString(info.getClientId(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getDestination(), dataOut, bs);
+ writeString(info.getSelector(), dataOut, bs);
+ writeString(info.getSubcriptionName(), dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/SubscriptionInfoMarshaller.hpp b/openwire-cpp/src/marshal/SubscriptionInfoMarshaller.hpp
new file mode 100644
index 0000000000..e20f4cc1b6
--- /dev/null
+++ b/openwire-cpp/src/marshal/SubscriptionInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 SubscriptionInfoMarshaller_hpp_
+#define SubscriptionInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class SubscriptionInfoMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ SubscriptionInfoMarshaller() ;
+ virtual ~SubscriptionInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*SubscriptionInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/TransactionIdMarshaller.cpp b/openwire-cpp/src/marshal/TransactionIdMarshaller.cpp
new file mode 100644
index 0000000000..c05b3aeef5
--- /dev/null
+++ b/openwire-cpp/src/marshal/TransactionIdMarshaller.cpp
@@ -0,0 +1,67 @@
+/*
+ * 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 "marshal/TransactionIdMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for TransactionId
+ *
+ * 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
+ */
+
+TransactionIdMarshaller::TransactionIdMarshaller()
+{
+ // no-op
+}
+
+TransactionIdMarshaller::~TransactionIdMarshaller()
+{
+ // no-op
+}
+
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void TransactionIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int TransactionIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ TransactionId& info = (TransactionId&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+
+ return rc + 0;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void TransactionIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+}
diff --git a/openwire-cpp/src/marshal/TransactionIdMarshaller.hpp b/openwire-cpp/src/marshal/TransactionIdMarshaller.hpp
new file mode 100644
index 0000000000..c2778b6adf
--- /dev/null
+++ b/openwire-cpp/src/marshal/TransactionIdMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 TransactionIdMarshaller_hpp_
+#define TransactionIdMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class TransactionIdMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ TransactionIdMarshaller() ;
+ virtual ~TransactionIdMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*TransactionIdMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/TransactionInfoMarshaller.cpp b/openwire-cpp/src/marshal/TransactionInfoMarshaller.cpp
new file mode 100644
index 0000000000..a2c3cbea02
--- /dev/null
+++ b/openwire-cpp/src/marshal/TransactionInfoMarshaller.cpp
@@ -0,0 +1,90 @@
+/*
+ * 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 "marshal/TransactionInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for TransactionInfo
+ *
+ * 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
+ */
+
+TransactionInfoMarshaller::TransactionInfoMarshaller()
+{
+ // no-op
+}
+
+TransactionInfoMarshaller::~TransactionInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* TransactionInfoMarshaller::createObject()
+{
+ return new TransactionInfo();
+}
+
+byte TransactionInfoMarshaller::getDataStructureType()
+{
+ return TransactionInfo.ID_TransactionInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void TransactionInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ TransactionInfo& info = (TransactionInfo&) o;
+ info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setTransactionId((TransactionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
+ info.setType(dataIn.readByte());
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int TransactionInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ TransactionInfo& info = (TransactionInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ rc += marshal1CachedObject(wireFormat, info.getConnectionId(), bs);
+ rc += marshal1CachedObject(wireFormat, info.getTransactionId(), bs);
+
+ return rc + 1;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void TransactionInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ TransactionInfo& info = (TransactionInfo&) o;
+ marshal2CachedObject(wireFormat, info.getConnectionId(), dataOut, bs);
+ marshal2CachedObject(wireFormat, info.getTransactionId(), dataOut, bs);
+ DataStreamMarshaller.writeByte(info.getType(), dataOut);
+
+}
diff --git a/openwire-cpp/src/marshal/TransactionInfoMarshaller.hpp b/openwire-cpp/src/marshal/TransactionInfoMarshaller.hpp
new file mode 100644
index 0000000000..237ee69044
--- /dev/null
+++ b/openwire-cpp/src/marshal/TransactionInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 TransactionInfoMarshaller_hpp_
+#define TransactionInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseCommandMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class TransactionInfoMarshaller : public BaseCommandMarshaller
+{
+public:
+ TransactionInfoMarshaller() ;
+ virtual ~TransactionInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*TransactionInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/WireFormatInfoMarshaller.cpp b/openwire-cpp/src/marshal/WireFormatInfoMarshaller.cpp
new file mode 100644
index 0000000000..c5b8793790
--- /dev/null
+++ b/openwire-cpp/src/marshal/WireFormatInfoMarshaller.cpp
@@ -0,0 +1,101 @@
+/*
+ * 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 "marshal/WireFormatInfoMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for WireFormatInfo
+ *
+ * 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
+ */
+
+WireFormatInfoMarshaller::WireFormatInfoMarshaller()
+{
+ // no-op
+}
+
+WireFormatInfoMarshaller::~WireFormatInfoMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* WireFormatInfoMarshaller::createObject()
+{
+ return new WireFormatInfo();
+}
+
+byte WireFormatInfoMarshaller::getDataStructureType()
+{
+ return WireFormatInfo.ID_WireFormatInfo;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void WireFormatInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ WireFormatInfo& info = (WireFormatInfo&) o;
+ info.setMagic(tightUnmarshalConstByteArray(dataIn, bs, 8));
+ info.setVersion(dataIn.readInt());
+ info.setCacheEnabled(bs.readBoolean());
+ info.setStackTraceEnabled(bs.readBoolean());
+ info.setTcpNoDelayEnabled(bs.readBoolean());
+ info.setPrefixPacketSize(bs.readBoolean());
+ info.setTightEncodingEnabled(bs.readBoolean());
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int WireFormatInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ WireFormatInfo& info = (WireFormatInfo&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ bs.writeBoolean(info.isCacheEnabled());
+ bs.writeBoolean(info.isStackTraceEnabled());
+ bs.writeBoolean(info.isTcpNoDelayEnabled());
+ bs.writeBoolean(info.isPrefixPacketSize());
+ bs.writeBoolean(info.isTightEncodingEnabled());
+
+ return rc + 9;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void WireFormatInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ WireFormatInfo& info = (WireFormatInfo&) o;
+ dataOut.write(info.getMagic(), 0, 8);
+ DataStreamMarshaller.writeInt(info.getVersion(), dataOut);
+ bs.readBoolean();
+ bs.readBoolean();
+ bs.readBoolean();
+ bs.readBoolean();
+ bs.readBoolean();
+
+}
diff --git a/openwire-cpp/src/marshal/WireFormatInfoMarshaller.hpp b/openwire-cpp/src/marshal/WireFormatInfoMarshaller.hpp
new file mode 100644
index 0000000000..ebf4c10bba
--- /dev/null
+++ b/openwire-cpp/src/marshal/WireFormatInfoMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 WireFormatInfoMarshaller_hpp_
+#define WireFormatInfoMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/BaseDataStreamMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class WireFormatInfoMarshaller : public BaseDataStreamMarshaller
+{
+public:
+ WireFormatInfoMarshaller() ;
+ virtual ~WireFormatInfoMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*WireFormatInfoMarshaller_hpp_*/
diff --git a/openwire-cpp/src/marshal/XATransactionIdMarshaller.cpp b/openwire-cpp/src/marshal/XATransactionIdMarshaller.cpp
new file mode 100644
index 0000000000..534a0c0c44
--- /dev/null
+++ b/openwire-cpp/src/marshal/XATransactionIdMarshaller.cpp
@@ -0,0 +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.
+ */
+#include "marshal/XATransactionIdMarshaller.hpp"
+
+using namespace apache::activemq::client::marshal;
+
+/*
+ * Marshalling code for Open Wire Format for XATransactionId
+ *
+ * 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
+ */
+
+XATransactionIdMarshaller::XATransactionIdMarshaller()
+{
+ // no-op
+}
+
+XATransactionIdMarshaller::~XATransactionIdMarshaller()
+{
+ // no-op
+}
+
+
+
+DataStructure* XATransactionIdMarshaller::createObject()
+{
+ return new XATransactionId();
+}
+
+byte XATransactionIdMarshaller::getDataStructureType()
+{
+ return XATransactionId.ID_XATransactionId;
+}
+
+ /*
+ * Un-marshal an object instance from the data input stream
+ */
+void XATransactionIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
+{
+ base.unmarshal(wireFormat, o, dataIn, bs);
+
+ XATransactionId& info = (XATransactionId&) o;
+ info.setFormatId(dataIn.readInt());
+ info.setGlobalTransactionId(tightUnmarshalByteArray(dataIn, bs));
+ info.setBranchQualifier(tightUnmarshalByteArray(dataIn, bs));
+
+}
+
+
+/*
+ * Write the booleans that this object uses to a BooleanStream
+ */
+int XATransactionIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
+ XATransactionId& info = (XATransactionId&) o;
+
+ int rc = base.marshal1(wireFormat, info, bs);
+ bs.writeBoolean(info.getGlobalTransactionId()!=null);
+ rc += info.getGlobalTransactionId()==null ? 0 : info.getGlobalTransactionId().Length+4;
+ bs.writeBoolean(info.getBranchQualifier()!=null);
+ rc += info.getBranchQualifier()==null ? 0 : info.getBranchQualifier().Length+4;
+
+ return rc + 1;
+}
+
+/*
+ * Write a object instance to data output stream
+ */
+void XATransactionIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
+ base.marshal2(wireFormat, o, dataOut, bs);
+
+ XATransactionId& info = (XATransactionId&) o;
+ DataStreamMarshaller.writeInt(info.getFormatId(), dataOut);
+ if(bs.readBoolean()) {
+ DataStreamMarshaller.writeInt(info.getGlobalTransactionId().Length, dataOut);
+ dataOut.write(info.getGlobalTransactionId());
+ }
+ if(bs.readBoolean()) {
+ DataStreamMarshaller.writeInt(info.getBranchQualifier().Length, dataOut);
+ dataOut.write(info.getBranchQualifier());
+ }
+
+}
diff --git a/openwire-cpp/src/marshal/XATransactionIdMarshaller.hpp b/openwire-cpp/src/marshal/XATransactionIdMarshaller.hpp
new file mode 100644
index 0000000000..a2fdebdf60
--- /dev/null
+++ b/openwire-cpp/src/marshal/XATransactionIdMarshaller.hpp
@@ -0,0 +1,71 @@
+/*
+* 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 XATransactionIdMarshaller_hpp_
+#define XATransactionIdMarshaller_hpp_
+
+#include
+
+#include "command/DataStructure.hpp"
+
+/* we could cut this down - for now include all possible headers */
+#include "command/BrokerId.hpp"
+#include "command/ConnectionId.hpp"
+#include "command/ConsumerId.hpp"
+#include "command/ProducerId.hpp"
+#include "command/SessionId.hpp"
+
+#include "io/BinaryReader.hpp"
+#include "io/BinaryWriter.hpp"
+
+#include "command/TransactionIdMarshaller.hpp"
+#include "util/ifr/p"
+
+namespace apache
+{
+ namespace activemq
+ {
+ namespace client
+ {
+ namespace marshal
+ {
+ using namespace ifr ;
+ using namespace apache::activemq::client::command;
+ using namespace apache::activemq::client::io;
+
+/*
+ *
+ */
+class XATransactionIdMarshaller : public TransactionIdMarshaller
+{
+public:
+ XATransactionIdMarshaller() ;
+ virtual ~XATransactionIdMarshaller() ;
+
+ virtual DataStructure* createCommand() ;
+ virtual byte getDataStructureType() ;
+
+ virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
+ virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
+ virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
+} ;
+
+/* namespace */
+ }
+ }
+ }
+}
+#endif /*XATransactionIdMarshaller_hpp_*/