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) Lumiera.org
5  2009, 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 
23 
32 #include "steam/asset/sequence.hpp"
33 
34 namespace steam {
35 namespace mobject {
36 namespace session {
37 
39  Binding::Binding (PSequence const& sequence_to_bind)
40  : boundSequence_(sequence_to_bind)
41  {
42  throwIfInvalid();
43  TODO ("what additionally to do when binding a sequence??");
44  }
45 
46 
47  bool
48  Binding::isValid() const
49  {
50  TODO ("self-check of a binding within the model");
51  return true;
52  // Ideas: - compare the bound sequence's channels with this binding's channel configuration
53  // - verify the virtual media, unless this biding is creating a top-level timeline
54  // - verify the bound sequence is based on a fork within the model
55  }
56 
57 
58 
59 
60 }}} // namespace steam::mobject::session
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:74
Structural building block of the session: a sequence of clips.
MObject in session to represent the top-level binding of a sequence.