X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/474a9dc37f5085103d11cff3afa8642538f06a10..ac3670b33981698a02c5e95ab4f11cb3fe57562d:/stglibs/srvconf.lib/parsers/get_corp.h 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;