Lumiera  0.pre.03
»edit your freedom«
test-scope-invalid.hpp
Go to the documentation of this file.
1 /*
2  TEST-SCOPE-INVALID.hpp - helper for placement scope and scope stack tests
3 
4  Copyright (C) Lumiera.org
5  2010, 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 
29 #ifndef MOBJECT_SESSION_TEST_SCOPE_INVALID_H
30 #define MOBJECT_SESSION_TEST_SCOPE_INVALID_H
31 
32 
35 
36 
37 
38 namespace steam {
39 namespace mobject {
40 namespace session {
41 namespace test {
42 
43 
44  namespace { // nifty subversive test helper...
45 
46  Scope const&
48  {
54  struct Ambush
55  {
58  PlacementMO::ID derailed_;
59  };
60 
61  static Ambush _shady_scope_;
62  return *reinterpret_cast<Scope*> (&_shady_scope_);
63  }
64  }
65 
66 
67 
68 }}}} // namespace steam::mobject::session::test
69 #endif
Definition: run.hpp:49
Core abstraction: placement of a media object into session context.
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:74
A Placement scope within the high-level-model.
Definition: scope.hpp:78