Tag: wrapper
3 posts
-
The Decorator Pattern in C++: Adding Behavior by Composition (Streams, Logging, Formatters)
The Decorator pattern in C++: adding behavior at runtime through composition instead of inheritance, with stream decorators, a logging system, and a text formatter example.
-
The Facade Pattern in C++: One Simple Interface over a Messy Subsystem, and What It Hides
C++ Facade pattern: wrap a complex subsystem behind one simple interface, with multimedia, build-pipeline, and database examples, plus the tradeoffs of hiding subsystems behind one API.
-
The Adapter Pattern in C++: Object vs Class Adapters for Legacy and Third-Party APIs
Adapter pattern in C++: object vs class adapter, payment/API examples, unique_ptr—bridge incompatible interfaces for legacy and third-party code.