Definition at line 8 of file simple_include_context.hpp.
◆ get_cur_dir()
| std::string hocon::config_include_context::get_cur_dir |
( |
| ) |
const |
|
inlineinherited |
◆ parse_options()
◆ relative_to()
| shared_parseable hocon::simple_include_context::relative_to |
( |
std::string |
file_name | ) |
const |
|
overridevirtual |
Tries to find a name relative to whatever is doing the including, for example in the same directory as the file doing the including.
Returns null if it can't meaningfully create a relative name. The returned parseable may not exist; this function is not required to do any IO, just compute what the name would be.
The passed-in filename has to be a complete name (with extension), not just a basename. (Include statements in config files are allowed to give just a basename.)
- Parameters
-
| filename | the name to make relative to the resource doing the including |
- Returns
- parseable item relative to the resource doing the including, or null
Implements hocon::config_include_context.
◆ set_cur_dir()
| void hocon::config_include_context::set_cur_dir |
( |
std::string |
dir | ) |
const |
|
inlineinherited |
◆ _cur_dir
| std::shared_ptr<std::string> hocon::config_include_context::_cur_dir |
|
protectedinherited |
The documentation for this class was generated from the following file: