File: path_builder.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 (20 lines) | stat: -rw-r--r-- 356 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
#pragma once

#include <hocon/path.hpp>
#include <stack>

namespace hocon {

    class path_builder {
    public:
        void append_key(std::string key);
        void append_path(path path_to_append);

        /** Returns null if keys is empty. */
        path result();

    private:
        std::stack<std::string> _keys;
    };

}  // namespace hocon