+ class FACTORY : public BASE_PARSER::FACTORY
+ {
+ public:
+ explicit 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[ToLower(tag)] = new FACTORY(users); }
+ private:
+ USERS & m_users;
+ };
+
+ static const char * tag;
+