1 /* $Id: filter_session_shared.hpp,v 1.10 2007-05-09 21:23:09 adam Exp $
2 Copyright (c) 2005-2007, Index Data.
4 This file is part of Metaproxy.
6 Metaproxy is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
11 Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with Metaproxy; see the file LICENSE. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef FILTER_SESSION_SHARED_HPP
23 #define FILTER_SESSION_SHARED_HPP
25 #include <boost/scoped_ptr.hpp>
31 namespace metaproxy_1 {
33 class SessionShared : public Base {
42 class BackendInstance;
43 typedef boost::shared_ptr<Frontend> FrontendPtr;
44 typedef boost::shared_ptr<BackendClass> BackendClassPtr;
45 typedef boost::shared_ptr<BackendInstance> BackendInstancePtr;
46 typedef boost::shared_ptr<BackendSet> BackendSetPtr;
47 typedef boost::shared_ptr<FrontendSet> FrontendSetPtr;
48 typedef std::list<std::string> Databases;
50 typedef std::list<BackendInstancePtr> BackendInstanceList;
51 typedef std::map<InitKey, BackendClassPtr> BackendClassMap;
52 typedef std::list<BackendSetPtr> BackendSetList;
53 typedef std::map<std::string, FrontendSetPtr> FrontendSets;
57 void process(metaproxy_1::Package & package) const;
58 void configure(const xmlNode * ptr);
60 boost::scoped_ptr<Rep> m_p;
66 extern struct metaproxy_1_filter_struct metaproxy_1_filter_session_shared;
73 * indent-tabs-mode: nil
74 * c-file-style: "stroustrup"
76 * vim: shiftwidth=4 tabstop=8 expandtab