diff options
Diffstat (limited to 'core/fxcrt/xml/cfx_xmldoc.h')
-rw-r--r-- | core/fxcrt/xml/cfx_xmldoc.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/fxcrt/xml/cfx_xmldoc.h b/core/fxcrt/xml/cfx_xmldoc.h index 55976b01b3..915acd325d 100644 --- a/core/fxcrt/xml/cfx_xmldoc.h +++ b/core/fxcrt/xml/cfx_xmldoc.h @@ -8,6 +8,7 @@ #define CORE_FXCRT_XML_CFX_XMLDOC_H_ #include <memory> +#include <utility> #include "core/fxcrt/cfx_seekablestreamproxy.h" #include "core/fxcrt/retain_ptr.h" @@ -16,18 +17,15 @@ class CFX_XMLDoc { public: - explicit CFX_XMLDoc(const RetainPtr<CFX_SeekableStreamProxy>& pStream); + CFX_XMLDoc(); ~CFX_XMLDoc(); - int32_t Load(); - void CloseXML(); + bool Load(const RetainPtr<CFX_SeekableStreamProxy>& pStream); - CFX_XMLNode* GetRoot() const { return m_pRoot.get(); } - CFX_XMLParser* GetParser() const { return m_pXMLParser.get(); } + std::unique_ptr<CFX_XMLNode> GetTree() { return std::move(m_pRoot); } private: std::unique_ptr<CFX_XMLNode> m_pRoot; - std::unique_ptr<CFX_XMLParser> m_pXMLParser; }; #endif // CORE_FXCRT_XML_CFX_XMLDOC_H_ |