first commit
This commit is contained in:
48
F4SD-Cockpit-ServerCore/F4SDConfigGlobalParametersXml.cs
Normal file
48
F4SD-Cockpit-ServerCore/F4SDConfigGlobalParametersXml.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
|
||||
using C4IT.XML;
|
||||
|
||||
namespace C4IT.FASD.Base
|
||||
{
|
||||
public class cF4SDConfigGlobalParametersXml : cFasdBaseConfig
|
||||
{
|
||||
public const string constFileNameFasdConfig = "F4SD-Global-Configuration.xml";
|
||||
private const string constFileNameFasdConfigSchema = "F4SD-Global-Configuration.xsd";
|
||||
private const string constConfigRootElement = "F4SD-Global-Configuration";
|
||||
|
||||
private Dictionary<string, cConfigurationSubnode> Nodes = new Dictionary<string, cConfigurationSubnode>();
|
||||
private Dictionary<string, cConfigurationValue> Values = new Dictionary<string, cConfigurationValue>();
|
||||
|
||||
public cF4SDConfigGlobalParametersXml(string fileNameConfig, string fileNameConfigSchema, string configRootElement) : base(fileNameConfig, fileNameConfigSchema, configRootElement)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool InstantiateProperties(XmlElement RootElement, cXmlParser Parser)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
private class cConfigurationSubnode : IConfigNodeNamed
|
||||
{
|
||||
public bool IsValid { get; private set; } = false;
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
||||
}
|
||||
|
||||
private class cConfigurationValue : IConfigNodeNamed
|
||||
{
|
||||
public bool IsValid { get; private set; } = false;
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user