X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_log.hpp;h=b6238b52eb36bef71e3d01f5cfa8b665550b9329;hb=1c0be6e7c190105cc428472d59a4b0c23fd2235e;hp=c8d3f8559ac2ebdc9a8959453b640928da80ba10;hpb=cf09b1981338f07c333e43e0a2c907012c841c5d;p=metaproxy-moved-to-github.git diff --git a/src/filter_log.hpp b/src/filter_log.hpp index c8d3f85..b6238b5 100644 --- a/src/filter_log.hpp +++ b/src/filter_log.hpp @@ -1,4 +1,4 @@ -/* $Id: filter_log.hpp,v 1.6 2005-10-25 11:48:30 adam Exp $ +/* $Id: filter_log.hpp,v 1.13 2006-01-11 08:53:52 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -7,29 +7,29 @@ #ifndef FILTER_LOG_HPP #define FILTER_LOG_HPP -#include -#include +#include #include "filter.hpp" -#include - - namespace yp2 { namespace filter { class Log : public Base { + class Rep; + boost::scoped_ptr m_p; public: Log(); + Log(const std::string &x); + ~Log(); void process(yp2::Package & package) const; - void set_prefix(const std::string &msg); - private: - /// static mutex to lock Ostream during logging operation - static boost::mutex m_log_mutex; - std::string m_msg; + void configure(const xmlNode * ptr); }; } } +extern "C" { + extern struct yp2_filter_struct yp2_filter_log; +} + #endif /* * Local variables: