Skip to content

AgathokakologicalBit/ConfigManager

Repository files navigation

ConfigManager

Light configuration manager that supports loading into different targets: Class / Special dictionary

Installing library

Latest builds:

type version date link
release N/A N/A N/A
alpha 0.8.2 14.10.2017 download
beta 0.8.3 06.03.2018 download

Alpha versions are very unstable. It is not recommended to use them in your projects.

Getting started

Library provides basic class Config for working with data. Supported features:

  • Loading from String / File
  • Loading into Class / ConfigValue tree

Example of configuration file

Writing your first configuration

Let's look at a simple file

value yes
value no
id 0
inheritance
  separated "by space"

empty_line "are counted"
  parents "can hold data too"
  data "can have tabs:\tand new lines:\n"

It shows what you can do within configuration. Each line consists of several parts:

  • indentation - for marking enclosed values
  • key - value identifier. If repeated it's values will be stored as an array
  • data - the rest of line with data separated by a whitespace

For accessing that data using ConfigManager special methods are used.

Implementing configuration in your project

On wiki pages you might find everything you need to start working with configuration manager

About

Light configuration manager that supports loading into different targets: Class / Special dictionary

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages