diff options
author | crupest <crupest@outlook.com> | 2022-01-02 18:49:31 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-02 18:49:31 +0800 |
commit | 18099ad8f5c24b1c2b1c92238dbc54912eab0406 (patch) | |
tree | 514207d630a2100262aedaea276ea259bbc108b7 /include/cru/xml/XmlNode.hpp | |
parent | 96a93e17baaff2c2050eba2afada639e93001232 (diff) | |
download | cru-18099ad8f5c24b1c2b1c92238dbc54912eab0406.tar.gz cru-18099ad8f5c24b1c2b1c92238dbc54912eab0406.tar.bz2 cru-18099ad8f5c24b1c2b1c92238dbc54912eab0406.zip |
...
Diffstat (limited to 'include/cru/xml/XmlNode.hpp')
-rw-r--r-- | include/cru/xml/XmlNode.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cru/xml/XmlNode.hpp b/include/cru/xml/XmlNode.hpp index 0cbb6756..186f395c 100644 --- a/include/cru/xml/XmlNode.hpp +++ b/include/cru/xml/XmlNode.hpp @@ -67,7 +67,7 @@ class XmlElementNode : public XmlNode { CRU_DELETE_COPY(XmlElementNode) CRU_DELETE_MOVE(XmlElementNode) - ~XmlElementNode() override = default; + ~XmlElementNode() override; public: String GetTag() const { return tag_; } @@ -78,6 +78,7 @@ class XmlElementNode : public XmlNode { void SetAttributes(std::unordered_map<String, String> attributes) { attributes_ = std::move(attributes); } + const std::vector<XmlNode*> GetChildren() const { return children_; } void AddAttribute(String key, String value); void AddChild(XmlNode* child); |