Software Development with C++: Maximizing Reuse with Object Technology is about software development and object-oriented technology (OT), with applications implemented in C++. The basis for any software development project of complex systems is the process, rather than an individual method, which simply supports the overall process. This book is not intended as a general, all-encompassing treatise on OT. The intent is to provide practical information that is directly applicable to a development project. Explicit guidelines are offered for the infusion of OT into the various development phases. The book is divided into five major parts. Part I describes why we need a development process, the phases and steps of the software process, and how we use individual methods to support this process. Part II lays the foundation for the concepts included in OT. Part III describes how OT is used in the various phases of the software development process, including the domain analysis, system requirements analysis, system design, software requirements analysis, software design, and implementation. Part IV deals exclusively with design issues for an anticipated C++ implementation. Part V is devoted to object-oriented programming with C++. This book is intended for practicing software developers, software managers, and computer science and software engineering students. Sufficient guidelines are included to aid project leaders in establishing an overall development process for small, medium, and large system applications.
Inhaltsverzeichnis
1;Front Cover;1 2;Software Development with C++: Maximizing Reuse with Object Technology;4 3;Copyright Page;5 4;Table of Contents;8 5;Dedication;6 6;Preface;22 7;Part I: The Software Development Process;25 7.1;Chapter 1. Introduction;27 7.1.1;1.1 Why Do We Need a Development Process?;27 7.1.2;1.2 Why Switch to Object-Oriented Techniques?;30 7.1.3;1.3 Current Practices;31 7.2;Chapter 2. Steps in the Development Process;36 7.2.1;2.1 Overview of the Development Process;37 7.2.2;2.2 Domain Analysis;39 7.2.3;2.3 System Requirements Analysis;39 7.2.4;2.4 System Design;40 7.2.5;2.5 Software Requirements Analysis;41 7.2.6;2.6 Software Design;41 7.2.7;2.7 Implementation;45 7.2.8;2.8 Summary;45 7.3;Chapter 3. Development Process versus Methods;48 7.3.1;3.1 Methods That Support the Development Steps;48 7.3.2;3.2 Traditional Methods versus Object-Oriented Methods;53 7.3.3;3.3 Notation;58 7.3.4;3.4 Language Dependence;59 7.3.5;3.5 Summary;59 8;Part II: Object Technology;62 8.1;Chapter 4. Object-Oriented Paradigms;64 8.1.1;4.1 Classes and Objects;65 8.1.2;4.2 Encapsulation and Information Hiding;66 8.1.3;4.3 Data Abstraction;68 8.1.4;4.4 Responsibilities;70 8.1.5;4.5 Collaborations and Message Passing;70 8.1.6;4.6 Inheritance;71 8.1.7;4.7 Polymorphism;73 8.1.8;4.8 Binding;75 8.1.9;4.9 Modularity;76 8.1.10;4.10 Genericity;77 8.2;Chapter 5. Classes and Objects;80 8.2.1;5.1 Definitions;80 8.2.2;5.2 Creating Classes;85 8.2.3;5.3 Inheritance and Class Hierarchies;88 8.2.4;5.4 Aggregation;89 8.2.5;5.5 Association;92 8.2.6;5.6 Using;94 8.2.7;5.7 Mixin Classes;95 8.2.8;5.8 Container Classes;95 8.2.9;5.9 Metaclasses;95 8.2.10;5.10 Reusability Issues;96 8.3;Chapter 6. Object-Oriented Analysis and Design Models;98 8.3.1;6.1 Object-Oriented Models;99 8.3.2;6.2 Static Models;100 8.3.3;6.3 Dynamic Models;103 8.3.4;6.4 System Design Models;107 8.3.5;6.5 Concurrency Models;108 8.3.6;6.6 Functional Models;110 8.3.7;6.7 Summary;110 8.4;Chapter 7. Object-Oriented Methods;112 8.4.1;7.1 Object Modeli
ng Technique (OMT);112 8.4.2;7.2 Object-Oriented Software Engineering (OOSE);118 8.4.3;7.3 Booch'93;129 8.4.4;7.4 Shlaer-Mellor;135 8.4.5;7.5 RDD and CRCs;144 8.4.6;7.6 Coad-Yourdon;147 8.4.7;7.7 Other Methods;154 8.4.8;7.8 Summary;154 8.5;Chapter 8. Using Object-Oriented Methods;156 8.5.1;8.1 Benefits of Object-Oriented Methods;157 8.5.2;8.2 Potential Problems with Object-Oriented Methods;157 8.5.3;8.3 When to Use Object-Oriented Methods;160 8.5.4;8.4 Mixing Object-Oriented and Structured Methods;161 8.5.5;8.5 Selecting the "Right" Method;162 8.5.6;8.6 Recommended Modeling Approach;166 8.5.7;8.7 Identifying Real-World Classes and Objects;181 8.5.8;8.8 Transitioning from Structured to OT Methods;183 8.5.9;8.9 Effect on Steps in the Development Process;184 8.5.10;8.10 Summary;186 9;Part III: Using OT in the Software Development Process;188 9.1;Chapter 9. Domain Analysis;190 9.1.1;9.1 Understanding the Problem Domain;192 9.1.2;9.2 Capturing Existing Expertise and Software;193 9.1.3;9.3 Creating Real-World Classes and Objects;195 9.1.4;9.4 Evaluation of Objects;198 9.1.5;9.5 Work Products;199 9.1.6;9.6 Risk Areas;201 9.2;Chapter 10. System Requirements Analysis;204 9.2.1;10.1 Using Scenarios;205 9.2.2;10.2 Object-Oriented Analysis;215 9.2.3;10.3 The Analysis Model;218 9.2.4;10.4 Heuristics for Creating Analysis Objects;224 9.2.5;10.5 Refinements of Builds and Prototypes;227 9.2.6;10.6 Risk Areas;229 9.2.7;10.7 Work Products;232 9.3;Chapter 11. System Design;234 9.3.1;11.1 Partitioning;235 9.3.2;11.2 Configuring;246 9.3.3;11.3 Summary;256 9.4;Chapter 12. Software Requirements Analysis;258 9.4.1;12.1 Models;259 9.4.2;12.2 Object-Oriented Analysis;264 9.4.3;12.3 Creating Scenarios;264 9.4.4;12.4 Identifying Classes and Objects;265 9.4.5;12.5 Identifying Attributes and Operations;267 9.4.6;12.6 Preparing Object Views;268 9.4.7;12.7 Data Modeling;269 9.4.8;12.8 Class/Object Evaluation;270 9.4.9;12.9 Work Products;270 9.4.10;12.10 Summary;273 9.5;Chapter 13. Software Design;
274 9.5.1;13.1 Transitioning from the Analysis Phase;275 9.5.2;13.2 Process Structuring;276 9.5.3;13.3 Object-Oriented Design;287 9.5.4;13.4 OOD Products;287 9.5.5;13.5 Exception Handling;289 9.5.6;13.6 Design Evaluation;291 9.5.7;13.7 Summary;296 9.6;Chapter 14. Implementation;298 9.6.1;14.1 Transitioning from Design;298 9.6.2;14.2 Programming;299 9.6.3;14.3 Exception Handling;300 9.6.4;14.4 Testing;300 9.6.5;14.5 Debugging;301 9.6.6;14.6 Summary;302 10;Part IV: Object-Oriented Design for C++;304 10.1;Chapter 15. Why Use C++?;306 10.1.1;15.1 Object-Oriented Languages;306 10.1.2;15.2 Benefits of C++;309 10.1.3;15.3 Potential Problems with C++;310 10.1.4;15.4 Summary;311 10.2;Chapter 16. Transitioning from Analysis to Design;312 10.2.1;16.1 Design Goals;312 10.2.2;16.2 OOA Products;313 10.2.3;16.3 OOD Modeling Views;314 10.2.4;16.4 Transitioning Rules;314 10.2.5;16.5 Reusability Issues;316 10.3;Chapter 17. Designing Classes;318 10.3.1;17.1 Class Design;319 10.3.2;17.2 Class Interfaces;322 10.3.3;17.3 Class Architecture;324 10.3.4;17.4 Exception Handling;327 10.3.5;17.5 Class Libraries;328 10.3.6;17.6 Frameworks;331 10.3.7;17.7 Evaluation of Class Design;331 10.3.8;17.8 Class Management;332 10.3.9;17.9 Real-Time Issues;334 10.4;Chapter 18. C++ Concurrency Support;336 10.4.1;18.1 Programming Languages;336 10.4.2;18.2 C++Libraries;339 10.4.3;18.3 Summary;340 11;Part V: Object-Oriented Programming with C++;342 11.1;Chapter 19. Implementing Object-Oriented Features in C++;344 11.1.1;19.1 Transitioning from Design to Programming;344 11.1.2;19.2 Types and Classes in C++;346 11.1.3;19.3 Using structs versus Classes;348 11.1.4;19.4 Inheritance;351 11.1.5;19.5 Aggregation;354 11.1.6;19.6 Using Relationship;355 11.1.7;19.7 Constructors;356 11.1.8;19.8 Destructors;368 11.1.9;19.9 Polymorphism;370 11.1.10;19.10 Exception Handling;373 11.1.11;19.11 Templates;374 11.1.12;19.12 Performance Issues;376 11.1.13;19.13 Reusability Issues;376 11.1.14;19.14 Summary;377 11.2;Chapter 20. Cla
ss Construction in C++;380 11.2.1;20.1 Public;380 11.2.2;20.2 Private;382 11.2.3;20.3 Protected;382 11.2.4;20.4 Friend Functions;384 11.2.5;20.5 Friend Classes;386 11.2.6;20.6 Virtual Member Functions;388 11.2.7;20.7 Abstract Base Classes;390 11.2.8;20.8 Static Members;391 11.2.9;20.9 Program Organization;393 11.2.10;20.10 Summary;395 11.3;Chapter 21. Exception Handling in C++;396 11.3.1;21.1 Declaring Exceptions;397 11.3.2;21.2 Raising Exceptions;398 11.3.3;21.3 Handling Exceptions;401 11.3.4;21.4 Propagation of Exceptions;403 11.3.5;21.5 Exception Categories;403 11.3.6;21.6 Exception Handling in C++ Libraries;406 11.3.7;21.7 Summary;407 11.4;Chapter 22. Developing a Windows C++ Library;408 11.4.1;22.1 Domain Analysis;408 11.4.2;22.2 System Design;410 11.4.3;22.3 Software Requirement Analysis (OOA);410 11.4.4;22.4 Designing the Interfaces (OOD);419 11.4.5;22.5 Implementing the Classes (OOP);421 11.4.6;22.6 Summary;426 12;Appendix A: Moving from C to C++;428 12.1;A.1 ANSI C and C++;429 12.2;A.2 Function Prototypes;431 12.3;A.3 Function Parameters;431 12.4;A.4 Call-by-Reference Parameters;431 12.5;A.5 Variable Number of Parameters;433 12.6;A.6 Function Overloading and Type Safe Linkage;433 12.7;A.7 The consttype Modifier;434 12.8;A.8 Classes and Structs;434 12.9;A.9 I/O Libraries;435 12.10;A.10 Inline Functions;436 12.11;A.11 Functions new and delete;437 12.12;A.12 Organizational Issues;437 12.13;A.13 Strategy for Adopting C++;438 13;Appendix B: C++ Coding Guidelines;440 13.1;B.1 Design of ADTs;440 13.2;B.2 Use of Classes and Structs;441 13.3;B.3 Class Interfaces;442 13.4;B.4 Virtual Functions;443 13.5;B.5 Inheritance;444 13.6;B.6 Public versus Private Derivation;444 13.7;B.7 Dynamic Allocation;444 13.8;B.8 Use of Friends;445 13.9;B.9 Inline Functions;445 13.10;B.10 Mixing C and C++ Functions;445 13.11;B.11 Parameter Passing;446 13.12;B.12 Use of Macros;447 13.13;B.13 Exception Handling;447 14;Appendix C: Object Technology Glossary;450 15;References;456 16;Index;464