X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a79cfb92e093d9c9c78e3ccbabcd45de1a283e56..8c6fa3fbaccc22127280bf77a48fab5a3ee0716e:/projects/stargazer/plugins/configuration/sgconfig/parser.h?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser.h b/projects/stargazer/plugins/configuration/sgconfig/parser.h index 4e4b9417..8bddc517 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser.h +++ b/projects/stargazer/plugins/configuration/sgconfig/parser.h @@ -31,6 +31,7 @@ class BASE_PARSER public: struct FACTORY { + virtual ~FACTORY() {} virtual BASE_PARSER * create(const ADMIN & admin) = 0; }; typedef std::map REGISTRY; @@ -38,8 +39,7 @@ class BASE_PARSER BASE_PARSER(const ADMIN & admin, const std::string & t) : m_currAdmin(admin), m_depth(0), - m_tag(t), - m_done(false) + m_tag(t) {} virtual ~BASE_PARSER() {} virtual int Start(void * data, const char * el, const char ** attr); @@ -50,8 +50,6 @@ class BASE_PARSER std::string GetOpenTag() const { return "<" + m_tag + ">"; } std::string GetCloseTag() const { return ""; } - bool IsDone() const { return m_done; } - protected: BASE_PARSER(const BASE_PARSER & rvalue); BASE_PARSER & operator=(const BASE_PARSER & rvalue); @@ -60,7 +58,6 @@ class BASE_PARSER size_t m_depth; std::string m_answer; std::string m_tag; - bool m_done; private: virtual void CreateAnswer() = 0;