- FACTORY(const ADMIN & admin, TARIFFS & tariffs, const USERS & users)
- : m_admin(admin), m_tariffs(tariffs), m_users(users)
- {}
- virtual BASE_PARSER * create() { return new DEL_TARIFF(m_admin, m_users, m_tariffs); }
+ FACTORY(Tariffs & tariffs, const Users & users) : m_tariffs(tariffs), m_users(users) {}
+ BASE_PARSER * create(const Admin & admin) override { return new DEL_TARIFF(admin, m_users, m_tariffs); }
+ static void Register(REGISTRY & registry, Tariffs & tariffs, const Users & users)
+ { registry[ToLower(tag)] = new FACTORY(tariffs, users); }