cpp-hocon
0.3.0
hocon
config_mergeable.hpp
1
#pragma once
2
3
#include <memory>
4
#include "export.h"
5
6
namespace
hocon
{
7
8
class
LIBCPP_HOCON_EXPORT
config_mergeable
{
9
friend
class
config_value
;
10
public
:
62
virtual
std::shared_ptr<const config_mergeable>
with_fallback
(std::shared_ptr<const config_mergeable> other)
const
= 0;
63
64
protected
:
69
virtual
shared_value
to_fallback_value
()
const
= 0;
70
};
71
72
}
// namespace hocon
hocon
Factory for creating config_document instances.
Definition:
config.hpp:18
hocon::config_mergeable
Definition:
config_mergeable.hpp:8
hocon::config_mergeable::with_fallback
virtual std::shared_ptr< const config_mergeable > with_fallback(std::shared_ptr< const config_mergeable > other) const =0
Returns a new value computed by merging this value with another, with keys in this value "winning" ov...
hocon::config_mergeable::to_fallback_value
virtual shared_value to_fallback_value() const =0
Converts a config to its root object and a config_value to itself.
hocon::config_value
An immutable value, following the JSON type schema.
Definition:
config_value.hpp:39
Generated on Fri Jun 12 2020 09:47:37 for cpp-hocon by
1.8.18