Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit fc2384b0 authored by Stefanos Doumpoulakis's avatar Stefanos Doumpoulakis
Browse files

fix: allow old XMLs for battery and supercap in development only

parent a9602c61
No related branches found
No related tags found
No related merge requests found
using System;
#if CERTIFICATION_RELEASE || RELEASE_CANDIDATE
#define PROHIBIT_OLD_XML
#endif
using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
......@@ -213,7 +217,9 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider
public XMLBatteryPackDeclarationInputDataStandardV23(XmlNode componentNode, string sourceFile) : base(componentNode, sourceFile)
{
#if PROHIBIT_OLD_XML
throw new VectoException($"{XSD_TYPE} v2.3 is no longer supported. Use newer version instead.");
#endif
}
#region Overrides of AbstractBatteryPackDeclarationInputDataProvider
......@@ -400,10 +406,12 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider
public XMLSuperCapDeclarationInputDataV23(XmlNode componentNode, string sourceFile, bool disallowed = true) : base(componentNode, sourceFile)
{
#if PROHIBIT_OLD_XML
if (disallowed && CertificationMethod == CertificationMethod.StandardValues)
{
throw new VectoException($"Capacitor v2.3 is no longer supported. Use newer version instead.");
}
#endif
}
#region Implementation of IREESSPackInputData
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment