5 #include <hocon/config_value.hpp>
46 virtual std::unique_ptr<config_document>
with_value_text(std::string
path, std::string newValue)
const = 0;
61 std::shared_ptr<config_value> new_value)
const = 0;
87 virtual std::string
render()
const = 0;
virtual std::unique_ptr< config_document > without_path(std::string path) const =0
Returns a new config_document that is a copy of the current config_document, but with all values at t...
Factory for creating config_document instances.
Represents an individual HOCON or JSON file, preserving all formatting and syntax details.
bool operator==(config_document const &lhs, config_document const &rhs)
Config documents compare via rendered strings.
virtual bool has_path(std::string const &path) const =0
Returns a boolean indicating whether or not a config_document has a value at the desired path.
virtual std::string render() const =0
The original text of the input, modified if necessary with any replaced or added values.
virtual std::unique_ptr< config_document > with_value_text(std::string path, std::string newValue) const =0
Returns a new config_document that is a copy of the current config_document, but with the desired val...
virtual std::unique_ptr< config_document > with_value(std::string path, std::shared_ptr< config_value > new_value) const =0
Returns a new config_document that is a copy of the current config_document, but with the desired val...