cpp-hocon 0.3.0
Loading...
Searching...
No Matches
container.hpp
1#pragma once
2
3#include <hocon/config_value.hpp>
4namespace hocon {
5
12 class container {
13 public:
19 virtual shared_value replace_child(shared_value const& child, shared_value replacement) const = 0;
20
25 virtual bool has_descendant(shared_value const& descendant) const = 0;
26 };
27
28} // namespace hocon
An AbstractConfigValue which contains other values.
Definition: container.hpp:12
virtual shared_value replace_child(shared_value const &child, shared_value replacement) const =0
Replace a child of this value.
virtual bool has_descendant(shared_value const &descendant) const =0
Super-expensive full traversal to see if descendant is anywhere underneath this container.
Factory for creating config_document instances.
Definition: config.hpp:18