From c195b6693951cb6ad862cc22ad37cfc847ae55ff Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 6 Dec 2015 10:52:37 -1000 Subject: [PATCH] added releaseRootNode method for advanced YAML usage --- include/Athena/DNAYaml.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/Athena/DNAYaml.hpp b/include/Athena/DNAYaml.hpp index 0e74e83..1efd64b 100644 --- a/include/Athena/DNAYaml.hpp +++ b/include/Athena/DNAYaml.hpp @@ -502,6 +502,7 @@ class YAMLDocReader public: static bool ValidateClassType(yaml_parser_t* doc, const char* expectedType); inline const YAMLNode* getRootNode() const {return m_rootNode.get();} + std::unique_ptr releaseRootNode() {return std::move(m_rootNode);} bool read(yaml_parser_t* doc) { std::unique_ptr newRoot = ParseEvents(doc);