Lumiera  0.pre.03
»edit your freedom«
session-services.hpp
Go to the documentation of this file.
1 /*
2  SESSION-SERVICES.hpp - accessing Steam-Layer internal session implementation services
3 
4  Copyright (C) Lumiera.org
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
76 #ifndef MOBJECT_SESSION_SESSION_SERVICES_H
77 #define MOBJECT_SESSION_SESSION_SERVICES_H
78 
80 #include "lib/meta/generator.hpp"
81 
82 
83 
84 
85 namespace steam {
86 namespace mobject {
87 namespace session {
88 
90  using lib::meta::Types;
91 
92 
101  template<class API, class IMPL>
103 
104 
116  template< typename APIS
117  , class FRONT
118  , class SESS
119  >
121  : public InstantiateChained< typename APIS::List // for each of the API types...
122  , ServiceAccessPoint // instantiate a service implementation
123  , SESS // and stack all these on top of SessionImpl
124  >
125  {
126  public:
127  static FRONT& current;
128 
134  template<class API>
135  API& get() { return *this; }
136  };
137 
138 
139 
140 }}} // namespace steam::mobject::session
141 #endif
Collection of configured implementation-level services to provide by the Session. ...
static FRONT & current
intended to be hard-wired to SessManagerImpl singleton
Access point to a single implementation-level API.
Helpers for working with lib::meta::Types (i.e.
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:74
Build a single inheritance chain of template instantiations.
Definition: generator.hpp:129
Primary Interface to the current Session.