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
hocon::parseable
Definition: parseable.hpp:13
hocon
Factory for creating config_document instances.
Definition: config.hpp:18
hocon::simple_include_context::relative_to
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...
hocon::config_include_context
Context provided to a config_includer; this interface is only useful inside a.
Definition: config_include_context.hpp:21
hocon::config_parse_options
A set of options related to parsing.
Definition: config_parse_options.hpp:25
hocon::simple_include_context::parse_options
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...
hocon::simple_include_context
Definition: simple_include_context.hpp:8