X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0683126dc365b9ce34b517547ce27dcbd4805556..250a7d6e7a4c8ffd644931b7b3964289a8f99151:/stglibs/srvconf.lib/parsers/get_admin.h diff --git a/stglibs/srvconf.lib/parsers/get_admin.h b/stglibs/srvconf.lib/parsers/get_admin.h index 04ed892c..f7cb3084 100644 --- a/stglibs/srvconf.lib/parsers/get_admin.h +++ b/stglibs/srvconf.lib/parsers/get_admin.h @@ -37,22 +37,26 @@ namespace GET_ADMIN class PARSER: public STG::PARSER { public: - PARSER(CALLBACK f, void * data); + typedef GET_ADMIN::INFO INFO; + + PARSER(CALLBACK f, void * data, const std::string & encoding); virtual ~PARSER(); int ParseStart(const char * el, const char ** attr); void ParseEnd(const char * el); + void Failure(const std::string & reason) { callback(false, reason, info, data); } private: PROPERTY_PARSERS propertyParsers; CALLBACK callback; void * data; + std::string encoding; INFO info; int depth; bool parsingAnswer; std::string error; void ParseAdmin(const char * el, const char ** attr); - void ParseAdminParams(const char * el, const char ** attr); + //void ParseAdminParams(const char * el, const char ** attr); }; } // namespace GET_ADMIN