Книги и журналы » Компьютерная литература » Программирование (книги)
Practical C++ DesignГод издания: 2017
Автор: Singer A.B.
Издательство: Apress
ISBN: 978-1-4842-3056-5
Язык: Английский
Формат: PDF/EPUB/MOBI
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 257
Описание: Go from competent C++ developer to skilled designer or architect using this book as your C++ design master class. This title will guide you through the design and implementation of a fun, engaging case study. Starting with a quick exploration of the requirements for building the application, you'll delve into selecting an appropriate architecture, eventually designing and implementing all of the necessary modules to meet the project’s requirements. By the conclusion of Practical C++ Design, you'll have constructed a fully functioning calculator that builds and executes on multiple platforms. Access to the complete source code will help speed your learning.
Utilize the Model-View-Controller pattern to determine the optimal architecture for the calculator; the observer pattern to design an event system; the singleton pattern as you design the calculator’s central data repository, a reusable stack; the command pattern to design a command system s
upporting unlimited undo/redo; and the abstract factory pattern for a cross-platform plugin infrastructure to make the calculator extensible.
What You Will Learn:- Learn to read a specification document and translate it into a practical C++ design
- Understand trade-offs in selecting between alternative design scenarios
- Gain practical experience in applying design patterns to realistic development scenarios
- Learn how to effectively use language elements of modern C++ to create a lasting design
- Develop a complete C++ program from a blank canvas through to a fully functioning, cross platform application
- Learn to read, modify, and extend an existing, high quality code
- Learn the fundamentals of API design, including class, module, and plugin interfaces
[spoiler="Примеры страниц"]

[/spoiler]
[spoiler="Оглавление"]
Table of Contents
Chapter 1: Defining the Case Study 1
Chapter 2: Decomposition 9
Chapter 3: The Stack 31
Chapter 4: The Command Dispatcher 57
Chapter 5: The Command Line Interface 97
Chapter 6: The Graphical User Interface 115
Chapter 7: Plugins 145
Chapter 8: New Requirements 195
Appendix A: Acquiring, Building, and Executing pdCalc 225
Appendix B: Organization of the Source Code 233
References 239
Index 243
[/spoiler]