X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/908dee0db9288bb455e9f1b68dd81ab50897a677..de7760b87ad8ca38954140a738d66a133f7021f0:/stglibs/srvconf.lib/parsers/get_container.h diff --git a/stglibs/srvconf.lib/parsers/get_container.h b/stglibs/srvconf.lib/parsers/get_container.h index 6cc9bc85..cbfd1ead 100644 --- a/stglibs/srvconf.lib/parsers/get_container.h +++ b/stglibs/srvconf.lib/parsers/get_container.h @@ -38,9 +38,9 @@ class PARSER: public STG::PARSER public: typedef std::vector INFO; typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); - PARSER(const std::string & t, CALLBACK f, void * d) - : tag(t), callback(f), data(d), - elementParser(&PARSER::ElementCallback, this), + PARSER(const std::string & t, CALLBACK f, void * d, const std::string & e) + : tag(t), callback(f), data(d), encoding(e), + elementParser(&PARSER::ElementCallback, this, e), depth(0), parsingAnswer(false) {} int ParseStart(const char * el, const char ** attr) @@ -75,6 +75,7 @@ private: std::string tag; CALLBACK callback; void * data; + std::string encoding; ELEMENT_PARSER elementParser; INFO info; int depth;