Rename yp2::FilterFactory to yp2::FactoryFilter
[metaproxy-moved-to-github.git] / src / factory_static.cpp
1 /* $Id: factory_static.cpp,v 1.4 2006-01-04 14:30:51 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_backend_test.hpp"
20 #include "filter_frontend_net.hpp"
21 #include "filter_log.hpp"
22 #include "filter_session_shared.hpp"
23 #include "filter_template.hpp"
24 #include "filter_virt_db.hpp"
25 #include "filter_z3950_client.hpp"
26
27 yp2::FactoryStatic::FactoryStatic()
28 {
29     struct yp2_filter_struct *buildins[] = {
30         &yp2_filter_backend_test,
31         &yp2_filter_frontend_net,        
32         &yp2_filter_log,
33         &yp2_filter_session_shared,
34         &yp2_filter_template,
35         &yp2_filter_virt_db,
36         &yp2_filter_z3950_client,
37         0
38     };
39     int i;
40
41     for (i = 0; buildins[i]; i++)
42         add_creator(buildins[i]->type, buildins[i]->creator);
43 }
44
45
46 /*
47  * Local variables:
48  * c-basic-offset: 4
49  * indent-tabs-mode: nil
50  * c-file-style: "stroustrup"
51  * End:
52  * vim: shiftwidth=4 tabstop=8 expandtab
53  */