Skip to Main Content
Practical C++ Design: From Programming to Architecture
book

Practical C++ Design: From Programming to Architecture

by Adam B. Singer
September 2017
Beginner to intermediate content levelBeginner to intermediate
257 pages
7h 10m
English
Apress
Content preview from Practical C++ Design: From Programming to Architecture
© Adam B. Singer 2017
Adam B. SingerPractical C++ Designhttps://doi.org/10.1007/978-1-4842-3057-2_4

4. The Command Dispatcher

Adam B. Singer
(1)
The Woodlands, Texas, USA
 
The command dispatcher is the centerpiece of the calculator. As the controller in the MVC framework, the command dispatcher is responsible for the entire business logic of the application. This chapter addresses not only the specific design of the command dispatcher module for the calculator but also, more broadly, the flexible design of a loosely coupled command infrastructure.

4.1 Decomposition of the Command Dispatcher

The first question we asked when decomposing the stack was, “Into how many components should the stack be divided?” We ask the same question now for the command ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical C++ Design: From Programming to Architecture

Practical C++ Design: From Programming to Architecture

Adam B. Singer

Publisher Resources

ISBN: 9781484230572Purchase bookPublisher Website