2007-08-08 04:50:02 +02:00
|
|
|
/*
|
2007-10-19 06:39:52 +02:00
|
|
|
MOBJECTFACTORY.hpp - creating concrete MObject subclass instances
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-03-10 04:25:03 +01:00
|
|
|
Copyright (C) Lumiera.org
|
2011-02-05 20:56:51 +01:00
|
|
|
2008, 2010, 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-10-19 06:39:52 +02:00
|
|
|
*/
|
2007-08-08 04:50:02 +02:00
|
|
|
|
|
|
|
|
|
2016-11-03 18:22:31 +01:00
|
|
|
/** @file mobjectfactory.hpp
|
|
|
|
|
** TODO mobjectfactory.hpp
|
2016-11-03 18:20:10 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2011-12-02 16:10:03 +01:00
|
|
|
#ifndef PROC_MOBJECT_SESSION_MOBJECTFACTORY_H
|
|
|
|
|
#define PROC_MOBJECT_SESSION_MOBJECTFACTORY_H
|
2007-10-19 06:39:52 +02:00
|
|
|
|
|
|
|
|
#include "proc/mobject/mobject.hpp"
|
2015-07-02 19:24:44 +02:00
|
|
|
#include "lib/idi/entry-id.hpp"
|
2009-12-17 03:14:59 +01:00
|
|
|
#include "lib/symbol.hpp"
|
2007-10-19 06:39:52 +02:00
|
|
|
|
|
|
|
|
|
2012-12-01 08:44:07 +01:00
|
|
|
namespace lumiera {
|
|
|
|
|
namespace query {
|
|
|
|
|
class DefsManager;
|
|
|
|
|
}}
|
2007-10-19 06:39:52 +02:00
|
|
|
|
2011-12-02 16:10:03 +01:00
|
|
|
namespace proc {
|
2008-05-27 07:22:27 +02:00
|
|
|
namespace asset {
|
2010-03-03 06:00:37 +01:00
|
|
|
|
2007-10-19 06:39:52 +02:00
|
|
|
class Clip;
|
2007-11-14 10:10:52 +01:00
|
|
|
class Media;
|
2007-10-19 06:39:52 +02:00
|
|
|
class Effect;
|
2010-03-21 05:25:52 +01:00
|
|
|
class Sequence;
|
2007-10-19 22:34:07 +02:00
|
|
|
|
2015-07-02 19:16:46 +02:00
|
|
|
typedef lib::P<Sequence> PSequence;
|
2010-03-27 16:26:22 +01:00
|
|
|
|
2007-10-19 06:39:52 +02:00
|
|
|
}
|
2007-08-08 04:50:02 +02:00
|
|
|
|
2008-05-27 07:22:27 +02:00
|
|
|
namespace mobject {
|
2010-03-03 06:00:37 +01:00
|
|
|
namespace session {
|
|
|
|
|
|
|
|
|
|
class Root;
|
|
|
|
|
class Clip;
|
2015-05-31 02:03:24 +02:00
|
|
|
class Fork;
|
2010-03-03 06:00:37 +01:00
|
|
|
class Effect;
|
|
|
|
|
class Label;
|
2010-03-27 16:26:22 +01:00
|
|
|
class Binding;
|
2010-03-03 06:00:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MObjectFactory
|
|
|
|
|
{
|
|
|
|
|
/** custom deleter function allowing
|
|
|
|
|
* Placement to take ownership of MObjct instances
|
|
|
|
|
*/
|
|
|
|
|
static void deleterFunc (MObject* o) { delete o; }
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
2012-12-01 08:44:07 +01:00
|
|
|
Placement<Root> operator() (lumiera::query::DefsManager&);
|
2010-03-03 06:00:37 +01:00
|
|
|
Placement<Clip> operator() (asset::Clip const&, asset::Media const&);
|
|
|
|
|
Placement<Clip> operator() (asset::Clip const&, vector<asset::Media const*>);
|
2015-07-02 19:13:50 +02:00
|
|
|
Placement<Fork> operator() (lib::idi::EntryID<Fork> const&);
|
2010-03-03 06:00:37 +01:00
|
|
|
Placement<Effect> operator() (asset::Effect const&);
|
|
|
|
|
Placement<Label> operator() (lib::Symbol);
|
2010-03-28 05:14:57 +02:00
|
|
|
Placement<Binding>operator() (asset::PSequence const&);
|
2010-03-03 06:00:37 +01:00
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////TICKET #414
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-02 16:10:03 +01:00
|
|
|
}}} // namespace proc::mobject::session
|
2007-10-19 06:39:52 +02:00
|
|
|
#endif
|