From 09033d90cca4d159fffda73ef12e08cc85aadec6 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 2 Feb 2016 13:39:47 -1000 Subject: [PATCH] YAMLDocReader::getCurNode() --- include/Athena/DNAYaml.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/Athena/DNAYaml.hpp b/include/Athena/DNAYaml.hpp index ea7a814..4fa5d71 100644 --- a/include/Athena/DNAYaml.hpp +++ b/include/Athena/DNAYaml.hpp @@ -537,6 +537,7 @@ public: static bool ValidateClassType(yaml_parser_t* doc, const char* expectedType); inline const YAMLNode* getRootNode() const {return m_rootNode.get();} + inline const YAMLNode* getCurNode() const {return m_subStack.empty() ? nullptr : m_subStack.back();} std::unique_ptr releaseRootNode() {return std::move(m_rootNode);} bool enterSubRecord(const char* name)