Lumiera  0.pre.03
»edit your freedom«
dummy-player-service.cpp File Reference

Go to the source code of this file.

Description

Implementation of a service for mock render output to support testing.

Definition in file dummy-player-service.cpp.

#include "steam/play/dummy-player-service.hpp"
#include "steam/engine/worker/dummy-image-generator.hpp"
#include "steam/engine/worker/tick-service.hpp"
#include "lib/depend-inject.hpp"
#include "lib/depend.hpp"
#include "common/interface-descriptor.h"
#include <functional>
#include <memory>
#include <string>

Classes

class  DummyPlayerSubsysDescriptor
 details of how the DummyPlayer service can be started and used as independent "subsystem" within main() More...
 

Typedefs

typedef ProcessImpl * ProcP
 

Functions

 LUMIERA_INTERFACE_INSTANCE (lumieraorg_interfacedescriptor, 0, lumieraorg_DummyPlayerFacade_descriptor, NULL, NULL, NULL, LUMIERA_INTERFACE_INLINE(name, const char *,(LumieraInterface ifa), {(void) ifa;return "DummyPlayer";}), LUMIERA_INTERFACE_INLINE(brief, const char *,(LumieraInterface ifa), {(void) ifa;return "Steam Interface: dummy player to test integration with the GUI";}), LUMIERA_INTERFACE_INLINE(homepage, const char *,(LumieraInterface ifa), {(void) ifa;return "http://www.lumiera.org/develompent.html" ;}), LUMIERA_INTERFACE_INLINE(version, const char *,(LumieraInterface ifa), {(void) ifa;return "0.1~pre";}), LUMIERA_INTERFACE_INLINE(author, const char *,(LumieraInterface ifa), {(void) ifa;return "Hermann Vosseler";}), LUMIERA_INTERFACE_INLINE(email, const char *,(LumieraInterface ifa), {(void) ifa;return "Ichthyostega@web.de";}), LUMIERA_INTERFACE_INLINE(copyright, const char *,(LumieraInterface ifa), {(void) ifa;return "Copyright (C)\ " 2009, Hermann Vosseler< Ichthyostega @web.de >"; }), LUMIERA_INTERFACE_INLINE(license, const char *,(LumieraInterface ifa), {(void) ifa; return " **Lumiera **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. See the file COPYING for further details." ; }), LUMIERA_INTERFACE_INLINE(state, int,(LumieraInterface ifa), {(void) ifa; return LUMIERA_INTERFACE_EXPERIMENTAL;}), LUMIERA_INTERFACE_INLINE(versioncmp, int,(const char *a, const char *b), {(void) a;(void) b; return 0;}))
 
 LUMIERA_INTERFACE_INSTANCE (lumieraorg_DummyPlayer, 0, lumieraorg_DummyPlayerService, LUMIERA_INTERFACE_REF(lumieraorg_interfacedescriptor, 0, lumieraorg_DummyPlayerFacade_descriptor), NULL, NULL, LUMIERA_INTERFACE_INLINE(startPlay, LumieraPlayProcess,(LumieraDisplaySlot viewerHandle), { if(!_instance) { lumiera_error_set(LUMIERA_ERROR_LIFECYCLE, 0);return 0;} return static_cast< LumieraPlayProcess >(_instance().start(viewerHandle));}), LUMIERA_INTERFACE_INLINE(togglePlay, void,(LumieraPlayProcess handle, bool doPlay), { if(!_instance) { lumiera_error_set(LUMIERA_ERROR_LIFECYCLE, 0);return;} REQUIRE(handle);ProcP proc=static_cast< ProcP >(handle);proc->doPlay(doPlay);}), LUMIERA_INTERFACE_INLINE(terminate, void,(LumieraPlayProcess handle), { if(!_instance) { lumiera_error_set(LUMIERA_ERROR_LIFECYCLE, 0);return;} REQUIRE(handle);ProcP proc=static_cast< ProcP >(handle);ProcessImpl::terminate(proc);}))
 

Variables

lib::Depend< DummyPlayerService > _instance
 a backdoor for the C Language impl to access the actual SessionCommand implementation...
 
lib::Depend< DummyPlayerSubsysDescriptor > theDummyPlayerDescriptor
 

Namespaces

 lumiera
 Lumiera public interface.
 
 steam
 Steam-Layer implementation namespace root.
 
 steam::play
 Playback and rendering control subsystem.