added releaseRootNode method for advanced YAML usage

This commit is contained in:
Jack Andersen 2015-12-06 10:52:37 -10:00
parent 259d2de59a
commit c195b66939
1 changed files with 1 additions and 0 deletions

View File

@ -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<YAMLNode> releaseRootNode() {return std::move(m_rootNode);}
bool read(yaml_parser_t* doc)
{
std::unique_ptr<YAMLNode> newRoot = ParseEvents(doc);