X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7df336e60c959c440b2c330f7a7ca9b0251db2a1..b2b89723a2427bba8290bd6967a1ab39cbb630be:/projects/stargazer/plugins/configuration/sgconfig/parser.h?ds=inline diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser.h b/projects/stargazer/plugins/configuration/sgconfig/parser.h index af77158d..a030b996 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser.h +++ b/projects/stargazer/plugins/configuration/sgconfig/parser.h @@ -18,24 +18,27 @@ * Author : Boris Mikhailenko */ -#ifndef PARSER_H -#define PARSER_H +#pragma once #include #include -class ADMIN; +namespace STG +{ +class Admin; +} class BASE_PARSER { public: struct FACTORY { - virtual BASE_PARSER * create(const ADMIN & admin) = 0; + virtual ~FACTORY() {} + virtual BASE_PARSER * create(const STG::Admin & admin) = 0; }; typedef std::map REGISTRY; - BASE_PARSER(const ADMIN & admin, const std::string & t) + BASE_PARSER(const STG::Admin & admin, const std::string & t) : m_currAdmin(admin), m_depth(0), m_tag(t) @@ -53,7 +56,7 @@ class BASE_PARSER BASE_PARSER(const BASE_PARSER & rvalue); BASE_PARSER & operator=(const BASE_PARSER & rvalue); - const ADMIN & m_currAdmin; + const STG::Admin & m_currAdmin; size_t m_depth; std::string m_answer; std::string m_tag; @@ -61,5 +64,3 @@ class BASE_PARSER private: virtual void CreateAnswer() = 0; }; - -#endif //PARSER_H