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)
5  2009, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 */
13 
22 #ifndef MOBJECT_SESSION_TEST_TEST_SCOPES_H
23 #define MOBJECT_SESSION_TEST_TEST_SCOPES_H
24 
25 
30 
31 #include <memory>
32 
33 
34 namespace steam {
35 namespace mobject {
36 namespace session {
37 namespace test {
38 
39  using namespace mobject::test;
40  typedef TestPlacement<DummyMO> PDum;
41 
42  typedef std::shared_ptr<PlacementIndex> PPIdx;
43  typedef ScopeQuery<MObject>::iterator _ScopeIterMO;
44 
45 
46 
57  PPIdx build_testScopes();
58 
59 
64 
65  PlacementMO& retrieve_firstTestSubMO21();
66 
67 
72  _ScopeIterMO explore_testScope (PlacementMO const& scopeTop);
73 
74 
75 
76 }}}} // namespace steam::mobject::session::test
77 #endif
Definition: run.hpp:40
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:38
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:65
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:87
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:260
A hierarchy of simple dummy-Media-Objects for easy unit testing.
Specific queries to explore contents of a scope within the high-level model.