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" 21 class yaml_document_tree;
30 namespace yaml {
namespace detail {
49 friend class ::orcus::yaml_document_tree;
52 std::unique_ptr<impl> mp_impl;
54 node(
const yaml_value* yv);
65 size_t child_count()
const;
67 std::vector<node> keys()
const;
69 node key(
size_t index)
const;
71 node child(
size_t index)
const;
78 double numeric_value()
const;
82 uintptr_t identity()
const;
87 using yaml_node_t = yaml::detail::node_t;
92 std::unique_ptr<impl> mp_impl;
100 void load(
const std::string& strm);
102 size_t get_document_count()
const;
104 node get_document_root(
size_t index)
const;
106 std::string dump_yaml()
const;
108 std::string dump_json()
const;
Definition: yaml_document_tree.hpp:23
Definition: yaml_document_tree.hpp:47
Definition: pstring.hpp:24
Definition: exception.hpp:18
Definition: yaml_document_tree.hpp:89
Definition: base64.hpp:15