X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e9cb0683c0b33d8458c1d9b2558bbeb5d101e680..b46ee6da376a4dc717ce2a2c68c0f59ae8225b1b:/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.h?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.h b/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.h index ccd1d94e..1024983f 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.h +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.h @@ -25,15 +25,28 @@ #include -class PARSER_USER_INFO : public BASE_PARSER { -public: - int ParseStart(void *data, const char *el, const char **attr); - int ParseEnd(void *data, const char *el); +class USERS; -private: - std::string login; +namespace STG +{ +namespace PARSER +{ - void CreateAnswer(); +class USER_INFO : public BASE_PARSER +{ + public: + USER_INFO(const ADMIN & admin, const USERS & users) + : BASE_PARSER(admin, "GetUserInfo"), m_users(users) {} + int Start(void * data, const char * el, const char ** attr); + + private: + const USERS & m_users; + std::string m_login; + + void CreateAnswer(); }; +} +} + #endif