Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
DummyPlayConnection< DEF > Class Template Reference

#include "/Werk/devel/lumi/tests/core/steam/play/dummy-play-connection.hpp"

Description

template<class DEF>
class steam::play::test::DummyPlayConnection< DEF >

Framework for dummy playback and rendering.

A DummyPlayConnection provides a coherent set of placeholders, allowing to start a data producing process while leaving out various parts of the real engine implementation. The specific mode of operation, suitable for various test scenarios, may be fine tuned by the strategy object defined as template parameter.

Todo:

not-yet-implemented as of 2016 – but the design can be considered valid.

6/23 still largely unimplemented, but used as generator for mock ModelPort

Definition at line 111 of file dummy-play-connection.hpp.

Public Member Functions

ModelPorts getAllModelPorts ()
 
DummyOutputLink getModelPort (uint index)
 
bool isSupported (ModelPort port, DataSink sink)
 search through all port <-> sink connections supported by this DummyPlayConnection
 
POutputManager provide_testOutputSlot ()
 
bool isWired ()
 
Duration getPlannedTestDuration ()
 
void waitUntilDue ()
 test helper: blocking wait during an output test.
 
bool gotCorrectOutput ()
 

Private Attributes

SimulatedBuilderContext mockBuilder_
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 ~NonCopyable ()=default
 
 NonCopyable ()=default
 
 NonCopyable (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 

Member Function Documentation

◆ getAllModelPorts()

template<class DEF >
ModelPorts getAllModelPorts ( )
inline

Definition at line 119 of file dummy-play-connection.hpp.

References SimulatedBuilderContext::getAllModelPorts(), and DummyPlayConnection< DEF >::mockBuilder_.

Referenced by DummyPlayConnection< DEF >::isSupported().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getModelPort()

template<class DEF >
DummyOutputLink getModelPort ( uint  index)
inline

Definition at line 125 of file dummy-play-connection.hpp.

References SimulatedBuilderContext::getModelPort(), and DummyPlayConnection< DEF >::mockBuilder_.

Referenced by DummyPlayConnection< DEF >::isSupported().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isSupported()

template<class DEF >
bool isSupported ( ModelPort  port,
DataSink  sink 
)
inline

search through all port <-> sink connections supported by this DummyPlayConnection

Returns
true if found both a math on port an sink.

Definition at line 135 of file dummy-play-connection.hpp.

References DummyPlayConnection< DEF >::getAllModelPorts(), and DummyPlayConnection< DEF >::getModelPort().

+ Here is the call graph for this function:

◆ provide_testOutputSlot()

template<class DEF >
POutputManager provide_testOutputSlot ( )
inline

Definition at line 149 of file dummy-play-connection.hpp.

◆ isWired()

template<class DEF >
bool isWired ( )
inline

Definition at line 158 of file dummy-play-connection.hpp.

◆ getPlannedTestDuration()

template<class DEF >
Duration getPlannedTestDuration ( )
inline

Definition at line 164 of file dummy-play-connection.hpp.

◆ waitUntilDue()

template<class DEF >
void waitUntilDue ( )
inline

test helper: blocking wait during an output test.

The waiting time should be in accordance with the planned value ,

Definition at line 174 of file dummy-play-connection.hpp.

◆ gotCorrectOutput()

template<class DEF >
bool gotCorrectOutput ( )
inline

Definition at line 180 of file dummy-play-connection.hpp.

Member Data Documentation

◆ mockBuilder_

template<class DEF >
SimulatedBuilderContext mockBuilder_
private
+ Inheritance diagram for DummyPlayConnection< DEF >:
+ Collaboration diagram for DummyPlayConnection< DEF >:

The documentation for this class was generated from the following file: