Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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"
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;
29using std::dynamic_pointer_cast;
30
32using proc_interface::PAsset;
33using proc_interface::IDA;
34
35
36
37namespace steam {
38namespace mobject {
39namespace session {
40namespace test {
41
42
43
44
45 /***************************************************************/
52 class DeleteClip_test : public Test
53 {
54 virtual void
55 run (Arg)
56 {
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.
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition p.hpp:77
Facade for the Asset subsystem.
static lib::Depend< AssetManager > instance
get at the system-wide asset manager instance.
static session::SessManager & current
access point to the current Session
Definition session.hpp:120
creation, access and Session lifecycle Interface.
Definition session.hpp:154
Automatically use custom string conversion in C++ stream output.
MObject in the Session to represent a clip on the timeline.
Namespace of Session and user visible high-level objects.
Definition sequence.hpp:65
const string SESSION1_CLIP("TODO: some sensible way to refer to a clip")
void buildTestsession1()
Create a Test Session configuration usable for various Tests.
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Definition run.hpp:116
Primary Interface to the current Session.
Dummy session content prepared for unit test.