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)