From 6b1bd87594b5274e70571da33e5b6c72bae4561a Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Sat, 29 Oct 2005 22:51:11 +0000 Subject: [PATCH] making filter factory non-copyable --- src/filter_factory.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/filter_factory.hpp b/src/filter_factory.hpp index 902c84d..8c10bed 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.3 2005-10-29 22:51:11 marc Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -36,6 +36,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 +51,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 &); }; } -- 1.7.10.4