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) Lumiera.org
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
28 #ifndef MOBJECT_SESSION_TESTCLIP_H
29 #define MOBJECT_SESSION_TESTCLIP_H
30 
31 
33 #include "lib/time/timevalue.hpp"
34 
35 
36 
37 using std::shared_ptr;
38 using std::string;
39 
40 
41 namespace steam {
42 namespace mobject {
43 namespace session {
44 namespace test {
45 
46 
47  class TestPlacement;
48 
56  {
57 
58  TestClip ();
59  static void deleter (MObject* mo) { delete (TestClip*)mo; }
60 
61  friend class TestPlacement;
62 
63  public:
64  static Placement<Clip> create () ;
65  };
66 
67 
68  class TestPlacement : public Placement<Clip>
69  {
70 
71  public:
72  TestPlacement (TestClip & subject)
73  : Placement<Clip> (subject, &TestClip::deleter)
74  { }
75  };
76 
77 
78  inline Placement<Clip>
79  TestClip::create()
80  {
81  return TestPlacement (*new TestClip);
82  }
83 
84 
85  /* == some test data to check == */
86  extern const lib::time::Duration LENGTH_TestClip;
87 
88 
89 }}}} // namespace steam::mobject::session::test
90 #endif
Definition: run.hpp:49
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:74
MObject is the interface class for all "Media Objects".
Definition: mobject.hpp:79
Duration is the internal Lumiera time metric.
Definition: timevalue.hpp:477
Sample or Test Clip for checking various model, session and builder operations.
Definition: testclip.hpp:55
a family of time value like entities and their relationships.