#ifndef __STG_STGLIBS_SRVCONF_PARSER_SERVER_INFO_H__
#define __STG_STGLIBS_SRVCONF_PARSER_SERVER_INFO_H__
-#include "stg/parser.h"
+#include "parser.h"
+#include "property_parsers.h"
#include "stg/const.h"
#include <string>
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