* Author : Maxim Mamontov <faust@stargazer.dp.ua>
*/
-#include "parser_get_user.h"
+#include "get_user.h"
#include "stg/common.h"
#include <map>
#include <utility>
-#include <cstddef>
#include <strings.h>
}
-GET_USER::PARSER::PARSER()
- : callback(NULL),
- data(NULL),
+GET_USER::PARSER::PARSER(CALLBACK f, void * d)
+ : callback(f),
+ data(d),
depth(0),
parsingAnswer(false)
{
if (!TryParse(propertyParsers, ToLower(el), attr))
error = "Invalid parameter.";
}
-//-----------------------------------------------------------------------------
-void GET_USER::PARSER::SetCallback(CALLBACK f, void * d)
-{
-callback = f;
-data = d;
-}