2011-05-23 04:43:56 +02:00
|
|
|
/*
|
2011-05-23 05:46:40 +02:00
|
|
|
ENGINE-SERVICE.hpp - primary service access point for using the renderengine
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
Copyright (C) Lumiera.org
|
2011-05-23 05:46:40 +02:00
|
|
|
2011, Hermann Vosseler <Ichthyostega@web.de>
|
2011-05-23 04:43:56 +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
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
/** @file engine-service.hpp
|
|
|
|
|
** A public service provided by
|
2011-05-23 04:43:56 +02:00
|
|
|
**
|
|
|
|
|
** @see lumiera::DummyPlayer
|
|
|
|
|
** @see gui::PlaybackController usage example
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
#ifndef PROC_ENGINE_ENGINE_SERVICE_H
|
|
|
|
|
#define PROC_ENGINE_ENGINE_SERVICE_H
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
//#include "include/dummy-player-facade.h"
|
|
|
|
|
//#include "include/display-facade.h"
|
|
|
|
|
//#include "common/instancehandle.hpp"
|
|
|
|
|
//#include "lib/singleton-ref.hpp"
|
|
|
|
|
//
|
2011-05-28 01:46:06 +02:00
|
|
|
#include <boost/noncopyable.hpp>
|
2011-05-23 05:46:40 +02:00
|
|
|
//#include <boost/scoped_ptr.hpp>
|
|
|
|
|
//#include <string>
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace proc {
|
2011-05-23 05:46:40 +02:00
|
|
|
namespace play {
|
2011-05-23 04:43:56 +02:00
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
// using std::string;
|
|
|
|
|
// using lumiera::Subsys;
|
|
|
|
|
// using lumiera::Display;
|
|
|
|
|
// using lumiera::DummyPlayer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************
|
|
|
|
|
* Actual implementation of the DummyPlayer service.
|
|
|
|
|
* Creating an instance of this class automatically
|
|
|
|
|
* registers the interface lumieraorg_DummyPlayer with
|
|
|
|
|
* the Lumiera Interface/Plugin system and creates
|
|
|
|
|
* a forwarding proxy within the application core to
|
|
|
|
|
* route calls through this interface.
|
|
|
|
|
*/
|
|
|
|
|
class EngineService
|
|
|
|
|
: boost::noncopyable
|
|
|
|
|
{
|
|
|
|
|
|
2011-05-28 01:46:06 +02:00
|
|
|
// string error_;
|
|
|
|
|
// Subsys::SigTerm notifyTermination_;
|
2011-05-23 05:46:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* === Interface Lifecycle === */
|
|
|
|
|
|
2011-05-28 01:46:06 +02:00
|
|
|
// typedef lumiera::InstanceHandle< LUMIERA_INTERFACE_INAME(lumieraorg_DummyPlayer, 0)
|
|
|
|
|
// , DummyPlayer
|
|
|
|
|
// > ServiceInstanceHandle;
|
2011-05-23 05:46:40 +02:00
|
|
|
|
2011-05-28 01:46:06 +02:00
|
|
|
// lib::SingletonRef<DummyPlayerService> implInstance_;
|
|
|
|
|
// ServiceInstanceHandle serviceInstance_;
|
2011-05-23 05:46:40 +02:00
|
|
|
|
|
|
|
|
public:
|
2011-05-28 01:46:06 +02:00
|
|
|
EngineService(); /////TODO (Subsys::SigTerm terminationHandle);
|
2011-05-23 05:46:40 +02:00
|
|
|
|
2011-05-28 01:46:06 +02:00
|
|
|
~EngineService() { } /////TODO notifyTermination_(&error_); }
|
2011-05-23 05:46:40 +02:00
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace play
|
2011-05-23 04:43:56 +02:00
|
|
|
} // namespace proc
|
|
|
|
|
#endif
|