Reputation: 9708
I have some C++ classes like this:
The class which controls replaying of messages is ReplayController
. By composition, it contains a switch_controller
and a cti_client_controller object
. These objects are specialisations which know how to handle switches
and cti
clients respectively.
Is there a name for this structure? Is it a design pattern?
Upvotes: 2
Views: 129
Reputation: 258618
Even the diagram looks familiar to
(source: wiki).
This looks like the Strategy pattern.
Upvotes: 4