filter factory in working shape, see example in test_filer_factory.cpp
[metaproxy-moved-to-github.git] / src / filter_frontend_net.hpp
1 /* $Id: filter_frontend_net.hpp,v 1.6 2005-10-29 22:23:36 marc Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7 #ifndef FILTER_FRONTEND_NET_HPP
8 #define FILTER_FRONEND_NET_HPP
9
10 #include <stdexcept>
11 #include <vector>
12
13 #include "filter.hpp"
14
15 namespace yp2 {
16     namespace filter {
17         class FrontendNet : public Base {
18         public:
19             FrontendNet::FrontendNet();
20             void process(yp2::Package & package) const;
21             const std::string type() const {
22                 return "FrontendNet";
23             };
24         private:
25             int m_no_threads;
26             std::vector<std::string> m_ports;
27             int m_listen_duration;
28         public:
29             /// set function - left val in assignment
30             std::vector<std::string> &ports();
31             int &listen_duration();
32         };
33     }
34 }
35
36
37 #endif
38 /*
39  * Local variables:
40  * c-basic-offset: 4
41  * indent-tabs-mode: nil
42  * c-file-style: "stroustrup"
43  * End:
44  * vim: shiftwidth=4 tabstop=8 expandtab
45  */