plugify 1.2.6
Loading...
Searching...
No Matches
config.hpp
1#pragma once
2
3#include <filesystem>
4#include <set>
5#include <string>
6#include <optional>
7#include <plugify/log.hpp>
8
9namespace plugify {
14 struct Config final {
15 std::filesystem::path baseDir;
16 std::filesystem::path configsDir;
17 std::filesystem::path dataDir;
18 std::filesystem::path logsDir;
19 std::set<std::string> repositories;
20 std::optional<Severity> logSeverity;
21 std::optional<bool> preferOwnSymbols;
22 };
23} // namespace plugify
Represents configuration settings for a program.
Definition config.hpp:14
std::filesystem::path baseDir
The base directory for the program.
Definition config.hpp:15
std::optional< bool > preferOwnSymbols
Flag indicating if the modules should prefer its own symbols over shared symbols.
Definition config.hpp:21
std::filesystem::path logsDir
Relative path from base directory to logs directory.
Definition config.hpp:18
std::filesystem::path dataDir
Relative path from base directory to data directory.
Definition config.hpp:17
std::filesystem::path configsDir
Relative path from base directory to configs directory.
Definition config.hpp:16
std::optional< Severity > logSeverity
The severity level for logging.
Definition config.hpp:20
std::set< std::string > repositories
A collection of repository paths.
Definition config.hpp:19