Lumiera  0.pre.03
»edit your freedom«
steam/mobject/session/binding.cpp
Go to the documentation of this file.
1 /*
2  Binding - link to use a sequence within the session
3 
4  Copyright (C)
5  2009, 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 
14 
23 #include "steam/asset/sequence.hpp"
24 
25 namespace steam {
26 namespace mobject {
27 namespace session {
28 
30  Binding::Binding (PSequence const& sequence_to_bind)
31  : boundSequence_(sequence_to_bind)
32  {
33  throwIfInvalid();
34  TODO ("what additionally to do when binding a sequence??");
35  }
36 
37 
38  bool
39  Binding::isValid() const
40  {
41  TODO ("self-check of a binding within the model");
42  return true;
43  // Ideas: - compare the bound sequence's channels with this binding's channel configuration
44  // - verify the virtual media, unless this biding is creating a top-level timeline
45  // - verify the bound sequence is based on a fork within the model
46  }
47 
48 
49 
50 
51 }}} // namespace steam::mobject::session
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:65
Structural building block of the session: a sequence of clips.
MObject in session to represent the top-level binding of a sequence.