22#include "anch-conf-export.hpp"
30#include "conf/section.hpp"
31#include "conf/confError.hpp"
45 class ANCH_CONF_EXPORT Configuration {
56 std::vector<std::string> _profiles;
59 std::vector<std::string> _includes;
62 std::vector<std::string> _folders;
96 virtual ~Configuration();
108 static const Configuration&
inst();
124 Configuration&
folders(const std::vector<std::filesystem::path>&
folders) noexcept;
133 Configuration&
name(const std::
string&
name) noexcept;
182 std::optional<std::
string>
value(const std::
string& path) const noexcept;
192 void loadProfile(const std::
string& profile);
199#include "conf/impl/configuration.hpp"
Configuration & folders(const std::vector< std::filesystem::path > &folders) noexcept
std::optional< std::string > value(const std::string &path) const noexcept
const anch::conf::Section * section(const std::string &path) const noexcept
Configuration & profiles(const std::vector< std::string > &profiles) noexcept
Configuration & name(const std::string &name) noexcept
static const Configuration & inst()
Configuration(Configuration &&conf)=delete
static Configuration & loader() noexcept
Configuration(const Configuration &conf)=delete
AnCH configuration library namespace.
anch::ini::Section Section
Definition section.hpp:27
AnCH framework base namespace.
Definition app.hpp:30