#ifndef __STG_STGLIBS_SRVCONF_PARSER_GET_USERS_H__
#define __STG_STGLIBS_SRVCONF_PARSER_GET_USERS_H__
-#include "stg/parser.h"
+#include "parser.h"
+
+#include "parser_get_user.h"
#include <vector>
{
public:
typedef std::vector<PARSER_GET_USER::INFO> INFO;
- typedef void (* CALLBACK)(const INFO & info, void * data);
+ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data);
PARSER_GET_USERS();
int ParseStart(const char * el, const char ** attr);
PARSER_GET_USER userParser;
INFO info;
int depth;
+ bool parsingAnswer;
+ std::string error;
void AddUser(const PARSER_GET_USER::INFO & userInfo);
- void ParseUsers(const char * el, const char ** attr);
+ void SetError(const std::string & e) { error = e; }
- static void UserCallback(const PARSER_GET_USER::INFO & info, void * data);
+ static void UserCallback(bool result, const std::string& reason, const PARSER_GET_USER::INFO & info, void * data);
};
#endif