Index: DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/Deltares.LayerOnSlopeTool.Io.csproj =================================================================== diff -u --- DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/Deltares.LayerOnSlopeTool.Io.csproj (revision 0) +++ DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/Deltares.LayerOnSlopeTool.Io.csproj (revision 3108) @@ -0,0 +1,57 @@ + + + + + Debug + AnyCPU + {62171502-3F8D-45CB-992A-45C5AC0F8CE6} + Library + Properties + Deltares.LayerOnSlopeTool.Io + Deltares.LayerOnSlopeTool.Io + v4.5 + 512 + true + + + true + ..\bin\Debug\ + DEBUG;TRACE + full + x86 + 6 + prompt + MinimumRecommendedRules.ruleset + + + ..\bin\Release\ + TRACE + true + pdbonly + x86 + 6 + prompt + MinimumRecommendedRules.ruleset + + + + + + + + + + + + + + + + + + + Copying.AGPL.licenseheader + + + + \ No newline at end of file Index: DamTools/LayerOnSlopeTool/trunk/src/LayerOnSlopeTool.sln =================================================================== diff -u -r3089 -r3108 --- DamTools/LayerOnSlopeTool/trunk/src/LayerOnSlopeTool.sln (.../LayerOnSlopeTool.sln) (revision 3089) +++ DamTools/LayerOnSlopeTool/trunk/src/LayerOnSlopeTool.sln (.../LayerOnSlopeTool.sln) (revision 3108) @@ -5,6 +5,7 @@ MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Deltares.LayerOnSlopeTool.Application", "Deltares.LayerOnSlopeTool.Application\Deltares.LayerOnSlopeTool.Application.csproj", "{B5FF0336-4C1B-4FBF-9BEE-B9A4BB2084C4}" ProjectSection(ProjectDependencies) = postProject + {62171502-3F8D-45CB-992A-45C5AC0F8CE6} = {62171502-3F8D-45CB-992A-45C5AC0F8CE6} {8484E328-75FC-4343-82D4-4E024AB06EB0} = {8484E328-75FC-4343-82D4-4E024AB06EB0} {0D7CF73B-3587-4296-A343-7AAB962D22B6} = {0D7CF73B-3587-4296-A343-7AAB962D22B6} {561636BE-1D0B-412D-A419-D852CA17B26A} = {561636BE-1D0B-412D-A419-D852CA17B26A} @@ -21,6 +22,7 @@ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Deltares.LayerOnSlopeTool.StiFileCreator", "Deltares.LayerOnSlopeTool.StiFileCreator\Deltares.LayerOnSlopeTool.StiFileCreator.csproj", "{8484E328-75FC-4343-82D4-4E024AB06EB0}" ProjectSection(ProjectDependencies) = postProject + {62171502-3F8D-45CB-992A-45C5AC0F8CE6} = {62171502-3F8D-45CB-992A-45C5AC0F8CE6} {0D7CF73B-3587-4296-A343-7AAB962D22B6} = {0D7CF73B-3587-4296-A343-7AAB962D22B6} EndProjectSection EndProject @@ -46,6 +48,17 @@ {0D7CF73B-3587-4296-A343-7AAB962D22B6} = {0D7CF73B-3587-4296-A343-7AAB962D22B6} EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Deltares.LayerOnSlopeTool.Io", "Deltares.LayerOnSlopeTool.Io\Deltares.LayerOnSlopeTool.Io.csproj", "{62171502-3F8D-45CB-992A-45C5AC0F8CE6}" + ProjectSection(ProjectDependencies) = postProject + {0D7CF73B-3587-4296-A343-7AAB962D22B6} = {0D7CF73B-3587-4296-A343-7AAB962D22B6} + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Deltares.LayerOnSlopeTool.Io.Tests", "Deltares.LayerOnSlopeTool.Io.Tests\Deltares.LayerOnSlopeTool.Io.Tests.csproj", "{2D939D5C-CEFF-4B60-A123-AF6C3C2CAEE2}" + ProjectSection(ProjectDependencies) = postProject + {62171502-3F8D-45CB-992A-45C5AC0F8CE6} = {62171502-3F8D-45CB-992A-45C5AC0F8CE6} + {0D7CF73B-3587-4296-A343-7AAB962D22B6} = {0D7CF73B-3587-4296-A343-7AAB962D22B6} + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x86 = Debug|x86 @@ -80,13 +93,22 @@ {83D297FB-CFC7-4154-AEB7-5E09E10E24D0}.Debug|x86.Build.0 = Debug|x86 {83D297FB-CFC7-4154-AEB7-5E09E10E24D0}.Release|x86.ActiveCfg = Release|x86 {83D297FB-CFC7-4154-AEB7-5E09E10E24D0}.Release|x86.Build.0 = Release|x86 + {62171502-3F8D-45CB-992A-45C5AC0F8CE6}.Debug|x86.ActiveCfg = Debug|x86 + {62171502-3F8D-45CB-992A-45C5AC0F8CE6}.Debug|x86.Build.0 = Debug|x86 + {62171502-3F8D-45CB-992A-45C5AC0F8CE6}.Release|x86.ActiveCfg = Release|x86 + {62171502-3F8D-45CB-992A-45C5AC0F8CE6}.Release|x86.Build.0 = Release|x86 + {2D939D5C-CEFF-4B60-A123-AF6C3C2CAEE2}.Debug|x86.ActiveCfg = Debug|x86 + {2D939D5C-CEFF-4B60-A123-AF6C3C2CAEE2}.Debug|x86.Build.0 = Debug|x86 + {2D939D5C-CEFF-4B60-A123-AF6C3C2CAEE2}.Release|x86.ActiveCfg = Release|x86 + {2D939D5C-CEFF-4B60-A123-AF6C3C2CAEE2}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {E754906F-F74F-477B-8CDA-3021A938A636} = {6CEC0B1C-EA4E-466A-B314-DC339A6AD625} {28A5F717-D221-477C-B269-4D7AA784CC76} = {6CEC0B1C-EA4E-466A-B314-DC339A6AD625} + {2D939D5C-CEFF-4B60-A123-AF6C3C2CAEE2} = {6CEC0B1C-EA4E-466A-B314-DC339A6AD625} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {73B814D3-AF1A-4EA6-A068-B5A6FC61481F} Index: DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io.Tests/Deltares.LayerOnSlopeTool.Io.Tests.csproj =================================================================== diff -u --- DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io.Tests/Deltares.LayerOnSlopeTool.Io.Tests.csproj (revision 0) +++ DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io.Tests/Deltares.LayerOnSlopeTool.Io.Tests.csproj (revision 3108) @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {2D939D5C-CEFF-4B60-A123-AF6C3C2CAEE2} + Library + Properties + Deltares.LayerOnSlopeTool.Io.Tests + Deltares.LayerOnSlopeTool.Io.Tests + v4.5 + 512 + true + + + true + ..\bin\Debug\ + DEBUG;TRACE + full + x86 + 6 + prompt + MinimumRecommendedRules.ruleset + + + ..\bin\Release\ + TRACE + true + pdbonly + x86 + 6 + prompt + MinimumRecommendedRules.ruleset + + + + False + ..\..\lib\NUnit\nunit.framework.dll + + + + + + + + + + + + + + + + Copying.AGPL.licenseheader + + + + \ No newline at end of file Index: DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/Properties/AssemblyInfo.cs =================================================================== diff -u --- DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/Properties/AssemblyInfo.cs (revision 0) +++ DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/Properties/AssemblyInfo.cs (revision 3108) @@ -0,0 +1,28 @@ +// Copyright (C) Stichting Deltares 2020. All rights reserved. +// +// This file is part of the Dam Engine. +// +// The Dam Engine is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System.Reflection; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Deltares.LayerOnSlopeTool.Io")] +[assembly: AssemblyProduct("Deltares.LayerOnSlopeTool.Io")] +[assembly: ComVisible(false)] +[assembly: Guid("62171502-3f8d-45cb-992a-45c5ac0f8ce6")] Index: DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io.Tests/Properties/AssemblyInfo.cs =================================================================== diff -u --- DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io.Tests/Properties/AssemblyInfo.cs (revision 0) +++ DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io.Tests/Properties/AssemblyInfo.cs (revision 3108) @@ -0,0 +1,28 @@ +// Copyright (C) Stichting Deltares 2020. All rights reserved. +// +// This file is part of the Dam Engine. +// +// The Dam Engine is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System.Reflection; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Deltares.LayerOnSlopeTool.Io.Tests")] +[assembly: AssemblyProduct("Deltares.LayerOnSlopeTool.Io.Tests")] +[assembly: ComVisible(false)] +[assembly: Guid("2d939d5c-ceff-4b60-a123-af6c3c2caee2")] Index: DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/DamMStabDoc.cs =================================================================== diff -u --- DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/DamMStabDoc.cs (revision 0) +++ DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/DamMStabDoc.cs (revision 3108) @@ -0,0 +1,1159 @@ +// Copyright (C) Stichting Deltares 2020. All rights reserved. +// +// This file is part of the Dam Engine. +// +// The Dam Engine is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +// +// This source code was auto-generated by xsd, Version=4.8.3928.0. +// +namespace Deltares.LayerOnSlopeTool.Io { + using System.Xml.Serialization; + + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] + public partial class SurfaceLine { + + private SurfaceLineSurfacePoint[] surfacePointField; + + /// + [System.Xml.Serialization.XmlElementAttribute("SurfacePoint")] + public SurfaceLineSurfacePoint[] SurfacePoint { + get { + return this.surfacePointField; + } + set { + this.surfacePointField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + public partial class SurfaceLineSurfacePoint { + + private string xCoordField; + + private string yCoordField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string XCoord { + get { + return this.xCoordField; + } + set { + this.xCoordField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string YCoord { + get { + return this.yCoordField; + } + set { + this.yCoordField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] + public partial class CharacteristicPoints { + + private CharacteristicPointsCharacteristicPoint[] characteristicPointField; + + /// + [System.Xml.Serialization.XmlElementAttribute("CharacteristicPoint")] + public CharacteristicPointsCharacteristicPoint[] CharacteristicPoint { + get { + return this.characteristicPointField; + } + set { + this.characteristicPointField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + public partial class CharacteristicPointsCharacteristicPoint { + + private string xCoordField; + + private string yCoordField; + + private string characteristicPointTypeField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string XCoord { + get { + return this.xCoordField; + } + set { + this.xCoordField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string YCoord { + get { + return this.yCoordField; + } + set { + this.yCoordField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string CharacteristicPointType { + get { + return this.characteristicPointTypeField; + } + set { + this.characteristicPointTypeField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] + public partial class ExternalPLLines { + + private ExternalPLLinesPLLine[] pLLineField; + + /// + [System.Xml.Serialization.XmlElementAttribute("PLLine")] + public ExternalPLLinesPLLine[] PLLine { + get { + return this.pLLineField; + } + set { + this.pLLineField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + public partial class ExternalPLLinesPLLine { + + private ExternalPLLinesPLLinePLPoint[] pLPointField; + + private string isPhreaticField; + + private string boundaryLayerField; + + /// + [System.Xml.Serialization.XmlElementAttribute("PLPoint")] + public ExternalPLLinesPLLinePLPoint[] PLPoint { + get { + return this.pLPointField; + } + set { + this.pLPointField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string IsPhreatic { + get { + return this.isPhreaticField; + } + set { + this.isPhreaticField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string BoundaryLayer { + get { + return this.boundaryLayerField; + } + set { + this.boundaryLayerField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + public partial class ExternalPLLinesPLLinePLPoint { + + private string xCoordField; + + private string yCoordField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string XCoord { + get { + return this.xCoordField; + } + set { + this.xCoordField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string YCoord { + get { + return this.yCoordField; + } + set { + this.yCoordField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] + public partial class Model { + + private string calculationModelField; + + private string shearStrengthField; + + private string probabilisticField; + + private string searchMethodField; + + private string gridPositionField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string CalculationModel { + get { + return this.calculationModelField; + } + set { + this.calculationModelField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string ShearStrength { + get { + return this.shearStrengthField; + } + set { + this.shearStrengthField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Probabilistic { + get { + return this.probabilisticField; + } + set { + this.probabilisticField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string SearchMethod { + get { + return this.searchMethodField; + } + set { + this.searchMethodField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string GridPosition { + get { + return this.gridPositionField; + } + set { + this.gridPositionField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] + public partial class TrafficLoad { + + private string xCoordinateAtRiverField; + + private string xCoordinateAtPolderField; + + private string loadField; + + private string degreeOfConsolidationSpecified1Field; + + private string degreeOfConsolidationField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string XCoordinateAtRiver { + get { + return this.xCoordinateAtRiverField; + } + set { + this.xCoordinateAtRiverField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string XCoordinateAtPolder { + get { + return this.xCoordinateAtPolderField; + } + set { + this.xCoordinateAtPolderField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Load { + get { + return this.loadField; + } + set { + this.loadField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute("DegreeOfConsolidationSpecified")] + public string DegreeOfConsolidationSpecified1 { + get { + return this.degreeOfConsolidationSpecified1Field; + } + set { + this.degreeOfConsolidationSpecified1Field = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string DegreeOfConsolidation { + get { + return this.degreeOfConsolidationField; + } + set { + this.degreeOfConsolidationField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] + public partial class CalculationOptions { + + private string minimalCircleDepthField; + + private string zonesTypeField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string MinimalCircleDepth { + get { + return this.minimalCircleDepthField; + } + set { + this.minimalCircleDepthField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string ZonesType { + get { + return this.zonesTypeField; + } + set { + this.zonesTypeField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] + public partial class GeometryCreationOptions { + + private string soilGeometryTypeField; + + private string soilGeometry2DFilenameField; + + private string xOffsetSoilGeometry2DOriginField; + + private string materialForDikeField; + + private string materialForShoulderField; + + private string isDrySituationField; + + private string pLLineAssignmentField; + + private string intrusionVerticalWaterPressureField; + + private string penetrationLengthField; + + private string isDesignField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string SoilGeometryType { + get { + return this.soilGeometryTypeField; + } + set { + this.soilGeometryTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string SoilGeometry2DFilename { + get { + return this.soilGeometry2DFilenameField; + } + set { + this.soilGeometry2DFilenameField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string XOffsetSoilGeometry2DOrigin { + get { + return this.xOffsetSoilGeometry2DOriginField; + } + set { + this.xOffsetSoilGeometry2DOriginField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string MaterialForDike { + get { + return this.materialForDikeField; + } + set { + this.materialForDikeField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string MaterialForShoulder { + get { + return this.materialForShoulderField; + } + set { + this.materialForShoulderField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string IsDrySituation { + get { + return this.isDrySituationField; + } + set { + this.isDrySituationField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string PLLineAssignment { + get { + return this.pLLineAssignmentField; + } + set { + this.pLLineAssignmentField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string IntrusionVerticalWaterPressure { + get { + return this.intrusionVerticalWaterPressureField; + } + set { + this.intrusionVerticalWaterPressureField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string PenetrationLength { + get { + return this.penetrationLengthField; + } + set { + this.penetrationLengthField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string IsDesign { + get { + return this.isDesignField; + } + set { + this.isDesignField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] + public partial class HorizontalBalanceArea { + + private string xLeftField; + + private string xRightField; + + private string yTopField; + + private string yBottomField; + + private string planeCountField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string XLeft { + get { + return this.xLeftField; + } + set { + this.xLeftField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string XRight { + get { + return this.xRightField; + } + set { + this.xRightField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string YTop { + get { + return this.yTopField; + } + set { + this.yTopField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string YBottom { + get { + return this.yBottomField; + } + set { + this.yBottomField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string PlaneCount { + get { + return this.planeCountField; + } + set { + this.planeCountField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] + public partial class SlipCircleDefinition { + + private string xCoordinateLastUpliftPointField; + + private string upliftVanTangentLinesDefinitionField; + + private string upliftVanTangentLinesDistanceField; + + private string bishopTangentLinesDefinitionField; + + private string bishopTangentLinesDistanceField; + + private string gridSizeDeterminationField; + + private string upliftVanLeftGridVerticalPointCountField; + + private string upliftVanLeftGridVerticalPointDistanceField; + + private string upliftVanLeftGridHorizontalPointCountField; + + private string upliftVanLeftGridHorizontalPointDistanceField; + + private string upliftVanRightGridVerticalPointCountField; + + private string upliftVanRightGridVerticalPointDistanceField; + + private string upliftVanRightGridHorizontalPointCountField; + + private string upliftVanRightGridHorizontalPointDistanceField; + + private string bishopGridVerticalPointCountField; + + private string bishopGridVerticalPointDistanceField; + + private string bishopGridHorizontalPointCountField; + + private string bishopGridHorizontalPointDistanceField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string XCoordinateLastUpliftPoint { + get { + return this.xCoordinateLastUpliftPointField; + } + set { + this.xCoordinateLastUpliftPointField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string UpliftVanTangentLinesDefinition { + get { + return this.upliftVanTangentLinesDefinitionField; + } + set { + this.upliftVanTangentLinesDefinitionField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string UpliftVanTangentLinesDistance { + get { + return this.upliftVanTangentLinesDistanceField; + } + set { + this.upliftVanTangentLinesDistanceField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string BishopTangentLinesDefinition { + get { + return this.bishopTangentLinesDefinitionField; + } + set { + this.bishopTangentLinesDefinitionField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string BishopTangentLinesDistance { + get { + return this.bishopTangentLinesDistanceField; + } + set { + this.bishopTangentLinesDistanceField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string GridSizeDetermination { + get { + return this.gridSizeDeterminationField; + } + set { + this.gridSizeDeterminationField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string UpliftVanLeftGridVerticalPointCount { + get { + return this.upliftVanLeftGridVerticalPointCountField; + } + set { + this.upliftVanLeftGridVerticalPointCountField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string UpliftVanLeftGridVerticalPointDistance { + get { + return this.upliftVanLeftGridVerticalPointDistanceField; + } + set { + this.upliftVanLeftGridVerticalPointDistanceField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string UpliftVanLeftGridHorizontalPointCount { + get { + return this.upliftVanLeftGridHorizontalPointCountField; + } + set { + this.upliftVanLeftGridHorizontalPointCountField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string UpliftVanLeftGridHorizontalPointDistance { + get { + return this.upliftVanLeftGridHorizontalPointDistanceField; + } + set { + this.upliftVanLeftGridHorizontalPointDistanceField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string UpliftVanRightGridVerticalPointCount { + get { + return this.upliftVanRightGridVerticalPointCountField; + } + set { + this.upliftVanRightGridVerticalPointCountField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string UpliftVanRightGridVerticalPointDistance { + get { + return this.upliftVanRightGridVerticalPointDistanceField; + } + set { + this.upliftVanRightGridVerticalPointDistanceField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string UpliftVanRightGridHorizontalPointCount { + get { + return this.upliftVanRightGridHorizontalPointCountField; + } + set { + this.upliftVanRightGridHorizontalPointCountField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string UpliftVanRightGridHorizontalPointDistance { + get { + return this.upliftVanRightGridHorizontalPointDistanceField; + } + set { + this.upliftVanRightGridHorizontalPointDistanceField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string BishopGridVerticalPointCount { + get { + return this.bishopGridVerticalPointCountField; + } + set { + this.bishopGridVerticalPointCountField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string BishopGridVerticalPointDistance { + get { + return this.bishopGridVerticalPointDistanceField; + } + set { + this.bishopGridVerticalPointDistanceField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string BishopGridHorizontalPointCount { + get { + return this.bishopGridHorizontalPointCountField; + } + set { + this.bishopGridHorizontalPointCountField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string BishopGridHorizontalPointDistance { + get { + return this.bishopGridHorizontalPointDistanceField; + } + set { + this.bishopGridHorizontalPointDistanceField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] + public partial class DamMStabDoc { + + private DamMStabDocFileIdentification fileIdentificationField; + + private DamMStabDocDamMStabInput damMStabInputField; + + /// + public DamMStabDocFileIdentification FileIdentification { + get { + return this.fileIdentificationField; + } + set { + this.fileIdentificationField = value; + } + } + + /// + public DamMStabDocDamMStabInput DamMStabInput { + get { + return this.damMStabInputField; + } + set { + this.damMStabInputField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + public partial class DamMStabDocFileIdentification { + + private string applicationField; + + private string versionField; + + private string createdField; + + private string companyField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Application { + get { + return this.applicationField; + } + set { + this.applicationField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Version { + get { + return this.versionField; + } + set { + this.versionField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Created { + get { + return this.createdField; + } + set { + this.createdField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Company { + get { + return this.companyField; + } + set { + this.companyField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] + public partial class DamMStabDocDamMStabInput { + + private SurfaceLineSurfacePoint[] surfaceLineField; + + private CharacteristicPointsCharacteristicPoint[] characteristicPointsField; + + private ExternalPLLinesPLLine[] externalPLLinesField; + + private Model modelField; + + private TrafficLoad trafficLoadField; + + private CalculationOptions calculationOptionsField; + + private GeometryCreationOptions geometryCreationOptionsField; + + private HorizontalBalanceArea horizontalBalanceAreaField; + + private SlipCircleDefinition slipCircleDefinitionField; + + private string mStabFileNameField; + + private string soilDBNameField; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("SurfacePoint", IsNullable=false)] + public SurfaceLineSurfacePoint[] SurfaceLine { + get { + return this.surfaceLineField; + } + set { + this.surfaceLineField = value; + } + } + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("CharacteristicPoint", IsNullable=false)] + public CharacteristicPointsCharacteristicPoint[] CharacteristicPoints { + get { + return this.characteristicPointsField; + } + set { + this.characteristicPointsField = value; + } + } + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("PLLine", IsNullable=false)] + public ExternalPLLinesPLLine[] ExternalPLLines { + get { + return this.externalPLLinesField; + } + set { + this.externalPLLinesField = value; + } + } + + /// + public Model Model { + get { + return this.modelField; + } + set { + this.modelField = value; + } + } + + /// + public TrafficLoad TrafficLoad { + get { + return this.trafficLoadField; + } + set { + this.trafficLoadField = value; + } + } + + /// + public CalculationOptions CalculationOptions { + get { + return this.calculationOptionsField; + } + set { + this.calculationOptionsField = value; + } + } + + /// + public GeometryCreationOptions GeometryCreationOptions { + get { + return this.geometryCreationOptionsField; + } + set { + this.geometryCreationOptionsField = value; + } + } + + /// + public HorizontalBalanceArea HorizontalBalanceArea { + get { + return this.horizontalBalanceAreaField; + } + set { + this.horizontalBalanceAreaField = value; + } + } + + /// + public SlipCircleDefinition SlipCircleDefinition { + get { + return this.slipCircleDefinitionField; + } + set { + this.slipCircleDefinitionField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string MStabFileName { + get { + return this.mStabFileNameField; + } + set { + this.mStabFileNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string SoilDBName { + get { + return this.soilDBNameField; + } + set { + this.soilDBNameField = value; + } + } + } +} Index: DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/DgsMStabDamXmlSerializer.cs =================================================================== diff -u --- DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/DgsMStabDamXmlSerializer.cs (revision 0) +++ DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.Io/DgsMStabDamXmlSerializer.cs (revision 3108) @@ -0,0 +1,85 @@ +// Copyright (C) Stichting Deltares 2020. All rights reserved. +// +// This file is part of the Dam Engine. +// +// The Dam Engine is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System.IO; +using System.Xml.Serialization; + +namespace Deltares.LayerOnSlopeTool.Io +{ + public class DgsMStabDamXmlSerializer + { + /// + /// Saves the DamMStabDoc as XML. + /// + /// The filename. + /// The DamMStabDoc. + public static void SaveDamMStabDocAsXmlFile(string filename, DamMStabDoc DamMStabDoc) + { + XmlSerializer xmlSerializer = new XmlSerializer(typeof(DamMStabDoc)); + TextWriter writer = new StreamWriter(filename); + xmlSerializer.Serialize(writer, DamMStabDoc); + writer.Close(); + } + + /// + /// Loads the DamMStabDoc from XML. + /// + /// The filename. + /// DamMStabDoc object + public static DamMStabDoc LoadDamMStabDocFromXmlFile(string filename) + { + DamMStabDoc DamMStabDoc; + XmlSerializer xmlSerializer = new XmlSerializer(typeof(DamMStabDoc)); + FileStream fs = new FileStream(filename, FileMode.Open); + DamMStabDoc = (DamMStabDoc)xmlSerializer.Deserialize(fs); + return DamMStabDoc; + } + + /// + /// Saves the DamMStabDoc as XML string. + /// + /// The DamMStabDoc. + /// xm string + public static string SaveDamMStabDocAsXmlString(DamMStabDoc DamMStabDoc) + { + XmlSerializer xmlSerializer = new XmlSerializer(typeof(DamMStabDoc)); + TextWriter writer = new StringWriter(); + xmlSerializer.Serialize(writer, DamMStabDoc); + return writer.ToString(); + } + + /// + /// Loads the DamMStabDoc from XML string. + /// + /// The XML string. + /// DamMStabDoc object + public static DamMStabDoc LoadDamMStabDocFromXmlString(string xmlString) + { + DamMStabDoc DamMStabDoc; + XmlSerializer xmlSerializer = new XmlSerializer(typeof(DamMStabDoc)); + StringReader reader = new StringReader(xmlString); + DamMStabDoc = (DamMStabDoc)xmlSerializer.Deserialize(reader); + return DamMStabDoc; + } + + + } +} \ No newline at end of file