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

AnCH INI library namespace. More...

Classes

class  ParserError
class  Section
 INI file section. More...

Functions

anch::ini::Section parse (const std::string &path)
anch::ini::Section parse (const std::filesystem::path &path)
void merge (const std::filesystem::path &path, anch::ini::Section &section)

Detailed Description

AnCH INI library namespace.

INI files parser and sections. See AnCH INI library documentation.

Function Documentation

◆ merge()

void anch::ini::merge ( const std::filesystem::path & path,
anch::ini::Section & section )

Parse file

Parameters
paththe file's path
sectionthe section to fill
Exceptions
anch::ini::ParseErrorparsing exception
Here is the call graph for this function:

◆ parse() [1/2]

anch::ini::Section anch::ini::parse ( const std::filesystem::path & path)

Parse file

Parameters
paththe file's path
Returns
the root section
Exceptions
anch::ini::ParseErrorparsing exception
Here is the call graph for this function:

◆ parse() [2/2]

anch::ini::Section anch::ini::parse ( const std::string & path)

Parse file

Parameters
paththe file's path (as string)
Returns
the root section
Exceptions
anch::ini::ParseErrorparsing exception
Here is the call graph for this function: