X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7e142f5d0a61138473602352e38c6f5a5e4bba61..e87b76d3a75c2833d2a646b38210584dc1a93624:/stglibs/srvconf.lib/include/stg/parser_server_info.h diff --git a/stglibs/srvconf.lib/include/stg/parser_server_info.h b/stglibs/srvconf.lib/include/stg/parser_server_info.h index ce7a70ae..ff31ae71 100644 --- a/stglibs/srvconf.lib/include/stg/parser_server_info.h +++ b/stglibs/srvconf.lib/include/stg/parser_server_info.h @@ -22,8 +22,9 @@ #ifndef __STG_STGLIBS_SRVCONF_PARSER_SERVER_INFO_H__ #define __STG_STGLIBS_SRVCONF_PARSER_SERVER_INFO_H__ -#include "/parser.h" +#include "parser.h" +#include "property_parsers.h" #include "stg/const.h" #include @@ -41,19 +42,20 @@ public: int dirNum; std::string dirName[DIR_NUM]; }; - typedef void (* CALLBACK)(const INFO & info, void * data); + typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); PARSER_SERVER_INFO(); - int ParseStart(const char *el, const char **attr); - void ParseEnd(const char *el); + int ParseStart(const char * el, const char ** attr); + void ParseEnd(const char * el); void SetCallback(CALLBACK f, void * data); private: - void ParseDirName(const char **attr, int d); - + PROPERTY_PARSERS propertyParsers; CALLBACK callback; void * data; int depth; + bool parsingAnswer; INFO info; + std::string error; }; #endif