X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ffilter_factory.hpp;h=7ad4e191523f7fbe94ee99385dfc57c0afc87338;hb=474111be67deb87130a5f0add13df89c89df346a;hp=902c84d6dee1cb41022c86f42efee65b9d122418;hpb=8a595f41f5eaaa7ef846a697cfe4466ea57d224a;p=metaproxy-moved-to-github.git diff --git a/src/filter_factory.hpp b/src/filter_factory.hpp index 902c84d..7ad4e19 100644 --- a/src/filter_factory.hpp +++ b/src/filter_factory.hpp @@ -1,4 +1,4 @@ -/* $Id: filter_factory.hpp,v 1.2 2005-10-29 17:58:14 marc Exp $ +/* $Id: filter_factory.hpp,v 1.4 2005-10-31 09:40:18 marc Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -19,9 +19,6 @@ namespace yp2 { namespace filter { - - - class FilterFactoryException : public std::runtime_error { public: @@ -36,6 +33,8 @@ namespace yp2 { typedef yp2::filter::Base* (*CreateFilterCallback)(); /// true if registration ok + FilterFactory(){}; + bool add_creator(std::string fi, CreateFilterCallback cfc); /// true if unregistration ok @@ -49,6 +48,12 @@ namespace yp2 { typedef std::map CallbackMap; CallbackMap m_fcm; + private: + /// disabled because class is singleton + FilterFactory(const FilterFactory &); + + /// disabled because class is singleton + FilterFactory& operator=(const FilterFactory &); }; }