refactor the dummy player facade to be in namespace lumiera
This commit is contained in:
parent
268f8cbc4c
commit
379ec7a126
7 changed files with 43 additions and 36 deletions
|
|
@ -49,7 +49,7 @@ PlaybackController::play()
|
|||
else if (viewerHandle_)
|
||||
try
|
||||
{
|
||||
playHandle = proc::play::DummyPlayer::facade().start (viewerHandle_);
|
||||
playHandle = lumiera::DummyPlayer::facade().start (viewerHandle_);
|
||||
playing = true;
|
||||
}
|
||||
catch (lumiera::error::State& err)
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ private:
|
|||
|
||||
volatile bool playing;
|
||||
|
||||
proc::play::DummyPlayer::Process playHandle;
|
||||
lumiera::DummyPlayer::Process playHandle;
|
||||
|
||||
LumieraDisplaySlot viewerHandle_;
|
||||
|
||||
|
|
|
|||
|
|
@ -44,15 +44,18 @@ typedef lumiera_playprocess* LumieraPlayProcess;
|
|||
|
||||
|
||||
|
||||
namespace proc {
|
||||
namespace proc {
|
||||
namespace play {
|
||||
|
||||
|
||||
class ProcessImpl;
|
||||
} }
|
||||
|
||||
|
||||
namespace lumiera {
|
||||
|
||||
|
||||
/******************************************************************
|
||||
* Interface Proc-Layer (or maybe the backend?):
|
||||
* Experimental Interface Proc-Layer (or maybe the backend?):
|
||||
* Global access point for starting a dummy playback, generating
|
||||
* some test image data for the GUI to display in a viewer window.
|
||||
*
|
||||
|
|
@ -85,7 +88,7 @@ namespace proc {
|
|||
* @see dummy-player-service.cpp implementation
|
||||
*/
|
||||
class Process
|
||||
: public lib::Handle<ProcessImpl>
|
||||
: public lib::Handle<proc::play::ProcessImpl>
|
||||
{
|
||||
public:
|
||||
void play(bool);
|
||||
|
|
@ -102,10 +105,8 @@ namespace proc {
|
|||
};
|
||||
|
||||
|
||||
} // namespace lumiera
|
||||
|
||||
} // namespace play
|
||||
|
||||
} // namespace proc
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ namespace {
|
|||
Subsys& engine = backend::EngineFacade::getDescriptor();
|
||||
Subsys& netNode = backend::NetNodeFacade::getDescriptor();
|
||||
Subsys& script = backend::ScriptRunnerFacade::getDescriptor();
|
||||
Subsys& player = proc::play::DummyPlayer::getDescriptor();
|
||||
Subsys& player = lumiera::DummyPlayer::getDescriptor();
|
||||
Subsys& builder = proc::Facade::getBuilderDescriptor();
|
||||
Subsys& session = proc::Facade::getSessionDescriptor();
|
||||
Subsys& lumigui = gui::GuiFacade::getDescriptor();
|
||||
|
|
|
|||
|
|
@ -41,16 +41,15 @@
|
|||
|
||||
#include "proc/play/dummy-player-service.hpp"
|
||||
|
||||
namespace proc {
|
||||
namespace play {
|
||||
namespace lumiera {
|
||||
|
||||
/** storage for the DummyPlayer facade proxy factory... */
|
||||
lumiera::facade::Accessor<DummyPlayer> DummyPlayer::facade;
|
||||
|
||||
} }
|
||||
|
||||
|
||||
namespace lumiera {
|
||||
|
||||
|
||||
|
||||
|
||||
namespace facade {
|
||||
|
||||
typedef lumiera::InstanceHandle< LUMIERA_INTERFACE_INAME(lumieraorg_DummyPlayer, 0)
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ namespace proc {
|
|||
}
|
||||
};
|
||||
|
||||
lumiera::Singleton<DummyPlayerSubsysDescriptor> theDescriptor;
|
||||
lumiera::Singleton<DummyPlayerSubsysDescriptor> theDummyPlayerDescriptor;
|
||||
|
||||
|
||||
|
||||
|
|
@ -271,10 +271,6 @@ namespace proc {
|
|||
}
|
||||
|
||||
|
||||
/* === Forwarding function(s) on the Process handle === */
|
||||
|
||||
void DummyPlayer::Process::play(bool yes) { impl().doPlay(yes); }
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -356,24 +352,34 @@ namespace proc {
|
|||
else
|
||||
display_(imageGen_->current());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/** @internal intended for use by main(). */
|
||||
lumiera::Subsys&
|
||||
DummyPlayer::getDescriptor()
|
||||
{
|
||||
return play::theDescriptor();
|
||||
}
|
||||
|
||||
// emit the vtable here into this translation unit within liblumieraproc.so ...
|
||||
DummyPlayer::~DummyPlayer() { }
|
||||
|
||||
|
||||
|
||||
} // namespace play
|
||||
|
||||
} // namespace proc
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
namespace lumiera { /* === Forwarding function(s) on the Process handle === */
|
||||
|
||||
void DummyPlayer::Process::play(bool yes) { impl().doPlay(yes); }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/** @internal intended for use by main(). */
|
||||
lumiera::Subsys&
|
||||
DummyPlayer::getDescriptor()
|
||||
{
|
||||
return proc::play::theDummyPlayerDescriptor();
|
||||
}
|
||||
|
||||
// emit the vtable here into this translation unit within liblumieraproc.so ...
|
||||
DummyPlayer::~DummyPlayer() { }
|
||||
|
||||
|
||||
} // namespace lumiera
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ namespace proc {
|
|||
using std::string;
|
||||
using lumiera::Subsys;
|
||||
using lumiera::Display;
|
||||
using lumiera::DummyPlayer;
|
||||
|
||||
|
||||
class DummyImageGenerator;
|
||||
|
|
|
|||
Loading…
Reference in a new issue