2008-11-05 05:03:03 +01:00
|
|
|
/*
|
|
|
|
|
Segementation - Partitioning of a timeline for organising the render graph.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-11-05 05:03:03 +01:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2008, Hermann Vosseler <Ichthyostega@web.de>
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-11-05 05:03:03 +01: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.
|
|
|
|
|
|
2008-11-05 05:03:03 +01: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
|
|
|
|
2008-11-05 05:03:03 +01: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
|
|
|
|
2008-11-05 05:03:03 +01:00
|
|
|
* *****************************************************/
|
|
|
|
|
|
2016-11-03 18:20:10 +01:00
|
|
|
|
2016-11-03 18:22:31 +01:00
|
|
|
/** @file segmentation.cpp
|
2016-11-09 22:22:55 +01:00
|
|
|
** @todo stalled effort towards a session implementation from 2008
|
|
|
|
|
** @todo 2016 likely to stay, but expect some extensive rework
|
2016-11-03 18:20:10 +01:00
|
|
|
*/
|
|
|
|
|
|
2017-04-02 04:22:51 +02:00
|
|
|
#include "lib/error.hpp"
|
2018-11-15 23:42:43 +01:00
|
|
|
#include "steam/mobject/session/segmentation.hpp"
|
|
|
|
|
#include "steam/mobject/builder/fixture-change-detector.hpp"
|
2008-11-05 05:03:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-02 16:10:03 +01:00
|
|
|
namespace proc {
|
2008-11-05 05:03:03 +01:00
|
|
|
namespace mobject {
|
2011-12-02 16:10:03 +01:00
|
|
|
namespace session {
|
|
|
|
|
|
2017-04-02 04:22:51 +02:00
|
|
|
namespace error = lumiera::error;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// typedef ModelPortRegistry::ModelPortDescriptor const& MPDescriptor;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** storage for the link to the global
|
|
|
|
|
Registry instance currently in charge */
|
|
|
|
|
// lib::OptionalRef<ModelPortRegistry> ModelPortRegistry::theGlobalRegistry;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** access the globally valid registry instance.
|
|
|
|
|
* @throw error::State if this global registry is
|
|
|
|
|
* already closed or not yet initialised. */
|
|
|
|
|
//ModelPortRegistry&
|
|
|
|
|
//ModelPortRegistry::globalInstance()
|
|
|
|
|
//{
|
|
|
|
|
// LockRegistry global_lock;
|
|
|
|
|
// if (theGlobalRegistry.isValid())
|
|
|
|
|
// return theGlobalRegistry();
|
|
|
|
|
//
|
|
|
|
|
// throw error::State ("global model port registry is not accessible"
|
2018-04-02 01:48:51 +02:00
|
|
|
// , LERR_(BUILDER_LIFECYCLE));
|
2017-04-02 04:22:51 +02:00
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-02 16:10:03 +01:00
|
|
|
/** */
|
2017-04-02 04:22:51 +02:00
|
|
|
// bool
|
|
|
|
|
// ModelPortRegistry::contains (ID<Pipe> key) const
|
|
|
|
|
// {
|
|
|
|
|
// return bool(key)
|
|
|
|
|
// && util::contains (transaction_, key);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//LUMIERA_ERROR_DEFINE (DUPLICATE_MODEL_PORT, "Attempt to define a new model port with an pipe-ID already denoting an existing port");
|
2011-12-02 16:10:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}}} // namespace proc::mobject::session
|