2007-08-08 04:50:02 +02:00
|
|
|
/*
|
2015-05-30 22:09:26 +02:00
|
|
|
Fork - A grouping device within the Session.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-03-10 04:25:03 +01:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2008, Hermann Vosseler <Ichthyostega@web.de>
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2007-08-08 04:50:02 +02:00
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
2010-12-17 23:28:49 +01:00
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
2007-08-08 04:50:02 +02:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2007-08-08 04:50:02 +02:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2007-08-08 04:50:02 +02:00
|
|
|
* *****************************************************/
|
|
|
|
|
|
|
|
|
|
|
2016-11-03 18:22:31 +01:00
|
|
|
/** @file fork.cpp
|
2016-11-09 22:22:55 +01:00
|
|
|
** Implementation of the basic grouping device within the session ("Track" / "Media Bin")
|
|
|
|
|
** @todo WIP implementation of session core from 2010
|
|
|
|
|
** @todo as of 2016, this effort is considered stalled but basically valid
|
2016-11-03 18:20:10 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2018-11-15 23:42:43 +01:00
|
|
|
#include "steam/mobject/session/fork.hpp"
|
2007-08-08 04:50:02 +02:00
|
|
|
|
2007-08-09 18:51:47 +02:00
|
|
|
|
2018-11-15 23:55:13 +01:00
|
|
|
namespace steam {
|
2010-03-06 04:30:12 +01:00
|
|
|
namespace mobject {
|
|
|
|
|
namespace session {
|
|
|
|
|
|
2015-05-31 02:03:24 +02:00
|
|
|
/** create a new fork-MObject based on the given unique ID.
|
|
|
|
|
* While the fork is an MObject attached locally within the
|
|
|
|
|
* given Sequence, it referres to a globally known forkID,
|
|
|
|
|
* which is an Asset. These fork-IDs might be shared among
|
|
|
|
|
* several Sequences and can be used to refer to several
|
|
|
|
|
* scopes simultaneously.
|
2010-06-14 02:08:45 +02:00
|
|
|
*/
|
2015-05-31 02:03:24 +02:00
|
|
|
Fork::Fork (ForkID const& forkID)
|
2011-05-16 08:37:36 +02:00
|
|
|
: start_(Time::ZERO) //////////////////////////////////TODO something more inspired please
|
2015-05-31 02:03:24 +02:00
|
|
|
, id_(forkID)
|
2010-03-07 00:48:11 +01:00
|
|
|
{
|
|
|
|
|
throwIfInvalid();
|
|
|
|
|
}
|
2010-03-06 04:30:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
2015-05-31 02:03:24 +02:00
|
|
|
Fork::isValid() const
|
2010-03-06 04:30:12 +01:00
|
|
|
{
|
2015-05-31 02:03:24 +02:00
|
|
|
return bool(id_.isValid()); ////////TODO anything more to check 'for real'?
|
2010-03-06 04:30:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-11-15 23:55:13 +01:00
|
|
|
}}} // namespace steam::mobject::session
|