Lumiera  0.pre.03
»edit your freedom«
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 
24 #include "lib/time/timevalue.hpp"
25 
26 
27 
28 using std::shared_ptr;
29 using std::string;
30 
31 
32 namespace steam {
33 namespace mobject {
34 namespace session {
35 namespace 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:
63  TestPlacement (TestClip & subject)
64  : Placement<Clip> (subject, &TestClip::deleter)
65  { }
66  };
67 
68 
69  inline Placement<Clip>
70  TestClip::create()
71  {
72  return TestPlacement (*new TestClip);
73  }
74 
75 
76  /* == some test data to check == */
77  extern const lib::time::Duration LENGTH_TestClip;
78 
79 
80 }}}} // namespace steam::mobject::session::test
81 #endif
Definition: run.hpp:40
MObject in the Session to represent a clip on the timeline.
A user visible/editable Clip is a reference to a contiguous sequence of media data loaded as Asset in...
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:65
MObject is the interface class for all "Media Objects".
Definition: mobject.hpp:70
Duration is the internal Lumiera time metric.
Definition: timevalue.hpp:468
Sample or Test Clip for checking various model, session and builder operations.
Definition: testclip.hpp:46
a family of time value like entities and their relationships.