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

Exomia.Configuration.Ini

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

IniConfig

An initialise configuration. This class cannot be inherited.

public class Exomia.Configuration.Ini.IniConfig
    : ConfigBase, IConfig

Constructors

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

Summary:

Initializes a new instance of the Exomia.Configuration.Ini.IniConfig 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.


IniConfigSource

An initialise configuration source. This class cannot be inherited.

public class Exomia.Configuration.Ini.IniConfigSource
    : ConfigSourceBase, IConfigSource

Constructors

    .ctor IniConfigSource()

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.



IniParser

An init file parser.

public static class Exomia.Configuration.Ini.IniParser

Static Fields

String ESCAPE_COMMENT

Summary:

The escape comment.



Static Methods

void Merge(String fileName, IniConfigSource source)

Summary:

merge a ini file with an existing IniConfigSource.

Parameter:

  • fileName - fileName.
  • source - source.

void Merge(Stream stream, IniConfigSource source)

Summary:

merge a ini file stream with an existing IniConfigSource.

Parameter:

  • stream - stream.
  • source - source.

IniConfigSource Parse(String fileName)

Summary:

parse a ini file to a IniConfigSource.

Parameter:

  • fileName - fileName.

IniConfigSource Parse(Stream stream, String fileName = )

Summary:

parse a ini file to a IniConfigSource.

Parameter:

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

IniConfigSource Parse(Stream stream, IniConfigSource source = null, String fileName = )

Summary:

parse a ini file to a IniConfigSource.

Parameter:

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