3 #include <hocon/parser/config_document.hpp> 4 #include <internal/nodes/config_node_root.hpp> 5 #include <hocon/config_parse_options.hpp> 15 std::unique_ptr<config_document>
with_value_text(std::string
path, std::string new_value)
const override;
17 std::shared_ptr<config_value> new_value)
const override;
18 std::unique_ptr<config_document>
without_path(std::string
path)
const override;
22 std::string
render()
const override;
25 std::shared_ptr<const config_node_root> _config_node_tree;
A set of options related to parsing.
std::unique_ptr< config_document > with_value(std::string path, std::shared_ptr< config_value > new_value) const override
Returns a new config_document that is a copy of the current config_document, but with the desired val...
Factory for creating config_document instances.
std::string render() const override
The original text of the input, modified if necessary with any replaced or added values.
bool has_path(std::string const &path) const override
Returns a boolean indicating whether or not a config_document has a value at the desired path...
std::unique_ptr< config_document > without_path(std::string path) const override
Returns a new config_document that is a copy of the current config_document, but with all values at t...
Represents an individual HOCON or JSON file, preserving all formatting and syntax details...
std::unique_ptr< config_document > with_value_text(std::string path, std::string new_value) const override
Returns a new config_document that is a copy of the current config_document, but with the desired val...