Newer
Older
EMS_REFACTOR / LayerConfig.cs
nn-203 on 26 Jul 2017 849 bytes first commit
using System.Collections.Generic;
using System.Xml.Serialization;

namespace Cyberpipe
{
    [XmlType(TypeName = "layerconfig")]
    public class LayerConfig
    {
        [XmlArray("datasrcs")] public List<DataSrc> datasrcs;
    }

    [XmlType(TypeName = "datasrc")]
    public class DataSrc
    {
        [XmlAttribute] public string label;
        [XmlArray("layertypes")] public List<LayerType> layertypes;
    }

    [XmlType(TypeName = "layertype")]
    public class LayerType
    {
        [XmlAttribute] public string label;
        [XmlArray("layers")] public List<Layer> layers;
    }

    [XmlType(TypeName = "layer")]
    public class Layer
    {
        [XmlAttribute] public string label;
        [XmlAttribute] public string layersrc;
        [XmlAttribute] public string layer;
        [XmlAttribute] public string flag;
    }
}