- FACTORY(const ADMIN & admin, USERS & users)
- : m_admin(admin), m_users(users)
- {}
- virtual BASE_PARSER * create() { return new SEND_MESSAGE(m_admin, m_users); }
+ FACTORY(USERS & users) : m_users(users) {}
+ virtual BASE_PARSER * create(const ADMIN & admin) { return new SEND_MESSAGE(admin, m_users); }
+ static void Register(REGISTRY & registry, USERS & users)
+ { registry[tag] = new FACTORY(users); }