Lumiera  0.pre.03
»edit your freedom«
test-scopes.hpp
Go to the documentation of this file.
1 /*
2  TEST-SCOPES.hpp - builds a test PlacementIndex containing dummy Placements as nested scopes
3 
4  Copyright (C) Lumiera.org
5  2009, 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 
31 #ifndef MOBJECT_SESSION_TEST_TEST_SCOPES_H
32 #define MOBJECT_SESSION_TEST_TEST_SCOPES_H
33 
34 
39 
40 #include <memory>
41 
42 
43 namespace steam {
44 namespace mobject {
45 namespace session {
46 namespace test {
47 
48  using namespace mobject::test;
49  typedef TestPlacement<DummyMO> PDum;
50 
51  typedef std::shared_ptr<PlacementIndex> PPIdx;
52  typedef ScopeQuery<MObject>::iterator _ScopeIterMO;
53 
54 
55 
66  PPIdx build_testScopes();
67 
68 
73 
74  PlacementMO& retrieve_firstTestSubMO21();
75 
76 
81  _ScopeIterMO explore_testScope (PlacementMO const& scopeTop);
82 
83 
84 
85 }}}} // namespace steam::mobject::session::test
86 #endif
Definition: run.hpp:49
Core abstraction: placement of a media object into session context.
PPIdx build_testScopes()
helper for tests: create a pseudo-session (actually just a PlacementIndex), which contains some neste...
Definition: test-scopes.cpp:47
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:74
PlacementMO & retrieve_startElm()
complement to the helper: retrieve one of the dummy placements which is a Placement<> and way down in...
Definition: test-scopes.cpp:96
ScopeQuery< MObject >::iterator explore_testScope(PlacementMO const &scopeTop)
shortcut to explore the contents of a scope within the current index.
Core of the session implementation datastructure.
Placement< MObject > PlacementMO
Definition: placement.hpp:269
A hierarchy of simple dummy-Media-Objects for easy unit testing.
Specific queries to explore contents of a scope within the high-level model.