|
cpp-hocon
0.3.0
|
Public Member Functions | |
| simple_include_context (parseable const &parseable) | |
| shared_parseable | relative_to (std::string file_name) const override |
| Tries to find a name relative to whatever is doing the including, for example in the same directory as the file doing the including. More... | |
| config_parse_options | parse_options () const override |
| Parse options to use (if you use another method to get a config_parseable then use config_parseable#options() instead though). More... | |
| void | set_cur_dir (std::string dir) const |
| std::string | get_cur_dir () const |
Protected Attributes | |
| std::shared_ptr< std::string > | _cur_dir |
Definition at line 8 of file simple_include_context.hpp.
|
overridevirtual |
Parse options to use (if you use another method to get a config_parseable then use config_parseable#options() instead though).
Implements hocon::config_include_context.
|
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.)
| filename | the name to make relative to the resource doing the including |
Implements hocon::config_include_context.
1.8.18