mirror of https://github.com/libAthena/athena.git
added releaseRootNode method for advanced YAML usage
This commit is contained in:
parent
259d2de59a
commit
c195b66939
|
@ -502,6 +502,7 @@ class YAMLDocReader
|
||||||
public:
|
public:
|
||||||
static bool ValidateClassType(yaml_parser_t* doc, const char* expectedType);
|
static bool ValidateClassType(yaml_parser_t* doc, const char* expectedType);
|
||||||
inline const YAMLNode* getRootNode() const {return m_rootNode.get();}
|
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)
|
bool read(yaml_parser_t* doc)
|
||||||
{
|
{
|
||||||
std::unique_ptr<YAMLNode> newRoot = ParseEvents(doc);
|
std::unique_ptr<YAMLNode> newRoot = ParseEvents(doc);
|
||||||
|
|
Loading…
Reference in New Issue