2011-05-23 04:43:56 +02:00
|
|
|
/*
|
2011-05-23 05:46:40 +02:00
|
|
|
OUTPUT-MANAGER.hpp - handling all the real external output connections
|
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 output-manager.hpp
|
|
|
|
|
** A global service to handle all external output connections.
|
2011-05-23 04:43:56 +02:00
|
|
|
**
|
2011-05-23 05:46:40 +02:00
|
|
|
** @see output-manager-test.cpp ////TODO
|
2011-05-23 04:43:56 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
#ifndef PROC_PLAY_OUTPUT_MANAGER_H
|
|
|
|
|
#define PROC_PLAY_OUTPUT_MANAGER_H
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
#include "lib/error.hpp"
|
2011-06-18 03:34:27 +02:00
|
|
|
#include "proc/play/output-slot.hpp"
|
2011-06-24 18:40:19 +02:00
|
|
|
#include "proc/mobject/model-port.hpp"
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
#include <boost/noncopyable.hpp>
|
2011-05-23 05:46:40 +02:00
|
|
|
//#include <string>
|
|
|
|
|
//#include <vector>
|
2014-04-03 22:42:48 +02:00
|
|
|
#include <memory>
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
2011-05-24 03:46:32 +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 std::vector;
|
2014-04-03 22:42:48 +02:00
|
|
|
using std::shared_ptr;
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
2011-06-24 18:40:19 +02:00
|
|
|
LUMIERA_ERROR_DECLARE(CANT_PLAY); ///< unable to build playback or render process for this configuration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-24 23:06:36 +02:00
|
|
|
/**************************************************//**
|
2011-05-23 05:46:40 +02:00
|
|
|
* Management of external Output connections.
|
|
|
|
|
*
|
2011-12-17 02:20:48 +01:00
|
|
|
* @todo need a concrete implementation
|
|
|
|
|
* @todo need a unit-test
|
2011-05-23 05:46:40 +02:00
|
|
|
* @todo write Type comment
|
2011-05-23 04:43:56 +02:00
|
|
|
*/
|
2011-05-23 05:46:40 +02:00
|
|
|
class OutputManager
|
2011-05-23 04:43:56 +02:00
|
|
|
: boost::noncopyable
|
|
|
|
|
{
|
|
|
|
|
public:
|
2011-06-24 18:40:19 +02:00
|
|
|
virtual ~OutputManager() { }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual OutputSlot& getOutputFor (mobject::ModelPort port) =0;
|
2011-05-23 04:43:56 +02:00
|
|
|
};
|
|
|
|
|
|
2011-05-24 03:46:32 +02:00
|
|
|
typedef shared_ptr<OutputManager> POutputManager;
|
2011-05-23 04:43:56 +02:00
|
|
|
|
2011-05-24 03:46:32 +02:00
|
|
|
|
|
|
|
|
}} // namespace proc::play
|
2011-05-23 04:43:56 +02:00
|
|
|
#endif
|