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

Exomia.Configuration.Argv

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

ArgvConfig

An argv configuration. This class cannot be inherited.

public class Exomia.Configuration.Argv.ArgvConfig
    : ConfigBase, IConfig

Constructors

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

Summary:

Initializes a new instance of the Exomia.Configuration.Argv.ArgvConfig class.

Parameter:

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


ArgvConfigSource

An argv configuration source. This class cannot be inherited.

public class Exomia.Configuration.Argv.ArgvConfigSource
    : ConfigSourceBase, IConfigSource

Constructors

    .ctor ArgvConfigSource()

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.



ArgvParser

An argv parser.

public static class Exomia.Configuration.Argv.ArgvParser

Static Fields

String ESCAPE_COMMENT

Summary:

The escape comment.



Static Methods

void Merge(ArgvConfigSource source, String[] argv, Int32 startIndex, String section, String comment = )

Summary:

merge a command line with an existing ArgvConfigSource.

Parameter:

  • source - source.
  • argv - command line args.
  • startIndex - start index.
  • section - section.
  • comment - (Optional) comment.

ArgvConfigSource Parse(String[] argv, Int32 startIndex, String section, String comment = )

Summary:

parse a command line to a ArgvConfigSource.

Parameter:

  • argv - command line args.
  • startIndex - start index.
  • section - section.
  • comment - (Optional) comment.