Include sys/socket.h when available
[metaproxy-moved-to-github.git] / src / filter_factory.hpp
index 902c84d..29630a6 100644 (file)
@@ -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.5 2005-11-07 21:57:10 adam Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
 #include <string>
 #include <map>
 
-#include "config.hpp"
 #include "filter.hpp"
 
 
 namespace yp2 {
 
     namespace filter {
-
-        
-
     
     class FilterFactoryException : public std::runtime_error {
     public:
@@ -36,6 +32,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 +47,12 @@ namespace yp2 {
             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 &);
         };
         
     }