4 #include "config_syntax.hpp"
130 bool allow_missing, shared_includer includer,
131 config_syntax syntax = config_syntax::UNSPECIFIED);
134 config_syntax _syntax;
135 shared_string _origin_description;
137 shared_includer _includer;
config_parse_options()
Gets an instance of config_parse_options with all fields set to the default values.
config_parse_options prepend_includer(shared_includer includer) const
Prepends a config_includer which customizes how includes are handled.
Factory for creating config_document instances.
config_parse_options set_allow_missing(bool allow_missing) const
Set to false to throw an exception if the item being parsed (for example a file) is missing.
config_parse_options set_origin_description(shared_string origin_description) const
Set a description for the thing being parsed.
config_syntax const & get_syntax() const
Gets the current syntax option.
A set of options related to parsing.
shared_includer const & get_includer() const
Gets the current includer (will be null for the default includer).
config_parse_options set_syntax(config_syntax syntax) const
Set the file format.
shared_string const & get_origin_description() const
Gets the current origin description, which may be null for "automatic".
static config_parse_options defaults()
Gets an instance of config_parse_options with all fields set to the default values.
config_parse_options append_includer(shared_includer includer) const
Appends a config_includer which customizes how includes are handled.
config_parse_options set_includer(shared_includer includer) const
Set a config_includer which customizes how includes are handled.
bool get_allow_missing() const
Gets the current "allow missing" flag.