Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
testclip.hpp
Go to the documentation of this file.
1/*
2 TESTCLIP.hpp - test clip (stub) for checking Model/Session functionality
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#ifndef MOBJECT_SESSION_TESTCLIP_H
20#define MOBJECT_SESSION_TESTCLIP_H
21
22
25
26
27
28using std::shared_ptr;
29using std::string;
30
31
32namespace steam {
33namespace mobject {
34namespace session {
35namespace test {
36
37
38 class TestPlacement;
39
47 {
48
49 TestClip ();
50 static void deleter (MObject* mo) { delete (TestClip*)mo; }
51
52 friend class TestPlacement;
53
54 public:
55 static Placement<Clip> create () ;
56 };
57
58
59 class TestPlacement : public Placement<Clip>
60 {
61
62 public:
64 : Placement<Clip> (subject, &TestClip::deleter)
65 { }
66 };
67
68
69 inline Placement<Clip>
71 {
72 return TestPlacement (*new TestClip);
73 }
74
75
76 /* == some test data to check == */
78
79
80}}}} // namespace steam::mobject::session::test
81#endif
Duration is the internal Lumiera time metric.
MObject is the interface class for all "Media Objects".
Definition mobject.hpp:72
A refcounting Handle to an MObject of type MO, used to constrain or explicitly specify the location w...
A user visible/editable Clip is a reference to a contiguous sequence of media data loaded as Asset in...
Sample or Test Clip for checking various model, session and builder operations.
Definition testclip.hpp:47
static Placement< Clip > create()
Definition testclip.hpp:70
static void deleter(MObject *mo)
Definition testclip.hpp:50
MObject in the Session to represent a clip on the timeline.
const Duration LENGTH_TestClip(Time(0, 25, 0, 0))
Definition testclip.hpp:77
Namespace of Session and user visible high-level objects.
Definition sequence.hpp:65
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
a family of time value like entities and their relationships.