metaproxy 1.22.1
filter_virt_db.hpp
Go to the documentation of this file.
1/* This file is part of Metaproxy.
2 Copyright (C) Index Data
3
4Metaproxy is free software; you can redistribute it and/or modify it under
5the terms of the GNU General Public License as published by the Free
6Software Foundation; either version 2, or (at your option) any later
7version.
8
9Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or
11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17*/
18
19#ifndef FILTER_VIRT_DB_HPP
20#define FILTER_VIRT_DB_HPP
21
22#include <stdexcept>
23#include <list>
24#include <boost/scoped_ptr.hpp>
25#include <boost/shared_ptr.hpp>
26
27#include <metaproxy/filter.hpp>
28
29namespace metaproxy_1 {
30 namespace filter {
31 class VirtualDB : public Base {
32 class Rep;
33 struct Frontend;
34 struct Map;
35 struct Set;
36 struct Backend;
37 typedef boost::shared_ptr<Backend> BackendPtr;
38 typedef boost::shared_ptr<Frontend> FrontendPtr;
39 public:
40 ~VirtualDB();
41 VirtualDB();
42 void process(metaproxy_1::Package & package) const;
43 void configure(const xmlNode * ptr, bool test_only,
44 const char *path);
45 void add_map_db2targets(std::string db,
46 std::list<std::string> targets,
47 std::string route);
48 void add_map_db2target(std::string db,
49 std::string target,
50 std::string route);
51 private:
52 boost::scoped_ptr<Rep> m_p;
53 };
54 }
55}
56
57extern "C" {
58 extern struct metaproxy_1_filter_struct metaproxy_1_filter_virt_db;
59}
60
61#endif
62/*
63 * Local variables:
64 * c-basic-offset: 4
65 * c-file-style: "Stroustrup"
66 * indent-tabs-mode: nil
67 * End:
68 * vim: shiftwidth=4 tabstop=8 expandtab
69 */
70
void configure(const xmlNode *ptr, bool test_only, const char *path)
boost::shared_ptr< Frontend > FrontendPtr
void add_map_db2targets(std::string db, std::list< std::string > targets, std::string route)
void process(metaproxy_1::Package &package) const
void add_map_db2target(std::string db, std::string target, std::string route)
boost::scoped_ptr< Rep > m_p
boost::shared_ptr< Backend > BackendPtr
struct metaproxy_1_filter_struct metaproxy_1_filter_virt_db