X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/85513928f6a270af94c1477f5ae2773647b04cd7..3f023a72d0eedd982ba16401fbdff63dc5dddd4d:/stglibs/srvconf.lib/parsers/simple.h diff --git a/stglibs/srvconf.lib/parsers/simple.h b/stglibs/srvconf.lib/parsers/simple.h index 43dbcd56..244e8ef0 100644 --- a/stglibs/srvconf.lib/parsers/simple.h +++ b/stglibs/srvconf.lib/parsers/simple.h @@ -35,7 +35,7 @@ namespace SIMPLE class PARSER: public STG::PARSER { public: - PARSER(const std::string & tag, CALLBACK f, void * data); + PARSER(const std::string & tag, CALLBACK f, void * data, const std::string & encoding); int ParseStart(const char * el, const char ** attr); void ParseEnd(const char * el); void Failure(const std::string & reason) { callback(false, reason, data); } @@ -44,6 +44,7 @@ private: std::string tag; CALLBACK callback; void * data; + std::string encoding; int depth; void ParseAnswer(const char * el, const char ** attr);