X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_log.hpp;h=ad478031a099b2f7107fca60d781ee627f9ba9a5;hb=4c42fcd314fe52e0a896b08ed9d818bf6f323fe7;hp=58cb266e4adb01aa370682510bef1bf93e9ef484;hpb=7467b072bb64f5c8575daa9917cce7df62d832f1;p=metaproxy-moved-to-github.git diff --git a/src/filter_log.hpp b/src/filter_log.hpp index 58cb266..ad47803 100644 --- a/src/filter_log.hpp +++ b/src/filter_log.hpp @@ -1,5 +1,5 @@ -/* $Id: filter_log.hpp,v 1.8 2005-10-29 22:23:36 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% */ @@ -7,32 +7,29 @@ #ifndef FILTER_LOG_HPP #define FILTER_LOG_HPP -#include -#include +#include #include "filter.hpp" -#include - - -namespace yp2 { +namespace metaproxy_1 { namespace filter { class Log : public Base { + class Rep; + boost::scoped_ptr m_p; public: - Log(const std::string &msg); Log(); - void process(yp2::Package & package) const; - const std::string type() const { - return "Log"; - }; - private: - /// static mutex to lock Ostream during logging operation - static boost::mutex m_log_mutex; - std::string m_msg; + 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: