X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/6c05b2e63b58b19df2f35707fa12f238a18458e7..250a7d6e7a4c8ffd644931b7b3964289a8f99151:/stglibs/srvconf.lib/parsers/get_tariff.h?ds=sidebyside diff --git a/stglibs/srvconf.lib/parsers/get_tariff.h b/stglibs/srvconf.lib/parsers/get_tariff.h index 1c03d655..be78fdbd 100644 --- a/stglibs/srvconf.lib/parsers/get_tariff.h +++ b/stglibs/srvconf.lib/parsers/get_tariff.h @@ -37,15 +37,19 @@ namespace GET_TARIFF class PARSER: public STG::PARSER { public: - PARSER(CALLBACK f, void * data); + typedef GET_TARIFF::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;