8 #ifndef INCLUDED_ORCUS_YAML_DOCUMENT_TREE_HPP
9 #define INCLUDED_ORCUS_YAML_DOCUMENT_TREE_HPP
11 #include "orcus/env.hpp"
12 #include "orcus/exception.hpp"
33 enum class node_t : uint8_t
49 friend class ::orcus::yaml::document_tree;
52 std::unique_ptr<impl> mp_impl;
65 size_t child_count()
const;
67 std::vector<const_node> keys()
const;
78 double numeric_value()
const;
82 uintptr_t identity()
const;
88 std::unique_ptr<impl> mp_impl;
97 void load(
const std::string& strm);
99 void load(
const char* p,
size_t n);
101 size_t get_document_count()
const;
103 const_node get_document_root(
size_t index)
const;
105 std::string dump_yaml()
const;
107 std::string dump_json()
const;