- FACTORY(const ADMIN & admin, const ADMINS & admins)
- : m_admin(admin), m_admins(admins)
- {}
- virtual BASE_PARSER * create() { return new GET_ADMINS(m_admin, m_admins); }
+ explicit FACTORY(const ADMINS & admins) : m_admins(admins) {}
+ virtual BASE_PARSER * create(const ADMIN & admin) { return new GET_ADMINS(admin, m_admins); }
+ static void Register(REGISTRY & registry, const ADMINS & admins)
+ { registry[ToLower(tag)] = new FACTORY(admins); }