Lumiera  0.pre.03
»edit your freedom«
OutputMapping_test Class Reference

Description

Test:
create a synthetic / example mapping to verify generic mapping behaviour.

We're creating a custom mapping type here, for this test only: The struct DummyDef provides a "definition context" for this custom mapping

  • there is a function to retrieve the actual target object for any target pipe stored in the mapping. In this case, we just extract the name-ID string from the pipe as result
  • as an additional sideeffect, this DummyDef::output functor also defines the Target type of this custom mapping to be std::string
  • DummyDef::buildQuery provides a template query, to be issued whenever a yet nonexistent mapping is requested. In this special case here we query for a pipe with the name "master_XXX", where XXX denotes the stream-type of the source pipe to be mapped.
See also
mobject::OutputDesignation
mobject::session::Binding

Definition at line 70 of file output-mapping-test.cpp.

Classes

struct  DummyDef
 

Private Types

typedef OutputMapping< DummyDefMapping
 

Private Member Functions

void default_mapping ()
 
void instance_copy ()
 
void map_and_retrieve ()
 
virtual void run (Arg)
 
+ Inheritance diagram for OutputMapping_test:
+ Collaboration diagram for OutputMapping_test:

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