-
- class FilterFactory {
-
- public:
- typedef yp2::filter::Base* (*CreateFilterCallback)();
- /// true if registration ok
-
- bool add_creator(std::string fi, CreateFilterCallback cfc);
- /// true if unregistration ok
-
- bool drop_creator(std::string fi);
-
- /// factory create method
-
- yp2::filter::Base* create(std::string fi);
-
- private:
- typedef std::map<std::string, CreateFilterCallback> CallbackMap;
- CallbackMap m_fcm;
-
- };
-
- }