X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/474a9dc37f5085103d11cff3afa8642538f06a10..7766e753fefb962209f1898a234053f8c7bbe59d:/stglibs/srvconf.lib/parsers/get_corp.h?ds=sidebyside diff --git a/stglibs/srvconf.lib/parsers/get_corp.h b/stglibs/srvconf.lib/parsers/get_corp.h index 80b1e943..86576c96 100644 --- a/stglibs/srvconf.lib/parsers/get_corp.h +++ b/stglibs/srvconf.lib/parsers/get_corp.h @@ -37,10 +37,13 @@ namespace GET_CORP class PARSER: public STG::PARSER { public: + typedef GET_CORP::INFO INFO; + PARSER(CALLBACK f, void * data); 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;