cpp-hocon  0.3.0
substitution_expression.hpp
1 #pragma once
2 
3 #include <string>
4 #include <memory>
5 #include <hocon/path.hpp>
6 
7 namespace hocon {
8 
9  class substitution_expression : public std::enable_shared_from_this<substitution_expression> {
10  public:
11  substitution_expression(path the_path, bool optional);
12 
13  path get_path() const;
14  bool optional() const;
15 
16  std::shared_ptr<substitution_expression> change_path(path new_path);
17 
18  std::string to_string() const;
19 
20  bool operator==(substitution_expression const& other) const;
21 
22  private:
23  const path _path;
24  const bool _optional;
25  };
26 
27 } // namespace hocon
28 
hocon
Factory for creating config_document instances.
Definition: config.hpp:18
hocon::substitution_expression
Definition: substitution_expression.hpp:9
hocon::path
Definition: path.hpp:13