O'Reilly logo

C++ Network Programming, Volume 1: Mastering Complexity with ACE and Patterns by Stephen D. Huston, Douglas C. Schmidt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Design Principles for ACE C++ Wrapper Facades

Synopsis

This appendix is a follow-on to our discussions regarding the accidental complexities associated with using native OS APIs and how ACE resolves them using the Wrapper Facade pattern. We summarize the design principles that underlie the ACE IPC and concurrency wrapper facade classes so that you can follow and adapt them to your own projects. Hopefully, you can apply them to design and develop future classes for inclusion in ACE!

A.1 Overview

In this appendix, we describe the following principles applied throughout the design of the ACE wrapper facades:

• Use wrapper facades to enhance type safety.

• Simplify for the common case.

• Use hierarchies to enhance design clarity and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required