2008-01-18 16:43:53 +01:00
|
|
|
/*
|
2012-12-01 08:44:07 +01:00
|
|
|
CONFIG-RESOLVER.hpp - concrete setup for rule based configuration
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-03-10 08:38:59 +01:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2008, Hermann Vosseler <Ichthyostega@web.de>
|
2012-12-01 08:44:07 +01:00
|
|
|
2012
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-01-18 16:43:53 +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-01-18 16:43:53 +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-01-18 16:43:53 +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-01-18 16:43:53 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2012-12-01 08:44:07 +01:00
|
|
|
/** @file config-resolver.hpp
|
|
|
|
|
** Definition of the concrete frontend for rule based configuration within the session.
|
|
|
|
|
**
|
2012-12-25 01:16:19 +01:00
|
|
|
** @remarks This code will act as a hub to pull in, instrument and activate a lot of further code.
|
2018-11-15 23:59:23 +01:00
|
|
|
** All the types mentioned in the steam::InterfaceTypes typelist will be prepared to be used
|
2012-12-25 01:16:19 +01:00
|
|
|
** in rules based setup and configuration; this definition will drive the generation of
|
|
|
|
|
** all the necessary bindings and registration entries to make this work. This is in
|
2017-04-02 04:22:51 +02:00
|
|
|
** accordance with the principle of *generic programming*: Instead of making things
|
2012-12-25 01:16:19 +01:00
|
|
|
** uniform, we use related things in a similar manner.
|
2012-12-01 08:44:07 +01:00
|
|
|
** @note this is placeholder code using a preliminary/mock implementation... don't take this code too literal!
|
2010-10-25 06:08:36 +02:00
|
|
|
** @todo clarify the relation of config query and query-for-defaults ///////////////TICKET #705
|
2012-12-01 08:44:07 +01:00
|
|
|
**
|
2008-03-10 08:38:59 +01:00
|
|
|
** @see lumiera::Query
|
2008-01-18 16:43:53 +01:00
|
|
|
** @see mobject::session::DefsManager
|
|
|
|
|
** @see asset::StructFactory
|
2010-02-28 07:17:12 +01:00
|
|
|
** @see fake-configrules.hpp currently used dummy-implementation
|
2012-11-26 01:22:01 +01:00
|
|
|
** @see
|
2008-01-18 16:43:53 +01:00
|
|
|
**
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2018-11-15 23:52:02 +01:00
|
|
|
#ifndef STEAM_CONFIG_RESOLVER
|
|
|
|
|
#define STEAM_CONFIG_RESOLVER
|
2008-01-18 16:43:53 +01:00
|
|
|
|
2012-12-01 08:44:07 +01:00
|
|
|
#include "common/query.hpp"
|
|
|
|
|
#include "common/config-rules.hpp"
|
2013-10-20 03:19:36 +02:00
|
|
|
#include "lib/depend.hpp"
|
2008-01-21 02:57:09 +01:00
|
|
|
|
2012-12-01 08:44:07 +01:00
|
|
|
// types for explicit specialisations....
|
2018-11-15 23:42:43 +01:00
|
|
|
#include "steam/mobject/session/fork.hpp"
|
|
|
|
|
#include "steam/asset/procpatt.hpp"
|
|
|
|
|
#include "steam/asset/pipe.hpp"
|
|
|
|
|
#include "steam/asset/timeline.hpp"
|
|
|
|
|
#include "steam/asset/sequence.hpp"
|
2008-01-18 16:43:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-11-15 23:55:13 +01:00
|
|
|
namespace steam {
|
2008-01-21 02:57:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ============= global configuration ==================== */
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* the list of all concrete types participating in the
|
|
|
|
|
* rule based config query system
|
|
|
|
|
*/
|
2018-11-15 23:59:23 +01:00
|
|
|
typedef lib::meta::Types < steam::mobject::session::Fork
|
|
|
|
|
, steam::asset::Pipe
|
|
|
|
|
, const steam::asset::ProcPatt
|
|
|
|
|
, steam::asset::Timeline
|
|
|
|
|
, steam::asset::Sequence
|
2011-12-03 02:56:50 +01:00
|
|
|
> ::List
|
|
|
|
|
InterfaceTypes;
|
2008-01-21 02:57:09 +01:00
|
|
|
|
2008-02-01 15:35:33 +01:00
|
|
|
/**
|
|
|
|
|
* user-visible Interface to the ConfigRules subsystem.
|
|
|
|
|
* Configured as Singleton (with hidden Implementation class)
|
|
|
|
|
*/
|
2012-12-01 08:44:07 +01:00
|
|
|
class ConfigResolver
|
|
|
|
|
: public lumiera::query::ConfigRules<InterfaceTypes>
|
2008-02-01 15:35:33 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
2013-10-20 03:19:36 +02:00
|
|
|
static lib::Depend<ConfigResolver> instance;
|
2008-02-01 15:35:33 +01:00
|
|
|
|
|
|
|
|
};
|
2008-01-21 02:57:09 +01:00
|
|
|
|
|
|
|
|
|
2018-11-15 23:55:13 +01:00
|
|
|
} // namespace steam
|
2008-01-18 16:43:53 +01:00
|
|
|
#endif
|