cpp-hocon  0.3.0
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
Factory for creating config_document instances.
Definition: config.hpp:18
An immutable value, following the JSON type schema.