+ class FACTORY : public BASE_PARSER::FACTORY
+ {
+ public:
+ FACTORY(TARIFFS & tariffs, const USERS & users) : m_tariffs(tariffs), m_users(users) {}
+ virtual BASE_PARSER * create(const ADMIN & admin) { return new DEL_TARIFF(admin, m_users, m_tariffs); }
+ static void Register(REGISTRY & registry, TARIFFS & tariffs, const USERS & users)
+ { registry[tag] = new FACTORY(tariffs, users); }
+ private:
+ TARIFFS & m_tariffs;
+ const USERS & m_users;
+ };
+
+ static const char * tag;
+