projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented first bits of http_file filter which serves plain
[metaproxy-moved-to-github.git]
/
src
/
filter_log.hpp
diff --git
a/src/filter_log.hpp
b/src/filter_log.hpp
index
e2af7c0
..
b6238b5
100644
(file)
--- a/
src/filter_log.hpp
+++ b/
src/filter_log.hpp
@@
-1,4
+1,4
@@
-/* $Id: filter_log.hpp,v 1.7 2005-10-25 16:01:36 adam Exp $
+/* $Id: filter_log.hpp,v 1.13 2006-01-11 08:53:52 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
Copyright (c) 2005, Index Data.
%LICENSE%
@@
-7,29
+7,29
@@
#ifndef FILTER_LOG_HPP
#define FILTER_LOG_HPP
#ifndef FILTER_LOG_HPP
#define FILTER_LOG_HPP
-#include <stdexcept>
-#include <vector>
+#include <boost/scoped_ptr.hpp>
#include "filter.hpp"
#include "filter.hpp"
-#include <boost/thread/mutex.hpp>
-
-
namespace yp2 {
namespace filter {
class Log : public Base {
namespace yp2 {
namespace filter {
class Log : public Base {
+ class Rep;
+ boost::scoped_ptr<Rep> m_p;
public:
public:
- Log(const std::string &msg);
Log();
Log();
+ Log(const std::string &x);
+ ~Log();
void process(yp2::Package & package) const;
void process(yp2::Package & package) const;
- 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:
#endif
/*
* Local variables: