LUMIERA.clone/src/proc/facade.hpp

82 lines
2.6 KiB
C++
Raw Normal View History

/*
FACADE.hpp - access point for communicating with the Proc-Interface
2010-12-17 23:28:49 +01:00
Copyright (C) Lumiera.org
2008, Hermann Vosseler <Ichthyostega@web.de>
2010-12-17 23:28:49 +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.
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
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
*/
/** @file facade.hpp
** Top level entrance point and facade for the Proc-Layer.
** The middle layer of the application holds a session with the
** high-level model, to be translated by the Builder into a node network,
** which can be \em performed by the Engine to render output.
**
** @see common.hpp
**
*/
#ifndef PROC_INTERFACE_FACADE_H
#define PROC_INTERFACE_FACADE_H
#include "common/subsys.hpp"
namespace proc {
/*****************************************************************//**
* Global access point for the services implemented by the Proc-Layer.
*
* @todo this is a dummy placeholder as of 1/2009. Currently, there
* is only implementation-level code within the Proc-Layer and
* the interfaces need to be worked out.
2011-05-24 03:48:49 +02:00
* @note at least the Play/Output subsystem slowly turns into
* something real, as of 6/2011
*
*/
struct Facade
{
/** provide a descriptor for lumiera::AppState,
* wired accordingly to allow `main()` to boot
* the support infrastructure for loading of
* and working on the editing session. */
static lumiera::Subsys& getSessionDescriptor();
2011-05-24 03:48:49 +02:00
/** provide a descriptor for lumiera::AppState,
* wired accordingly to allow `main()` to bring up
* the render / playback coordination and
2011-05-24 03:48:49 +02:00
* output management subsystem. */
static lumiera::Subsys& getPlayOutDescriptor();
//////////////////TODO: define the global access interfaces for the Proc-Layer
//////////////////TODO: provide a function for accessing this interface
//////////////////TODO: register similar proxy/facade interfaces for the GUI
};
} // namespace proc
#endif