#ifndef __STG_STGLIBS_SRVCONF_PARSER_GET_USER_H__
#define __STG_STGLIBS_SRVCONF_PARSER_GET_USER_H__
-#include "stg/parser.h"
+#include "parser.h"
#include "stg/os_int.h"
+#include "stg/const.h"
#include <string>
#include <map>
class BASE_PROPERTY_PARSER
{
public:
- virtual bool Parse(const char ** attr) = 0;
+ virtual ~BASE_PROPERTY_PARSER() {}
+ virtual void Parse(const char ** attr) = 0;
};
template <typename T>
-class PROPERTY_PARSER
+class PROPERTY_PARSER : public BASE_PROPERTY_PARSER
{
public:
typedef T (* FUNC)(const char **);