2011-05-23 04:43:56 +02:00
|
|
|
/*
|
2011-05-23 05:46:40 +02:00
|
|
|
PLAY-SERVICE.hpp - interface: render- and playback control
|
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 play-service.hpp
|
|
|
|
|
** Player subsystem......
|
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_PLAY_PLAY_SERVICE_H
|
|
|
|
|
#define PROC_PLAY_PLAY_SERVICE_H
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
#include "lib/error.hpp"
|
2011-05-26 03:05:52 +02:00
|
|
|
#include "include/play-facade.h"
|
2011-06-13 20:07:30 +02:00
|
|
|
#include "common/interface-facade-link.hpp"
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
#include <boost/noncopyable.hpp>
|
2011-06-15 03:51:06 +02:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
2011-05-23 05:46:40 +02:00
|
|
|
//#include <string>
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace proc {
|
2011-05-28 01:46:06 +02:00
|
|
|
namespace play {
|
|
|
|
|
|
|
|
|
|
using std::string;
|
2011-06-13 20:07:30 +02:00
|
|
|
using lumiera::facade::InterfaceFacadeLink;
|
2011-05-28 01:46:06 +02:00
|
|
|
//using lumiera::Subsys;
|
|
|
|
|
//using lumiera::Display;
|
|
|
|
|
//using lumiera::DummyPlayer;
|
2011-06-15 03:51:06 +02:00
|
|
|
using boost::scoped_ptr;
|
2011-05-28 01:46:06 +02:00
|
|
|
|
2011-05-23 04:43:56 +02:00
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
// class DummyImageGenerator;
|
|
|
|
|
// class TickService;
|
2011-06-15 03:51:06 +02:00
|
|
|
class ProcessTable;
|
2011-05-28 01:46:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************
|
2011-06-15 03:51:06 +02:00
|
|
|
* Implementation access point: Player subsystem.
|
|
|
|
|
* The PlayService is the primary way for clients to
|
|
|
|
|
* get into using Lumiera's Play/Output Subsystem.
|
|
|
|
|
* It allows to \em perform a timeline or model object.
|
|
|
|
|
* Behind the scenes, this will create and outfit a
|
|
|
|
|
* PlayProcess, which is accessible through the
|
|
|
|
|
* Play::Controller returned as frontend/handle.
|
|
|
|
|
*
|
|
|
|
|
* @internal the PlayService is instantiated and owned
|
|
|
|
|
* by the OutputDirector, which acts as a central hub
|
|
|
|
|
* for the Player subsystem. Clients should always
|
|
|
|
|
* access this functionality through the
|
|
|
|
|
* lumiera::Play facade interface.
|
2011-05-28 01:46:06 +02:00
|
|
|
*/
|
|
|
|
|
class PlayService
|
2011-06-13 20:07:30 +02:00
|
|
|
: public lumiera::Play
|
|
|
|
|
, boost::noncopyable
|
2011-05-28 01:46:06 +02:00
|
|
|
{
|
2011-06-13 20:07:30 +02:00
|
|
|
InterfaceFacadeLink<lumiera::Play> facadeAccess_;
|
2011-06-15 03:51:06 +02:00
|
|
|
scoped_ptr<ProcessTable> pTable_;
|
2011-06-13 20:07:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Implementation: build a PlayProcess */
|
|
|
|
|
virtual Controller connect(ModelPorts, Output);
|
|
|
|
|
|
2011-05-28 01:46:06 +02:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
PlayService(); /////TODO Subsys::SigTerm terminationHandle);
|
|
|
|
|
|
2011-06-15 03:51:06 +02:00
|
|
|
~PlayService(); /////TODO notifyTermination_(&error_); }
|
2011-05-28 01:46:06 +02:00
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}} // namespace proc::play
|
2011-05-23 04:43:56 +02:00
|
|
|
#endif
|