Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit d7cf7355 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

removing PIF schema and reading xml

parent 170598cc
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML
{
case XmlDocumentType.DeclarationJobData: return ReadDeclarationJob(xmlDoc, source);
case XmlDocumentType.EngineeringJobData: return ReadEngineeringJob(xmlDoc, source);
case XmlDocumentType.PrimaryVehicleBusOutputData: return ReadPrimaryVehicleDeclarationJob(xmlDoc, source);
//case XmlDocumentType.PrimaryVehicleBusOutputData: return ReadPrimaryVehicleDeclarationJob(xmlDoc, source);
case XmlDocumentType.MultistageOutputData: return ReadMultistageDeclarationJob(xmlDoc, source);
case XmlDocumentType.EngineeringComponentData:
case XmlDocumentType.DeclarationComponentData:
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2016 rel. 2 sp1 (x64) (http://www.altova.com) by Helmut Eichlseder (TU Graz/Inst. f. VKM und THD) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:tugraz:ivt:VectoAPI:DeclarationOutput:PrimaryVehicleInformation" xmlns:v1.0="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v1.0" xmlns:pbus="urn:tugraz:ivt:VectoAPI:DeclarationOutput:PrimaryVehicleInformation:HeavyBus:v0.1" xmlns:out="urn:tugraz:ivt:VectoAPI:DeclarationOutputDefinitions" targetNamespace="urn:tugraz:ivt:VectoAPI:DeclarationOutput:PrimaryVehicleInformation" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v1.0" schemaLocation="VectoDeclarationDefinitions.1.0.xsd"/>
<xs:import namespace="urn:tugraz:ivt:VectoAPI:DeclarationOutput:PrimaryVehicleInformation:HeavyBus:v0.1" schemaLocation="VectoOutputPrimaryBus.xsd"/>
<xs:import namespace="urn:tugraz:ivt:VectoAPI:DeclarationOutputDefinitions" schemaLocation="VectoOutputDefinitions.xsd"/>
<xs:element name="VectoOutputPrimaryVehicle" type="tns:PrimaryVehicleHeavyBusType">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="PrimaryVehicleHeavyBusType">
<xs:sequence>
<xs:element name="Data" type="out:AbstractPrimaryVehicleDataPIFType"/>
<xs:element name="Signature" type="v1.0:SignatureType"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
......@@ -8,7 +8,7 @@ namespace TUGraz.VectoCore.Utils
public enum XmlDocumentType
{
DeclarationJobData = 1 << 1,
PrimaryVehicleBusOutputData = 1 << 2,
//PrimaryVehicleBusOutputData = 1 << 2,
DeclarationComponentData = 1 << 3,
EngineeringJobData = 1 << 4,
EngineeringComponentData = 1 << 5,
......@@ -93,7 +93,7 @@ namespace TUGraz.VectoCore.Utils
private static Dictionary<XmlDocumentType, string> schemaFilenames = new Dictionary<XmlDocumentType, string>() {
{XmlDocumentType.DeclarationJobData, "VectoDeclarationJob.xsd"},
{XmlDocumentType.PrimaryVehicleBusOutputData, "VectoOutputPrimaryVehicleInformation.xsd"},
//{XmlDocumentType.PrimaryVehicleBusOutputData, "VectoOutputPrimaryVehicleInformation.xsd"},
{XmlDocumentType.DeclarationComponentData, "VectoDeclarationComponent.xsd"},
{XmlDocumentType.EngineeringJobData, "VectoEngineeringJob.xsd" },
{XmlDocumentType.EngineeringComponentData, "VectoEngineeringComponent.xsd" },
......@@ -110,7 +110,7 @@ namespace TUGraz.VectoCore.Utils
public static string GetSchemaFilename(XmlDocumentType type)
{
if (!schemaFilenames.ContainsKey(type)) {
throw new Exception(string.Format("Invalid argument {0} - only use single flags", type));
throw new Exception(string.Format("Invalid argument '{0}' - only use single flags", type));
}
var entry = schemaFilenames[type];
......
......@@ -53,7 +53,7 @@ namespace TUGraz.VectoCore.Utils
case "VectoInputDeclaration": return XmlDocumentType.DeclarationJobData;
case "VectoInputEngineering": return XmlDocumentType.EngineeringJobData;
case "VectoComponentEngineering": return XmlDocumentType.EngineeringComponentData;
case "VectoOutputPrimaryVehicle": return XmlDocumentType.PrimaryVehicleBusOutputData;
//case "VectoOutputPrimaryVehicle": return XmlDocumentType.PrimaryVehicleBusOutputData;
case "VectoOutputMultistage": return XmlDocumentType.MultistageOutputData;
}
......
......@@ -936,9 +936,6 @@
<EmbeddedResource Include="Resources\XSD\VectoOutputPrimaryBus.xsd">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Resources\XSD\VectoOutputPrimaryVehicleInformation.xsd">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Resources\XSD\VectoVTPReport.xsd">
<SubType>Designer</SubType>
</EmbeddedResource>
......
......@@ -145,7 +145,6 @@
<File FilePath="VectoCore\Resources\XSD\VectoOutputManufacturer.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputMultistage.0.1.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputPrimaryBus.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputPrimaryVehicleInformation.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VTPReport.0.1.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VTPReport.0.2.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VTPReport.xsd" HomeFolder="Yes"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment