#include "parser.h"
+#include <string>
+
+namespace STG
+{
+
class PARSER_CHG_USER: public PARSER
{
public:
+ typedef void (* CALLBACK)(bool result, const std::string& reason, void * data);
+
PARSER_CHG_USER();
- int ParseStart(const char *el, const char **attr);
- void ParseEnd(const char *el);
- void ParseAnswer(const char *el, const char **attr);
- void SetChgUserRecvCb(RecvChgUserCb_t, void * data);
+ int ParseStart(const char * el, const char ** attr);
+ void ParseEnd(const char * el);
+ void SetCallback(CALLBACK f, void * data);
private:
- RecvChgUserCb_t RecvChgUserCb;
- void * chgUserCbData;
+ CALLBACK callback;
+ void * data;
int depth;
- bool error;
+
+ void ParseAnswer(const char * el, const char ** attr);
};
+} // namespace STG
+
#endif