Return-Path: Delivered-To: apmail-geronimo-activemq-commits-archive@www.apache.org Received: (qmail 51058 invoked from network); 27 Sep 2006 02:49:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2006 02:49:34 -0000 Received: (qmail 7469 invoked by uid 500); 27 Sep 2006 02:49:34 -0000 Delivered-To: apmail-geronimo-activemq-commits-archive@geronimo.apache.org Received: (qmail 7440 invoked by uid 500); 27 Sep 2006 02:49:34 -0000 Mailing-List: contact activemq-commits-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-commits@geronimo.apache.org Received: (qmail 7431 invoked by uid 99); 27 Sep 2006 02:49:34 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 19:49:34 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=chirino@apache.org; spf=permerror X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received-SPF: error (idunn.apache.osuosl.org: domain apache.org from 140.211.166.113 cause and error) Received: from [140.211.166.113] ([140.211.166.113:54560] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 48/B1-21307-9B6E9154 for ; Tue, 26 Sep 2006 19:49:29 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 8D7D71A9823; Tue, 26 Sep 2006 19:49:27 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r450291 [4/8] - in /incubator/activemq/activemq-dotnet/trunk: ./ src/main/csharp/ActiveMQ/Commands/ src/main/csharp/ActiveMQ/OpenWire/V2/ Date: Wed, 27 Sep 2006 02:49:23 -0000 To: activemq-commits@geronimo.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20060927024927.8D7D71A9823@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Modified: incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionErrorMarshaller.cs URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionErrorMarshaller.cs?view=diff&rev=450291&r1=450290&r2=450291 ============================================================================== --- incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionErrorMarshaller.cs (original) +++ incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionErrorMarshaller.cs Tue Sep 26 19:49:19 2006 @@ -1 +1 @@ -/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using System.Colle ctions; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConnectionError /// class ConnectionErrorMarshaller : BaseCommandMarshaller { public override DataStructure CreateObject() { return new ConnectionError(); } public override byte GetDataStructureType() { return ConnectionError.ID_ConnectionError; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConnectionError info = (ConnectionError)o; info.Exception = TightUnmarshalBrokerError(wireFormat, dataIn, bs); info.ConnectionId = (ConnectionId) TightUnmarshalNestedObject(wireFormat, dataIn , bs); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConnectionError info = (ConnectionError)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalBrokerError1(wireFormat, info.Exception, bs); rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.ConnectionId, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConnectionError info = (ConnectionError)o; TightMarshalBrokerError2(wireFormat, info.Exception, dataOut, bs); TightMarshalNestedObject2(wireFormat, (DataStructure)info.ConnectionId, dataOut, bs); } // // Un-mars hal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConnectionError info = (ConnectionError)o; info.Exception = LooseUnmarshalBrokerError(wireFormat, dataIn); info.ConnectionId = (ConnectionId) LooseUnmarshalNestedObject(wireFormat, dataIn); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConnectionError info = (ConnectionError)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalBrokerError(wireFormat, info.Exception, dataOut); LooseMarshalNestedObject(wireFormat, (DataStructure)info.ConnectionId, dataOut); } } } \ No newline at end of file +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using S ystem.Collections; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConnectionError /// class ConnectionErrorMarshaller : BaseCommandMarshaller { public override DataStructure CreateObject() { return new ConnectionError(); } public override byte GetDataStructureType() { return ConnectionError.ID_ConnectionError; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConnectionError info = (ConnectionError)o; info.Exception = TightUnmarshalBrokerError(wireFormat, dataIn, bs); info.ConnectionId = (ConnectionId) TightUnmarshalNestedObject(wireFor mat, dataIn, bs); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConnectionError info = (ConnectionError)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalBrokerError1(wireFormat, info.Exception, bs); rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.ConnectionId, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConnectionError info = (ConnectionError)o; TightMarshalBrokerError2(wireFormat, info.Exception, dataOut, bs); TightMarshalNestedObject2(wireFormat, (DataStructure)info.ConnectionId, dataOut, bs); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConnectionError info = (ConnectionError)o; info.Exception = LooseUnmarshalBrokerError(wireFormat, dataIn); info.ConnectionId = (ConnectionId) LooseUnmarshalNestedObject(wireFormat, dataIn); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConnectionError info = (ConnectionError)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalBrokerError(wireFormat, info.Exception, dataOut); LooseMarshalNestedObject(wireFormat, (DataStructure)info.ConnectionId, dataOut); } } } \ No newline at end of file Modified: incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionIdMarshaller.cs URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionIdMarshaller.cs?view=diff&rev=450291&r1=450290&r2=450291 ============================================================================== --- incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionIdMarshaller.cs (original) +++ incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionIdMarshaller.cs Tue Sep 26 19:49:19 2006 @@ -1 +1 @@ -/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using System.Colle ctions; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConnectionId /// class ConnectionIdMarshaller : BaseDataStreamMarshaller { public override DataStructure CreateObject() { return new ConnectionId(); } public override byte GetDataStructureType() { return ConnectionId.ID_ConnectionId; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConnectionId info = (ConnectionId)o; info.Value = TightUnmarshalString(dataIn, bs); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1( OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConnectionId info = (ConnectionId)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalString1(info.Value, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConnectionId info = (ConnectionId)o; TightMarshalString2(info.Value, dataOut, bs); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConnectionId info = (ConnectionId)o; info.Value = LooseUnmarshalString(dataIn); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConnectionId info = (ConnectionId)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalString(info.Value, dataOut); } } } \ No newline at end of file +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using S ystem.Collections; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConnectionId /// class ConnectionIdMarshaller : BaseDataStreamMarshaller { public override DataStructure CreateObject() { return new ConnectionId(); } public override byte GetDataStructureType() { return ConnectionId.ID_ConnectionId; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConnectionId info = (ConnectionId)o; info.Value = TightUnmarshalString(dataIn, bs); } // // Write the booleans that this object uses to a BooleanStream // public override int Tig htMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConnectionId info = (ConnectionId)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalString1(info.Value, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConnectionId info = (ConnectionId)o; TightMarshalString2(info.Value, dataOut, bs); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConnectionId info = (ConnectionId)o; info.Value = LooseUnmarshalString(dataIn); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConnectionId info = (ConnectionId)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalString(info.Value, dataOut); } } } \ No newline at end of file Modified: incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionInfoMarshaller.cs URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionInfoMarshaller.cs?view=diff&rev=450291&r1=450290&r2=450291 ============================================================================== --- incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionInfoMarshaller.cs (original) +++ incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConnectionInfoMarshaller.cs Tue Sep 26 19:49:19 2006 @@ -1 +1 @@ -/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using System.Colle ctions; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConnectionInfo /// class ConnectionInfoMarshaller : BaseCommandMarshaller { public override DataStructure CreateObject() { return new ConnectionInfo(); } public override byte GetDataStructureType() { return ConnectionInfo.ID_ConnectionInfo; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo)o; info.ConnectionId = (ConnectionId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); info.ClientId = TightUnmarshalString(dataIn, bs); info.Passw ord = TightUnmarshalString(dataIn, bs); info.UserName = TightUnmarshalString(dataIn, bs); if (bs.ReadBoolean()) { short size = dataIn.ReadInt16(); BrokerId[] value = new BrokerId[size]; for( int i=0; i < size; i++ ) { value[i] = (BrokerId) TightUnmarshalNestedObject(wireFormat,dataIn, bs); } info.BrokerPath = value; } else { info.BrokerPath = null; } info.BrokerMasterConnector = bs.ReadBoolean(); info.Manageable = bs.ReadBoolean(); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConnectionInfo info = (ConnectionInfo)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ConnectionId, bs); rc += TightMarsh alString1(info.ClientId, bs); rc += TightMarshalString1(info.Password, bs); rc += TightMarshalString1(info.UserName, bs); rc += TightMarshalObjectArray1(wireFormat, info.BrokerPath, bs); bs.WriteBoolean(info.BrokerMasterConnector); bs.WriteBoolean(info.Manageable); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo)o; TightMarshalCachedObject2(wireFormat, (DataStructure)info.ConnectionId, dataOut, bs); TightMarshalString2(info.ClientId, dataOut, bs); TightMarshalString2(info.Password, dataOut, bs); TightMarshalString2(info.UserName, dataOut, bs); TightMarshalObjectArray2(wireFormat, info.BrokerPath, dataOut, bs); bs.ReadBool ean(); bs.ReadBoolean(); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo)o; info.ConnectionId = (ConnectionId) LooseUnmarshalCachedObject(wireFormat, dataIn); info.ClientId = LooseUnmarshalString(dataIn); info.Password = LooseUnmarshalString(dataIn); info.UserName = LooseUnmarshalString(dataIn); if (dataIn.ReadBoolean()) { short size = dataIn.ReadInt16(); BrokerId[] value = new BrokerId[size]; for( int i=0; i < size; i++ ) { value[i] = (BrokerId) LooseUnmarshalNestedObject(wireFormat,dataIn); } info.BrokerPath = value; } else { info.BrokerPath = null; } info.BrokerMaste rConnector = dataIn.ReadBoolean(); info.Manageable = dataIn.ReadBoolean(); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConnectionInfo info = (ConnectionInfo)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalCachedObject(wireFormat, (DataStructure)info.ConnectionId, dataOut); LooseMarshalString(info.ClientId, dataOut); LooseMarshalString(info.Password, dataOut); LooseMarshalString(info.UserName, dataOut); LooseMarshalObjectArray(wireFormat, info.BrokerPath, dataOut); dataOut.Write(info.BrokerMasterConnector); dataOut.Write(info.Manageable); } } } \ No newline at end of file +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using S ystem.Collections; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConnectionInfo /// class ConnectionInfoMarshaller : BaseCommandMarshaller { public override DataStructure CreateObject() { return new ConnectionInfo(); } public override byte GetDataStructureType() { return ConnectionInfo.ID_ConnectionInfo; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConnectionInfo info = (ConnectionInfo)o; info.ConnectionId = (ConnectionId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); info.ClientId = TightUnmarshalString(dataIn, bs); info.Password = TightUnmarshalString(dataIn, bs); info.UserName = TightUnmarshalString(dataIn, bs); if (bs.ReadBoolean()) { short size = dataIn.ReadInt16(); BrokerId[] value = new BrokerId[size]; for( int i=0; i < size; i++ ) { value[i] = (BrokerId) TightUnmarshalNestedObject(wireFormat,dataIn, bs); } info.BrokerPath = value; } else { info.BrokerPath = null; } info.BrokerMasterConnector = bs.ReadBoolean(); info.Manageable = bs.ReadBoolean(); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConnectionInfo info = (ConnectionInfo)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ConnectionId, bs); rc += TightMarshalString1(info.ClientId, bs); rc += TightMarshalString1(info.Password, bs); rc += TightMarshalString1(info.UserName, bs); rc += TightMarshalObjectArray1(wireFormat, info.BrokerPath, bs); bs.WriteBoolean(info.BrokerMasterConnector); bs.WriteBoolean(info.Manageable); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConnectionInfo info = (ConnectionInfo)o; TightMarshalCachedObject2(wireFormat, (DataStructure)info.ConnectionId, dataOut, bs); TightMarshalString2(info.ClientId, dataOut, bs); TightMarshalString2(info.Password, dataOut, bs); TightMarshalString2(info.UserName, dataOut, bs); TightMarshalObjectArray2(wireFormat, info.BrokerPath, dataOut, bs); bs.ReadBoolean(); bs.ReadBoolean(); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConnectionInfo info = (ConnectionInfo)o; info.ConnectionId = (ConnectionId) LooseUnmarshalCachedObject(wireFormat, dataIn); info.ClientId = LooseUnmarshalString(dataIn); info.Password = LooseUnmarshalString(dataIn); info.UserName = LooseUnmarshalString(dataIn); if (dataIn.ReadBoolean()) { short size = dataIn.ReadInt16(); BrokerId[] value = new BrokerId[size]; for( int i=0; i < size; i++ ) { value[i] = (BrokerId) LooseUnmarshalNestedObject(wireFormat,dataIn); } info.BrokerPath = value; } else { info.BrokerPath = null; } info. BrokerMasterConnector = dataIn.ReadBoolean(); info.Manageable = dataIn.ReadBoolean(); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConnectionInfo info = (ConnectionInfo)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalCachedObject(wireFormat, (DataStructure)info.ConnectionId, dataOut); LooseMarshalString(info.ClientId, dataOut); LooseMarshalString(info.Password, dataOut); LooseMarshalString(info.UserName, dataOut); LooseMarshalObjectArray(wireFormat, info.BrokerPath, dataOut); dataOut.Write(info.BrokerMasterConnector); dataOut.Write(info.Manageable); } } } \ No newline at end of file Modified: incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerControlMarshaller.cs URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerControlMarshaller.cs?view=diff&rev=450291&r1=450290&r2=450291 ============================================================================== --- incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerControlMarshaller.cs (original) +++ incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerControlMarshaller.cs Tue Sep 26 19:49:19 2006 @@ -1 +1 @@ -/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using System.Colle ctions; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConsumerControl /// class ConsumerControlMarshaller : BaseCommandMarshaller { public override DataStructure CreateObject() { return new ConsumerControl(); } public override byte GetDataStructureType() { return ConsumerControl.ID_ConsumerControl; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConsumerControl info = (ConsumerControl)o; info.Close = bs.ReadBoolean(); info.ConsumerId = (ConsumerId) TightUnmarshalNestedObject(wireFormat, dataIn, bs); info.Prefetch = dataIn.Rea dInt32(); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConsumerControl info = (ConsumerControl)o; int rc = base.TightMarshal1(wireFormat, info, bs); bs.WriteBoolean(info.Close); rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.ConsumerId, bs); return rc + 4; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConsumerControl info = (ConsumerControl)o; bs.ReadBoolean(); TightMarshalNestedObject2(wireFormat, (DataStructure)info.ConsumerId, dataOut, bs); dataOut.Write(info.Prefetch); } // // Un-marshal an object instance from the data input stre am // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConsumerControl info = (ConsumerControl)o; info.Close = dataIn.ReadBoolean(); info.ConsumerId = (ConsumerId) LooseUnmarshalNestedObject(wireFormat, dataIn); info.Prefetch = dataIn.ReadInt32(); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConsumerControl info = (ConsumerControl)o; base.LooseMarshal(wireFormat, o, dataOut); dataOut.Write(info.Close); LooseMarshalNestedObject(wireFormat, (DataStructure)info.ConsumerId, dataOut); dataOut.Write(info.Prefetch); } } } \ No newline at end of file +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using S ystem.Collections; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConsumerControl /// class ConsumerControlMarshaller : BaseCommandMarshaller { public override DataStructure CreateObject() { return new ConsumerControl(); } public override byte GetDataStructureType() { return ConsumerControl.ID_ConsumerControl; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConsumerControl info = (ConsumerControl)o; info.Close = bs.ReadBoolean(); info.ConsumerId = (ConsumerId) TightUnmarshalNestedObject(wireFormat, dataIn, bs); info.Prefetch = dataIn.ReadInt32(); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConsumerControl info = (ConsumerControl)o; int rc = base.TightMarshal1(wireFormat, info, bs); bs.WriteBoolean(info.Close); rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.ConsumerId, bs); return rc + 4; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConsumerControl info = (ConsumerControl)o; bs.ReadBoolean(); TightMarshalNestedObject2(wireFormat, (DataStructure)info.ConsumerId, dataOut, bs); dataOut.Write(info.Prefetch); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConsumerControl info = (ConsumerControl)o; info.Close = dataIn.ReadBoolean(); info.ConsumerId = (ConsumerId) LooseUnmarshalNestedObject(wireFormat, dataIn); info.Prefetch = dataIn.ReadInt32(); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConsumerControl info = (ConsumerControl)o; base.LooseMarshal(wireFormat, o, dataOut); dataOut.Write(info.Close); LooseMarshalNestedObject(wireFormat, (DataStructure)info.ConsumerId, dataOut); dataOut.Write(info.Prefetch); } } } \ No newline at end of file Modified: incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerIdMarshaller.cs URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerIdMarshaller.cs?view=diff&rev=450291&r1=450290&r2=450291 ============================================================================== --- incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerIdMarshaller.cs (original) +++ incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerIdMarshaller.cs Tue Sep 26 19:49:19 2006 @@ -1 +1 @@ -/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using System.Colle ctions; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConsumerId /// class ConsumerIdMarshaller : BaseDataStreamMarshaller { public override DataStructure CreateObject() { return new ConsumerId(); } public override byte GetDataStructureType() { return ConsumerId.ID_ConsumerId; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConsumerId info = (ConsumerId)o; info.ConnectionId = TightUnmarshalString(dataIn, bs); info.SessionId = TightUnmarshalLong(wireFormat, dataIn, bs); info.Value = TightUnmarshalLong(wireFormat, dataIn, bs); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConsumerId info = (ConsumerId)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalString1(info.ConnectionId, bs); rc += TightMarshalLong1(wireFormat, info.SessionId, bs); rc += TightMarshalLong1(wireFormat, info.Value, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConsumerId info = (ConsumerId)o; TightMarshalString2(info.ConnectionId, dataOut, bs); TightMarshalLong2(wireFormat, info.SessionId, dataOut, bs); TightMarshalLong2(wireFormat, info.Value, dataOut, bs); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConsumerId info = (ConsumerId)o; info.ConnectionId = LooseUnmarshalString(dataIn); info.SessionId = LooseUnmarshalLong(wireFormat, dataIn); info.Value = LooseUnmarshalLong(wireFormat, dataIn); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConsumerId info = (ConsumerId)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalString(info.ConnectionId, dataOut); LooseMarshalLong(wireFormat, info.SessionId, dataOut); LooseMarshalLong(wireFormat, info.Value, dataOut); } } } \ No newline at end of file +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using S ystem.Collections; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConsumerId /// class ConsumerIdMarshaller : BaseDataStreamMarshaller { public override DataStructure CreateObject() { return new ConsumerId(); } public override byte GetDataStructureType() { return ConsumerId.ID_ConsumerId; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConsumerId info = (ConsumerId)o; info.ConnectionId = TightUnmarshalString(dataIn, bs); info.SessionId = TightUnmarshalLong(wireFormat, dataIn, bs); info.Value = TightUnmarshalLong(wireFormat, da taIn, bs); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConsumerId info = (ConsumerId)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalString1(info.ConnectionId, bs); rc += TightMarshalLong1(wireFormat, info.SessionId, bs); rc += TightMarshalLong1(wireFormat, info.Value, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConsumerId info = (ConsumerId)o; TightMarshalString2(info.ConnectionId, dataOut, bs); TightMarshalLong2(wireFormat, info.SessionId, dataOut, bs); TightMarshalLong2(wireFormat, info.Value, dataOut, bs); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConsumerId info = (ConsumerId)o; info.ConnectionId = LooseUnmarshalString(dataIn); info.SessionId = LooseUnmarshalLong(wireFormat, dataIn); info.Value = LooseUnmarshalLong(wireFormat, dataIn); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConsumerId info = (ConsumerId)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalString(info.ConnectionId, dataOut); LooseMarshalLong(wireFormat, info.SessionId, dataOut); LooseMarshalLong(wireFormat, info.Value, dataOut); } } } \ No newline at end of file Modified: incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerInfoMarshaller.cs URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerInfoMarshaller.cs?view=diff&rev=450291&r1=450290&r2=450291 ============================================================================== --- incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerInfoMarshaller.cs (original) +++ incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ConsumerInfoMarshaller.cs Tue Sep 26 19:49:19 2006 @@ -1 +1 @@ -/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using System.Colle ctions; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConsumerInfo /// class ConsumerInfoMarshaller : BaseCommandMarshaller { public override DataStructure CreateObject() { return new ConsumerInfo(); } public override byte GetDataStructureType() { return ConsumerInfo.ID_ConsumerInfo; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConsumerInfo info = (ConsumerInfo)o; info.ConsumerId = (ConsumerId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); info.Browser = bs.ReadBoolean(); info.Destination = (ActiveMQDestination) Tigh tUnmarshalCachedObject(wireFormat, dataIn, bs); info.PrefetchSize = dataIn.ReadInt32(); info.MaximumPendingMessageLimit = dataIn.ReadInt32(); info.DispatchAsync = bs.ReadBoolean(); info.Selector = TightUnmarshalString(dataIn, bs); info.SubcriptionName = TightUnmarshalString(dataIn, bs); info.NoLocal = bs.ReadBoolean(); info.Exclusive = bs.ReadBoolean(); info.Retroactive = bs.ReadBoolean(); info.Priority = dataIn.ReadByte(); if (bs.ReadBoolean()) { short size = dataIn.ReadInt16(); BrokerId[] value = new BrokerId[size]; for( int i=0; i < size; i++ ) { value[i] = (BrokerId) TightUnmarshalNestedObject(wireFormat,dataIn, bs); } info.BrokerPath = value; } else { info.BrokerPath = null; } info.AdditionalPredicate = (BooleanExpression) TightUnmarshalNestedObject(wireFormat, dataIn, bs) ; info.NetworkSubscription = bs.ReadBoolean(); info.OptimizedAcknowledge = bs.ReadBoolean(); info.NoRangeAcks = bs.ReadBoolean(); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConsumerInfo info = (ConsumerInfo)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ConsumerId, bs); bs.WriteBoolean(info.Browser); rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.Destination, bs); bs.WriteBoolean(info.DispatchAsync); rc += TightMarshalString1(info.Selector, bs); rc += TightMarshalString1(info.SubcriptionName, bs); bs.WriteBoolean(info.NoLocal); bs.WriteBoolean(info.Exclusive); bs.WriteBoolean(info.Retroactive); rc += TightMarshalObjectArray1(wireFo rmat, info.BrokerPath, bs); rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.AdditionalPredicate, bs); bs.WriteBoolean(info.NetworkSubscription); bs.WriteBoolean(info.OptimizedAcknowledge); bs.WriteBoolean(info.NoRangeAcks); return rc + 9; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConsumerInfo info = (ConsumerInfo)o; TightMarshalCachedObject2(wireFormat, (DataStructure)info.ConsumerId, dataOut, bs); bs.ReadBoolean(); TightMarshalCachedObject2(wireFormat, (DataStructure)info.Destination, dataOut, bs); dataOut.Write(info.PrefetchSize); dataOut.Write(info.MaximumPendingMessageLimit); bs.ReadBoolean(); TightMarshalString2(info.Selector, dataOut, bs); TightMarshalString2(info.SubcriptionName, dataOut, bs); bs.ReadBoolean(); bs.ReadBoolean(); bs.ReadBoolean(); dataOut.Write(info.Priority); TightMarshalObjectArray2(wireFormat, info.BrokerPath, dataOut, bs); TightMarshalNestedObject2(wireFormat, (DataStructure)info.AdditionalPredicate, dataOut, bs); bs.ReadBoolean(); bs.ReadBoolean(); bs.ReadBoolean(); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConsumerInfo info = (ConsumerInfo)o; info.ConsumerId = (ConsumerId) LooseUnmarshalCachedObject(wireFormat, dataIn); info.Browser = dataIn.ReadBoolean(); info.Destination = (ActiveMQDestination) LooseUnmarshalCachedObject(wireFormat, dataIn); info.PrefetchSize = dataIn.ReadI nt32(); info.MaximumPendingMessageLimit = dataIn.ReadInt32(); info.DispatchAsync = dataIn.ReadBoolean(); info.Selector = LooseUnmarshalString(dataIn); info.SubcriptionName = LooseUnmarshalString(dataIn); info.NoLocal = dataIn.ReadBoolean(); info.Exclusive = dataIn.ReadBoolean(); info.Retroactive = dataIn.ReadBoolean(); info.Priority = dataIn.ReadByte(); if (dataIn.ReadBoolean()) { short size = dataIn.ReadInt16(); BrokerId[] value = new BrokerId[size]; for( int i=0; i < size; i++ ) { value[i] = (BrokerId) LooseUnmarshalNestedObject(wireFormat,dataIn); } info.BrokerPath = value; } else { info.BrokerPath = null; } info.AdditionalPredicate = (BooleanExpression) LooseUnmarshalNestedObject(wireFormat, dataIn); info.NetworkSubscription = dataIn.ReadBoolean(); info.OptimizedAck nowledge = dataIn.ReadBoolean(); info.NoRangeAcks = dataIn.ReadBoolean(); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConsumerInfo info = (ConsumerInfo)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalCachedObject(wireFormat, (DataStructure)info.ConsumerId, dataOut); dataOut.Write(info.Browser); LooseMarshalCachedObject(wireFormat, (DataStructure)info.Destination, dataOut); dataOut.Write(info.PrefetchSize); dataOut.Write(info.MaximumPendingMessageLimit); dataOut.Write(info.DispatchAsync); LooseMarshalString(info.Selector, dataOut); LooseMarshalString(info.SubcriptionName, dataOut); dataOut.Write(info.NoLocal); dataOut.Write(info.Exclusive); dataOut.Write(info.Retroactive); dataOut.Write(info.Priority); LooseMa rshalObjectArray(wireFormat, info.BrokerPath, dataOut); LooseMarshalNestedObject(wireFormat, (DataStructure)info.AdditionalPredicate, dataOut); dataOut.Write(info.NetworkSubscription); dataOut.Write(info.OptimizedAcknowledge); dataOut.Write(info.NoRangeAcks); } } } \ No newline at end of file +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using S ystem.Collections; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ConsumerInfo /// class ConsumerInfoMarshaller : BaseCommandMarshaller { public override DataStructure CreateObject() { return new ConsumerInfo(); } public override byte GetDataStructureType() { return ConsumerInfo.ID_ConsumerInfo; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ConsumerInfo info = (ConsumerInfo)o; info.ConsumerId = (ConsumerId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); info.Browser = bs.ReadBoolean(); info.Destination = (ActiveMQDestin ation) TightUnmarshalCachedObject(wireFormat, dataIn, bs); info.PrefetchSize = dataIn.ReadInt32(); info.MaximumPendingMessageLimit = dataIn.ReadInt32(); info.DispatchAsync = bs.ReadBoolean(); info.Selector = TightUnmarshalString(dataIn, bs); info.SubcriptionName = TightUnmarshalString(dataIn, bs); info.NoLocal = bs.ReadBoolean(); info.Exclusive = bs.ReadBoolean(); info.Retroactive = bs.ReadBoolean(); info.Priority = dataIn.ReadByte(); if (bs.ReadBoolean()) { short size = dataIn.ReadInt16(); BrokerId[] value = new BrokerId[size]; for( int i=0; i < size; i++ ) { value[i] = (BrokerId) TightUnmarshalNestedObject(wireFormat,dataIn, bs); } info.BrokerPath = value; } else { info.BrokerPath = null; } info.AdditionalPredicate = (BooleanExpression) TightUnmarshalNestedObject(wireFormat, dataIn, bs); info.NetworkSubscription = bs.ReadBoolean(); info.OptimizedAcknowledge = bs.ReadBoolean(); info.NoRangeAcks = bs.ReadBoolean(); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ConsumerInfo info = (ConsumerInfo)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ConsumerId, bs); bs.WriteBoolean(info.Browser); rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.Destination, bs); bs.WriteBoolean(info.DispatchAsync); rc += TightMarshalString1(info.Selector, bs); rc += TightMarshalString1(info.SubcriptionName, bs); bs.WriteBoolean(info.NoLocal); bs.WriteBoolean(info.Exclusive); bs.WriteBoolean(info.Retroactive); rc += TightMarshalObjectAr ray1(wireFormat, info.BrokerPath, bs); rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.AdditionalPredicate, bs); bs.WriteBoolean(info.NetworkSubscription); bs.WriteBoolean(info.OptimizedAcknowledge); bs.WriteBoolean(info.NoRangeAcks); return rc + 9; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ConsumerInfo info = (ConsumerInfo)o; TightMarshalCachedObject2(wireFormat, (DataStructure)info.ConsumerId, dataOut, bs); bs.ReadBoolean(); TightMarshalCachedObject2(wireFormat, (DataStructure)info.Destination, dataOut, bs); dataOut.Write(info.PrefetchSize); dataOut.Write(info.MaximumPendingMessageLimit); bs.ReadBoolean(); TightMarshalString2(info.Selector, dataOut, bs); TightMarshalString2(info.SubcriptionName, dataOut, bs); bs.ReadBoolean(); bs.ReadBoolean(); bs.ReadBoolean(); dataOut.Write(info.Priority); TightMarshalObjectArray2(wireFormat, info.BrokerPath, dataOut, bs); TightMarshalNestedObject2(wireFormat, (DataStructure)info.AdditionalPredicate, dataOut, bs); bs.ReadBoolean(); bs.ReadBoolean(); bs.ReadBoolean(); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ConsumerInfo info = (ConsumerInfo)o; info.ConsumerId = (ConsumerId) LooseUnmarshalCachedObject(wireFormat, dataIn); info.Browser = dataIn.ReadBoolean(); info.Destination = (ActiveMQDestination) LooseUnmarshalCachedObject(wireFormat, dataIn); info.PrefetchSize = d ataIn.ReadInt32(); info.MaximumPendingMessageLimit = dataIn.ReadInt32(); info.DispatchAsync = dataIn.ReadBoolean(); info.Selector = LooseUnmarshalString(dataIn); info.SubcriptionName = LooseUnmarshalString(dataIn); info.NoLocal = dataIn.ReadBoolean(); info.Exclusive = dataIn.ReadBoolean(); info.Retroactive = dataIn.ReadBoolean(); info.Priority = dataIn.ReadByte(); if (dataIn.ReadBoolean()) { short size = dataIn.ReadInt16(); BrokerId[] value = new BrokerId[size]; for( int i=0; i < size; i++ ) { value[i] = (BrokerId) LooseUnmarshalNestedObject(wireFormat,dataIn); } info.BrokerPath = value; } else { info.BrokerPath = null; } info.AdditionalPredicate = (BooleanExpression) LooseUnmarshalNestedObject(wireFormat, dataIn); info.NetworkSubscription = dataIn.ReadBoolean(); info.O ptimizedAcknowledge = dataIn.ReadBoolean(); info.NoRangeAcks = dataIn.ReadBoolean(); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ConsumerInfo info = (ConsumerInfo)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalCachedObject(wireFormat, (DataStructure)info.ConsumerId, dataOut); dataOut.Write(info.Browser); LooseMarshalCachedObject(wireFormat, (DataStructure)info.Destination, dataOut); dataOut.Write(info.PrefetchSize); dataOut.Write(info.MaximumPendingMessageLimit); dataOut.Write(info.DispatchAsync); LooseMarshalString(info.Selector, dataOut); LooseMarshalString(info.SubcriptionName, dataOut); dataOut.Write(info.NoLocal); dataOut.Write(info.Exclusive); dataOut.Write(info.Retroactive); dataOut.Write(info.Priority); LooseMarshalObjectArray(wireFormat, info.BrokerPath, dataOut); LooseMarshalNestedObject(wireFormat, (DataStructure)info.AdditionalPredicate, dataOut); dataOut.Write(info.NetworkSubscription); dataOut.Write(info.OptimizedAcknowledge); dataOut.Write(info.NoRangeAcks); } } } \ No newline at end of file Modified: incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ControlCommandMarshaller.cs URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ControlCommandMarshaller.cs?view=diff&rev=450291&r1=450290&r2=450291 ============================================================================== --- incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ControlCommandMarshaller.cs (original) +++ incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/ControlCommandMarshaller.cs Tue Sep 26 19:49:19 2006 @@ -1 +1 @@ -/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using System.Colle ctions; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ControlCommand /// class ControlCommandMarshaller : BaseCommandMarshaller { public override DataStructure CreateObject() { return new ControlCommand(); } public override byte GetDataStructureType() { return ControlCommand.ID_ControlCommand; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ControlCommand info = (ControlCommand)o; info.Command = TightUnmarshalString(dataIn, bs); } // // Write the booleans that this object uses to a BooleanStream // public override int T ightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ControlCommand info = (ControlCommand)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalString1(info.Command, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ControlCommand info = (ControlCommand)o; TightMarshalString2(info.Command, dataOut, bs); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ControlCommand info = (ControlCommand)o; info.Command = LooseUnmarshalString(dataIn); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ControlCommand info = (ControlCommand)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalString(info.Command, dataOut); } } } \ No newline at end of file +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using S ystem.Collections; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for ControlCommand /// class ControlCommandMarshaller : BaseCommandMarshaller { public override DataStructure CreateObject() { return new ControlCommand(); } public override byte GetDataStructureType() { return ControlCommand.ID_ControlCommand; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); ControlCommand info = (ControlCommand)o; info.Command = TightUnmarshalString(dataIn, bs); } // // Write the booleans that this object uses to a BooleanStream // public ove rride int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { ControlCommand info = (ControlCommand)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalString1(info.Command, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); ControlCommand info = (ControlCommand)o; TightMarshalString2(info.Command, dataOut, bs); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); ControlCommand info = (ControlCommand)o; info.Command = LooseUnmarshalString(dataIn); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { ControlCommand info = (ControlCommand)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalString(info.Command, dataOut); } } } \ No newline at end of file Modified: incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/DataArrayResponseMarshaller.cs URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/DataArrayResponseMarshaller.cs?view=diff&rev=450291&r1=450290&r2=450291 ============================================================================== --- incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/DataArrayResponseMarshaller.cs (original) +++ incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/DataArrayResponseMarshaller.cs Tue Sep 26 19:49:19 2006 @@ -1 +1 @@ -/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using System.Colle ctions; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for DataArrayResponse /// class DataArrayResponseMarshaller : ResponseMarshaller { public override DataStructure CreateObject() { return new DataArrayResponse(); } public override byte GetDataStructureType() { return DataArrayResponse.ID_DataArrayResponse; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); DataArrayResponse info = (DataArrayResponse)o; if (bs.ReadBoolean()) { short size = dataIn.ReadInt16(); DataStructure[] value = new DataStructure[size]; fo r( int i=0; i < size; i++ ) { value[i] = (DataStructure) TightUnmarshalNestedObject(wireFormat,dataIn, bs); } info.Data = value; } else { info.Data = null; } } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { DataArrayResponse info = (DataArrayResponse)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalObjectArray1(wireFormat, info.Data, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); DataArrayResponse info = (DataArrayResponse)o; TightMarshalObjectArray2(wireFormat, info.Data, data Out, bs); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); DataArrayResponse info = (DataArrayResponse)o; if (dataIn.ReadBoolean()) { short size = dataIn.ReadInt16(); DataStructure[] value = new DataStructure[size]; for( int i=0; i < size; i++ ) { value[i] = (DataStructure) LooseUnmarshalNestedObject(wireFormat,dataIn); } info.Data = value; } else { info.Data = null; } } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { DataArrayResponse info = (DataArrayResponse)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalObjectArray(wireFormat, info.Data, dataOut); } } } \ No newline at end of file +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using S ystem.Collections; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for DataArrayResponse /// class DataArrayResponseMarshaller : ResponseMarshaller { public override DataStructure CreateObject() { return new DataArrayResponse(); } public override byte GetDataStructureType() { return DataArrayResponse.ID_DataArrayResponse; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); DataArrayResponse info = (DataArrayResponse)o; if (bs.ReadBoolean()) { short size = dataIn.ReadInt16(); DataStructure[] value = new DataStructure[size]; for( int i=0; i < size; i++ ) { value[i] = (DataStructure) TightUnmarshalNestedObject(wireFormat,dataIn, bs); } info.Data = value; } else { info.Data = null; } } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { DataArrayResponse info = (DataArrayResponse)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalObjectArray1(wireFormat, info.Data, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); DataArrayResponse info = (DataArrayResponse)o; TightMarshalObjectArray2(wireFormat, info .Data, dataOut, bs); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); DataArrayResponse info = (DataArrayResponse)o; if (dataIn.ReadBoolean()) { short size = dataIn.ReadInt16(); DataStructure[] value = new DataStructure[size]; for( int i=0; i < size; i++ ) { value[i] = (DataStructure) LooseUnmarshalNestedObject(wireFormat,dataIn); } info.Data = value; } else { info.Data = null; } } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { DataArrayResponse info = (DataArrayResponse)o; base.LooseMarshal(wireFormat, o, dataOut ); LooseMarshalObjectArray(wireFormat, info.Data, dataOut); } } } \ No newline at end of file Modified: incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/DataResponseMarshaller.cs URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/DataResponseMarshaller.cs?view=diff&rev=450291&r1=450290&r2=450291 ============================================================================== --- incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/DataResponseMarshaller.cs (original) +++ incubator/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/OpenWire/V2/DataResponseMarshaller.cs Tue Sep 26 19:49:19 2006 @@ -1 +1 @@ -/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using System.Colle ctions; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for DataResponse /// class DataResponseMarshaller : ResponseMarshaller { public override DataStructure CreateObject() { return new DataResponse(); } public override byte GetDataStructureType() { return DataResponse.ID_DataResponse; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); DataResponse info = (DataResponse)o; info.Data = (DataStructure) TightUnmarshalNestedObject(wireFormat, dataIn, bs); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { DataResponse info = (DataResponse)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.Data, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); DataResponse info = (DataResponse)o; TightMarshalNestedObject2(wireFormat, (DataStructure)info.Data, dataOut, bs); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); DataResponse info = (DataResponse)o; info.Data = ( DataStructure) LooseUnmarshalNestedObject(wireFormat, dataIn); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { DataResponse info = (DataResponse)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalNestedObject(wireFormat, (DataStructure)info.Data, dataOut); } } } \ No newline at end of file +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // 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 // using System; using S ystem.Collections; using System.IO; using ActiveMQ.Commands; using ActiveMQ.OpenWire; using ActiveMQ.OpenWire.V2; namespace ActiveMQ.OpenWire.V2 { /// /// Marshalling code for Open Wire Format for DataResponse /// class DataResponseMarshaller : ResponseMarshaller { public override DataStructure CreateObject() { return new DataResponse(); } public override byte GetDataStructureType() { return DataResponse.ID_DataResponse; } // // Un-marshal an object instance from the data input stream // public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) { base.TightUnmarshal(wireFormat, o, dataIn, bs); DataResponse info = (DataResponse)o; info.Data = (DataStructure) TightUnmarshalNestedObject(wireFormat, dataIn, bs); } // // Write the booleans that this object uses to a BooleanStream // public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { DataResponse info = (DataResponse)o; int rc = base.TightMarshal1(wireFormat, info, bs); rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.Data, bs); return rc + 0; } // // Write a object instance to data output stream // public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { base.TightMarshal2(wireFormat, o, dataOut, bs); DataResponse info = (DataResponse)o; TightMarshalNestedObject2(wireFormat, (DataStructure)info.Data, dataOut, bs); } // // Un-marshal an object instance from the data input stream // public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) { base.LooseUnmarshal(wireFormat, o, dataIn); DataResponse info = (DataResponse)o; in fo.Data = (DataStructure) LooseUnmarshalNestedObject(wireFormat, dataIn); } // // Write a object instance to data output stream // public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { DataResponse info = (DataResponse)o; base.LooseMarshal(wireFormat, o, dataOut); LooseMarshalNestedObject(wireFormat, (DataStructure)info.Data, dataOut); } } } \ No newline at end of file