Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Exomia.Configuration.Xml

Daniel Baetz edited this page Jun 22, 2019 · 8 revisions

XmlConfig

An XML configuration. This class cannot be inherited.

public class Exomia.Configuration.Xml.XmlConfig
    : ConfigBase, IConfig

Constructors

.ctor XmlConfig(IConfigSource configSource, String name, String comment = )

Summary:

Initializes a new instance of the Exomia.Configuration.Xml.XmlConfig class.

Parameter:

  • configSource - The configuration source.
  • name - The name.
  • comment - (Optional) The comment.


Properties

String[] Infos

Summary:

Gets or sets the infos.


Dictionary KeyInfos

Summary:

Gets the key infos.



Methods

void AddKeyInternal(String key, String value, String comment, String[] infos = null)

Summary:

Adds a key internal.

Parameter:

  • key - The key.
  • value - The value.
  • comment - The comment.
  • infos - (Optional) The infos.


XmlConfigSource

An XML configuration source. This class cannot be inherited.

public class Exomia.Configuration.Xml.XmlConfigSource
    : ConfigSourceBase, IConfigSource

Constructors

    .ctor XmlConfigSource()

Properties

String SaveFileName

Summary:

Gets or sets the filename of the save file.



Methods

IConfig CreateConfig(String section, String comment)

Summary:

creates a new IConfig.

Parameter:

  • section - section.
  • comment - comment.

void OnReload()

Summary:

called than IConfigSource reloaded.


void OnSave()

Summary:

called than IConfigSource saved.



XmlParser

An XML parser.

public static class Exomia.Configuration.Xml.XmlParser

Static Methods

void Merge(String fileName, XmlConfigSource source)

Summary:

merge a xml file with an existing XmlConfigSource.

Parameter:

  • fileName - fileName.
  • source - source.

void Merge(Stream stream, XmlConfigSource source)

Summary:

merge a xml file stream with an existing XmlConfigSource.

Parameter:

  • stream - stream.
  • source - source.

XmlConfigSource Parse(String fileName)

Summary:

parse a xml file to a XmlConfigSource.

Parameter:

  • fileName - fileName.

XmlConfigSource Parse(Stream stream, String fileName = )

Summary:

parse a xml file to a IniConfigSource.

Parameter:

  • stream - stream.
  • fileName - (Optional) fileName.

XmlConfigSource Parse(Stream stream, XmlConfigSource source, String fileName = )

Summary:

parse a xml file to a IniConfigSource.

Parameter:

  • stream - stream.
  • source - source.
  • fileName - (Optional) fileName.