cpp-hocon 0.3.0
Loading...
Searching...
No Matches
config_parseable.hpp
1#pragma once
2
3#include "types.hpp"
4#include "export.h"
5
6namespace hocon {
7
19 class LIBCPP_HOCON_EXPORT config_parseable {
20 public:
31 virtual shared_object parse(config_parse_options const& options) const = 0;
32
36 virtual shared_origin origin() const = 0;
37
44 virtual config_parse_options const& options() const = 0;
45 };
46
47} // namespace hocon
A set of options related to parsing.
An opaque handle to something that can be parsed, obtained from config_include_context.
virtual config_parse_options const & options() const =0
Get the initial options, which can be modified then passed to parse().
virtual shared_origin origin() const =0
Returns a config_origin describing the origin of the paresable item.
virtual shared_object parse(config_parse_options const &options) const =0
Parse whatever it is.
Factory for creating config_document instances.
Definition: config.hpp:18