Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
TestTool Class Reference

Description

BuilderTool implementation for checking the invocation of the correct treat() function and for accessing the original Placement from within this invocation.

It is declared to be applicable to Clip and DummyMO objects (wrapped into any acceptable shared-ptr). Intentionally, we omit to declare it applicable to TestSubMO2 instances. In reality this would be a case of misconfiguration, because TestSubMO2 is defined to be processable and consequently has an apply() function, which, due to this omission can't find a dispatcher entry when invoked, so it will call the onUnknown(Buildable&) instead

Definition at line 61 of file builder-tool-test.cpp.

Public Attributes

string log_
 

Public Member Functions

void treat (Clip &c)
 
void treat (AbstractMO &)
 
void onUnknown (Buildable &)
 

Member Function Documentation

◆ treat() [1/2]

void treat ( Clip c)
inline

Definition at line 67 of file builder-tool-test.cpp.

References TestTool::log_.

◆ treat() [2/2]

void treat ( AbstractMO )
inline

Definition at line 74 of file builder-tool-test.cpp.

References TestTool::log_.

◆ onUnknown()

void onUnknown ( Buildable )
inline

Definition at line 79 of file builder-tool-test.cpp.

References TestTool::log_.

Member Data Documentation

◆ log_

string log_
+ Inheritance diagram for TestTool:
+ Collaboration diagram for TestTool:

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