cpp-hocon  0.3.0
simple_include_context.hpp
1 #pragma once
2 
3 #include <hocon/config_include_context.hpp>
4 #include "parseable.hpp"
5 
6 namespace hocon {
7 
9  public:
10  // Include context is part of a parseable, so it can always expect a valid parseable reference.
12 
13  // Unused method
14  // shared_include_context with_parseable(weak_parseable new_parseable) const;
15 
16  shared_parseable relative_to(std::string file_name) const override;
18 
19  private:
20  parseable const& _parseable;
21  };
22 } // namespace hocon
Context provided to a config_includer; this interface is only useful inside a.
A set of options related to parsing.
config_parse_options parse_options() const override
Parse options to use (if you use another method to get a config_parseable then use config_parseable#o...
shared_parseable relative_to(std::string file_name) const override
Tries to find a name relative to whatever is doing the including, for example in the same directory a...
Factory for creating config_document instances.
Definition: config.hpp:18