Angus Comber
Angus Comber

Reputation: 9708

Is this design one of the standard design patterns?

I have some C++ classes like this:

enter image description here

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

Answers (1)

Luchian Grigore
Luchian Grigore

Reputation: 258618

Even the diagram looks familiar to

enter image description here

(source: wiki).

This looks like the Strategy pattern.

Upvotes: 4

Related Questions