All filters declare a yp2_filter_struct - used for both static and
[metaproxy-moved-to-github.git] / src / filter_log.hpp
index 84d1491..a829d80 100644 (file)
@@ -1,18 +1,32 @@
+/* $Id: filter_log.hpp,v 1.11 2006-01-04 11:19:04 adam Exp $
+   Copyright (c) 2005, Index Data.
+
+%LICENSE%
+ */
 
 #ifndef FILTER_LOG_HPP
 #define FILTER_LOG_HPP
 
-#include <stdexcept>
-#include <vector>
+#include <boost/scoped_ptr.hpp>
 
 #include "filter.hpp"
 
 namespace yp2 {
-    class FilterLog : public yp2::Filter {
-    public:
-       FilterLog::FilterLog();
-       void process(yp2::Package & package) const;
-    };
+    namespace filter {
+        class Log : public Base {
+            class Rep;
+            boost::scoped_ptr<Rep> m_p;
+        public:
+            Log();
+            Log(const std::string &x);
+            ~Log();
+            void process(yp2::Package & package) const;
+        };
+    }
+}
+
+extern "C" {
+    extern const struct yp2_filter_struct yp2_filter_log;
 }
 
 #endif
@@ -20,6 +34,7 @@ namespace yp2 {
  * Local variables:
  * c-basic-offset: 4
  * indent-tabs-mode: nil
+ * c-file-style: "stroustrup"
  * End:
  * vim: shiftwidth=4 tabstop=8 expandtab
  */