#include "stg/user_conf.h"
#include "stg/user_stat.h"
+#include "stg/common.h"
#include "stg/resetable.h"
#include <string>
FACTORY(USERS & users) : m_users(users) {}
virtual BASE_PARSER * create(const ADMIN & admin) { return new GET_USERS(admin, m_users); }
static void Register(REGISTRY & registry, USERS & users)
- { registry[tag] = new FACTORY(users); }
+ { registry[ToLower(tag)] = new FACTORY(users); }
private:
USERS & m_users;
};
FACTORY(const USERS & users) : m_users(users) {}
virtual BASE_PARSER * create(const ADMIN & admin) { return new GET_USER(admin, m_users); }
static void Register(REGISTRY & registry, const USERS & users)
- { registry[tag] = new FACTORY(users); }
+ { registry[ToLower(tag)] = new FACTORY(users); }
private:
const USERS & m_users;
};
FACTORY(USERS & users) : m_users(users) {}
virtual BASE_PARSER * create(const ADMIN & admin) { return new ADD_USER(admin, m_users); }
static void Register(REGISTRY & registry, USERS & users)
- { registry[tag] = new FACTORY(users); }
+ { registry[ToLower(tag)] = new FACTORY(users); }
private:
USERS & m_users;
};
{}
virtual BASE_PARSER * create(const ADMIN & admin) { return new CHG_USER(admin, m_users, m_store, m_tariffs); }
static void Register(REGISTRY & registry, USERS & users, STORE & store, const TARIFFS & tariffs)
- { registry[tag] = new FACTORY(users, store, tariffs); }
+ { registry[ToLower(tag)] = new FACTORY(users, store, tariffs); }
private:
USERS & m_users;
STORE & m_store;
FACTORY(USERS & users) : m_users(users) {}
virtual BASE_PARSER * create(const ADMIN & admin) { return new DEL_USER(admin, m_users); }
static void Register(REGISTRY & registry, USERS & users)
- { registry[tag] = new FACTORY(users); }
+ { registry[ToLower(tag)] = new FACTORY(users); }
private:
USERS & m_users;
};
FACTORY(const USERS & users) : m_users(users) {}
virtual BASE_PARSER * create(const ADMIN & admin) { return new CHECK_USER(admin, m_users); }
static void Register(REGISTRY & registry, const USERS & users)
- { registry[tag] = new FACTORY(users); }
+ { registry[ToLower(tag)] = new FACTORY(users); }
private:
const USERS & m_users;
};