File: simple_include_context.hpp

package info (click to toggle)
cpp-hocon 0.3.0-1.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,320 kB
  • sloc: cpp: 12,223; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <hocon/config_include_context.hpp>
#include "parseable.hpp"

namespace hocon {

    class simple_include_context : public config_include_context {
    public:
        // Include context is part of a parseable, so it can always expect a valid parseable reference.
        simple_include_context(parseable const& parseable);

        // Unused method
        // shared_include_context with_parseable(weak_parseable new_parseable) const;

        shared_parseable relative_to(std::string file_name) const override;
        config_parse_options parse_options() const override;

    private:
        parseable const& _parseable;
    };
}  // namespace hocon