Lumiera  0.pre.03
»edityourfreedom«
proc/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 "proc/asset/sequence.hpp"
33 
34 namespace proc {
35 namespace mobject {
36 namespace session {
37 
39  Binding::Binding (PSequence const& sequence_to_bind)
40  : boundSequence_(sequence_to_bind)
41  {
43  TODO ("what additionally to do when binding a sequence??");
44  }
45 
46 
47  bool
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 proc::mobject::session
Structural building block of the session: a sequence of clips.
bool isValid() const
MObject self-test (usable for asserting)
Binding(PSequence const &sequence_to_bind)
lib::P< Sequence > PSequence
Namespace of Session and user visible high-level objects.
Proc-Layer implementation namespace root.
Definition: id-scheme.hpp:63