File: substitution_expression.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 (28 lines) | stat: -rw-r--r-- 622 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
23
24
25
26
27
28
#pragma once

#include <string>
#include <memory>
#include <hocon/path.hpp>

namespace hocon {

    class substitution_expression : public std::enable_shared_from_this<substitution_expression> {
    public:
        substitution_expression(path the_path, bool optional);

        path get_path() const;
        bool optional() const;

        std::shared_ptr<substitution_expression> change_path(path new_path);

        std::string to_string() const;

        bool operator==(substitution_expression const& other) const;

    private:
        const path _path;
        const bool _optional;
    };

}  // namespace hocon