-/* $Id: filter_log.hpp,v 1.5 2005-10-19 22:45:59 marc Exp $
- Copyright (c) 2005, Index Data.
+/* $Id: filter_log.hpp,v 1.14 2006-03-16 10:40:59 adam Exp $
+ Copyright (c) 2005-2006, Index Data.
%LICENSE%
*/
#ifndef FILTER_LOG_HPP
#define FILTER_LOG_HPP
-#include <stdexcept>
-#include <vector>
+#include <boost/scoped_ptr.hpp>
#include "filter.hpp"
-#include <boost/thread/mutex.hpp>
-
-
-namespace yp2 {
+namespace metaproxy_1 {
namespace filter {
class Log : public Base {
+ class Rep;
+ boost::scoped_ptr<Rep> m_p;
public:
Log();
- void process(yp2::Package & package) const;
- private:
- /// static mutex to lock Ostream during logging operation
- static boost::mutex m_log_mutex;
+ Log(const std::string &x);
+ ~Log();
+ void process(metaproxy_1::Package & package) const;
+ void configure(const xmlNode * ptr);
};
}
}
+extern "C" {
+ extern struct metaproxy_1_filter_struct metaproxy_1_filter_log;
+}
+
#endif
/*
* Local variables: