AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::conf Namespace Reference

AnCH configuration library namespace. More...

Classes

class  ConfError
class  Configuration
 Application configuration. More...
class  Parsers
 Parsers registry. More...
class  Placeholders
 Configuration placeholders resolution. More...
class  Resolvers
 Value resolvers' registry. More...

Typedefs

using Parser
using Resolver
using Section = anch::ini::Section

Detailed Description

AnCH configuration library namespace.

Configuration files cascade (includes and profiles) and placeholders resolution. See AnCH configuration library documentation.

Typedef Documentation

◆ Parser

Initial value:
std::function<void(const std::filesystem::path& ,
anch::ini::Section Section
Definition section.hpp:27

Parser declaration

Parameters
paththe file path to parse
sectionthe section to fill
Exceptions
...any error

◆ Resolver

Initial value:
std::function<std::optional<std::string>(const std::string& ,
const std::optional<std::string>& )>

Resolver declaration

Parameters
namethe resolver's name
argsthe resolver's arguments
Returns
the value is found, empty when not found
Exceptions
...any error

◆ Section