X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/474a9dc37f5085103d11cff3afa8642538f06a10..e21efb7b0eeb81e3943ee4d4a51110d4d87ab156:/stglibs/srvconf.lib/parsers/get_corp.h?ds=inline diff --git a/stglibs/srvconf.lib/parsers/get_corp.h b/stglibs/srvconf.lib/parsers/get_corp.h index 80b1e943..b9d87983 100644 --- a/stglibs/srvconf.lib/parsers/get_corp.h +++ b/stglibs/srvconf.lib/parsers/get_corp.h @@ -37,16 +37,20 @@ namespace GET_CORP class PARSER: public STG::PARSER { public: - PARSER(CALLBACK f, void * data); + typedef GET_CORP::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; INFO info; + std::string encoding; int depth; bool parsingAnswer; std::string error;