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; }

        }
    }


}
