std::string type() function taken out of all filter classes again
[metaproxy-moved-to-github.git] / src / filter_log.hpp
1 /* $Id: filter_log.hpp,v 1.9 2005-10-31 09:40:18 marc Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7 #ifndef FILTER_LOG_HPP
8 #define FILTER_LOG_HPP
9
10 #include <stdexcept>
11 #include <vector>
12
13 #include "filter.hpp"
14
15 #include <boost/thread/mutex.hpp>
16
17
18 namespace yp2 {
19     namespace filter {
20         class Log : public Base {
21         public:
22             Log(const std::string &msg);
23             Log();
24             void process(yp2::Package & package) const;
25         private:
26             /// static mutex to lock Ostream during logging operation
27             static boost::mutex m_log_mutex;
28             std::string m_msg;
29         };
30     }
31 }
32
33 #endif
34 /*
35  * Local variables:
36  * c-basic-offset: 4
37  * indent-tabs-mode: nil
38  * c-file-style: "stroustrup"
39  * End:
40  * vim: shiftwidth=4 tabstop=8 expandtab
41  */