All the config description are stored and extracted from this class.
More...
#include <ConfigDescription.hpp>
|
struct | KV |
| Struct to represent a key-value pair. More...
|
|
All the config description are stored and extracted from this class.
Represents all the possible config description
◆ ClioConfigDescription()
util::config::ClioConfigDescription::ClioConfigDescription |
( |
| ) |
|
|
constexprdefault |
Constructs a new Clio Config Description based on pre-existing descriptions.
Config Keys and it's corresponding descriptions are all predefined. Used to generate markdown file
◆ generateConfigDescriptionToFile()
static std::expected< void, Error > util::config::ClioConfigDescription::generateConfigDescriptionToFile |
( |
std::filesystem::path | path | ) |
|
|
inlinestaticnodiscard |
Generate markdown file of all the clio config descriptions.
- Parameters
-
path | The path location to generate the Config-description file |
- Returns
- An Error if generating markdown fails, otherwise nothing
◆ get()
static constexpr std::string_view util::config::ClioConfigDescription::get |
( |
std::string_view | key | ) |
|
|
inlinestaticnodiscardconstexpr |
Retrieves the description for a given key.
- Parameters
-
key | The key to look up the description for |
- Returns
- The description associated with the key, or "Not Found" if the key does not exist
◆ writeConfigDescriptionToFile()
static void util::config::ClioConfigDescription::writeConfigDescriptionToFile |
( |
std::ostream & | file | ) |
|
|
inlinestatic |
Writes to Config description to file.
- Parameters
-
file | The config file to write to |
The documentation for this struct was generated from the following file: