Lumiera  0.pre.03
»edit your freedom«
deletecliptest.cpp
Go to the documentation of this file.
1 /*
2  DeleteClip(Test) - removing an Clip-MObject from the Session
3 
4  Copyright (C)
5  2008, 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 
19 #include "lib/test/run.hpp"
20 #include "steam/assetmanager.hpp"
23 #include "steam/mobject/session/clip.hpp" // TODO: really neded?
24 #include "lib/format-cout.hpp"
25 //#include "lib/util.hpp"
26 
27 
28 //using std::string;
29 using std::dynamic_pointer_cast;
30 
32 using proc_interface::PAsset;
33 using proc_interface::IDA;
34 
35 
36 
37 namespace steam {
38 namespace mobject {
39 namespace session {
40 namespace test {
41 
42 
43 
44 
45  /***************************************************************/
52  class DeleteClip_test : public Test
53  {
54  virtual void
55  run (Arg)
56  {
58  PSess sess = Session::current;
60 
61  UNIMPLEMENTED("typesafe searching for MObjects in the Session");
62 
63 
64 #if false
65 
66  PClipMO clipPlacement = sess->currEDL().find(SESSION1_CLIP);
67  // global Var assigned in buildTestsession1()
68  PMedia media = clipPlacement->getMedia();
69  IDA clipAID = media->getID();
70  CHECK (clipPlacement);
71 
72  sess->remove (clipPlacement);
73 
74  CHECK (!sess->currEDL().find(SESSION1_CLIP)); // Session forgot the Clip/Placement
75  CHECK (!aMang.known (clipAID)); // corresponding Clip Asset has disappeared
76  CHECK (!clipPlacement->getMedia()); // internal cross-links removed
77 #endif
78  }
79  };
80 
81 
83  LAUNCHER (DeleteClip_test, "function session");
84 
85 
86 
87 }}}} // namespace steam::mobject::session::test
Steam-Layer Interface: Asset Lookup and Organisation.
Automatically use custom string conversion in C++ stream output.
Definition: run.hpp:40
MObject in the Session to represent a clip on the timeline.
Facade for the Asset subsystem.
static session::SessManager & current
access point to the current Session
Definition: session.hpp:120
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:65
static lib::Depend< AssetManager > instance
get at the system-wide asset manager instance.
void buildTestsession1()
Create a Test Session configuration usable for various Tests.
Simplistic test class runner.
creation, access and Session lifecycle Interface.
Definition: session.hpp:152
Dummy session content prepared for unit test.
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition: trait.hpp:71
Primary Interface to the current Session.