Added files and initial auth_simple filter
[metaproxy-moved-to-github.git] / src / factory_static.cpp
1 /* $Id: factory_static.cpp,v 1.5 2006-01-12 10:04:34 adam Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5
6 */
7
8 #include <iostream>
9 #include <stdexcept>
10
11 #include "factory_static.hpp"
12
13 #include "config.hpp"
14 #include "filter.hpp"
15 #include "package.hpp"
16
17 #include "factory_filter.hpp"
18
19 #include "filter_auth_simple.hpp"
20 #include "filter_backend_test.hpp"
21 #include "filter_frontend_net.hpp"
22 #include "filter_log.hpp"
23 #include "filter_session_shared.hpp"
24 #include "filter_template.hpp"
25 #include "filter_virt_db.hpp"
26 #include "filter_z3950_client.hpp"
27
28 yp2::FactoryStatic::FactoryStatic()
29 {
30     struct yp2_filter_struct *buildins[] = {
31         &yp2_filter_auth_simple,
32         &yp2_filter_backend_test,
33         &yp2_filter_frontend_net,        
34         &yp2_filter_log,
35         &yp2_filter_session_shared,
36         &yp2_filter_template,
37         &yp2_filter_virt_db,
38         &yp2_filter_z3950_client,
39         0
40     };
41     int i;
42
43     for (i = 0; buildins[i]; i++)
44         add_creator(buildins[i]->type, buildins[i]->creator);
45 }
46
47
48 /*
49  * Local variables:
50  * c-basic-offset: 4
51  * indent-tabs-mode: nil
52  * c-file-style: "stroustrup"
53  * End:
54  * vim: shiftwidth=4 tabstop=8 expandtab
55  */