#include "ConfigOption.hxx"
#include "Compiler.h"
#include <chrono>
Go to the source code of this file.
◆ config_find_block()
Find a block with a matching attribute.
- Parameters
-
option | the blocks to search |
key | the attribute name |
value | the expected attribute value |
◆ config_get_block()
◆ config_get_bool()
bool config_get_bool |
( |
enum ConfigOption |
option, |
|
|
bool |
default_value |
|
) |
| |
◆ config_get_param()
◆ config_get_path()
Returns an optional configuration variable which contains an absolute path.
If there is a tilde prefix, it is expanded. Returns AllocatedPath::Null() if the value is not present.
Throws #std::runtime_error on error.
◆ config_get_positive() [1/2]
unsigned config_get_positive |
( |
enum ConfigOption |
option, |
|
|
unsigned |
default_value |
|
) |
| |
◆ config_get_positive() [2/2]
static std::chrono::steady_clock::duration config_get_positive |
( |
ConfigOption |
option, |
|
|
std::chrono::steady_clock::duration |
default_value |
|
) |
| |
|
inlinestatic |
◆ config_get_string()
const char* config_get_string |
( |
enum ConfigOption |
option, |
|
|
const char * |
default_value = nullptr |
|
) |
| |
|
noexcept |
◆ config_get_unsigned() [1/2]
unsigned config_get_unsigned |
( |
enum ConfigOption |
option, |
|
|
unsigned |
default_value |
|
) |
| |
◆ config_get_unsigned() [2/2]
static std::chrono::steady_clock::duration config_get_unsigned |
( |
ConfigOption |
option, |
|
|
std::chrono::steady_clock::duration |
default_value |
|
) |
| |
|
inlinestatic |
◆ config_global_check()
void config_global_check |
( |
| ) |
|
Call this function after all configuration has been evaluated.
It checks for unused parameters, and logs warnings.
◆ config_global_finish()
void config_global_finish |
( |
| ) |
|
◆ config_global_init()
void config_global_init |
( |
| ) |
|
◆ ReadConfigFile()
void ReadConfigFile |
( |
Path |
path | ) |
|