projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xml configuration dom parsing finished, still missing connection to filter factory...
[metaproxy-moved-to-github.git]
/
src
/
filter_factory.hpp
diff --git
a/src/filter_factory.hpp
b/src/filter_factory.hpp
index
902c84d
..
7ad4e19
100644
(file)
--- 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%
Copyright (c) 2005, Index Data.
%LICENSE%
@@
-19,9
+19,6
@@
namespace yp2 {
namespace filter {
namespace yp2 {
namespace filter {
-
-
-
class FilterFactoryException : public std::runtime_error {
public:
class FilterFactoryException : public std::runtime_error {
public:
@@
-36,6
+33,8
@@
namespace yp2 {
typedef yp2::filter::Base* (*CreateFilterCallback)();
/// true if registration ok
typedef yp2::filter::Base* (*CreateFilterCallback)();
/// true if registration ok
+ FilterFactory(){};
+
bool add_creator(std::string fi, CreateFilterCallback cfc);
/// true if unregistration ok
bool add_creator(std::string fi, CreateFilterCallback cfc);
/// true if unregistration ok
@@
-49,6
+48,12
@@
namespace yp2 {
typedef std::map<std::string, CreateFilterCallback> CallbackMap;
CallbackMap m_fcm;
typedef std::map<std::string, CreateFilterCallback> CallbackMap;
CallbackMap m_fcm;
+ private:
+ /// disabled because class is singleton
+ FilterFactory(const FilterFactory &);
+
+ /// disabled because class is singleton
+ FilterFactory& operator=(const FilterFactory &);
};
}
};
}