LUMIERA.clone/src/vault/enginefacade.cpp
Ichthyostega bcd2b3d632 PlaybackVerticalSlice: design analysis for Frame Dispatcher and Scheduler
- decision: the Monad-style iteration framework will be abandoned
- the job-planning will be recast in terms of the iter-tree-explorer
- job-planning and frame dispatch will be disentangled
- the Scheduler will deliberately offer a high-level interface
- on this high-level, Scheduler will support dependency management
- the low-level implementation of the Scheduler will be based on Activity verbs
2023-04-14 04:43:39 +02:00

97 lines
2.5 KiB
C++

/*
EngineFacade - access point for communicating with the render engine
Copyright (C) Lumiera.org
2008, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
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.
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.
* *****************************************************/
/** @file enginefacade.cpp
** Subsystem descriptor and configuration for the render engine.
** This is the implementation part to manage render engine lifecycle
** as a Subsystem of the whole application.
**
** @todo placeholder/draft as of 1/2017
** @warning as of 4/2023 Render-Engine integration work is underway ////////////////////////////////////////TICKET #1280
** @see main.cpp
**
*/
#include "vault/enginefacade.hpp"
#include "lib/depend.hpp"
#include <string>
namespace vault {
using std::string;
using lumiera::Subsys;
class EngineSubsysDescriptor
: public Subsys
{
operator string () const { return "Engine"; }
bool
shouldStart (lumiera::Option&) override
{
TODO ("determine, if renderengine should be started");
return false;
}
bool
start (lumiera::Option&, Subsys::SigTerm termination) override
{
UNIMPLEMENTED ("pull up renderengine and register shutdown hook");
return false;
}
void
triggerShutdown () noexcept override
{
UNIMPLEMENTED ("initiate halting the engine");
}
bool
checkRunningState () noexcept override
{
//Lock guard (*this);
TODO ("implement detecting running state");
return false;
}
};
namespace {
lib::Depend<EngineSubsysDescriptor> theDescriptor;
}
/** @internal intended for use by main(). */
Subsys&
EngineFacade::getDescriptor()
{
return theDescriptor();
}
} // namespace vault