C ++ Class Design Models in Open Source Projects

Recently, I began to study design patterns. I understood the basics of several templates. Now I want to get acquainted with some real code examples that use these templates. Can anyone point out some open source projects that use design patterns here? I would like to see how design patterns are used in real world code.

+6
c ++ design-patterns
source share
4 answers

Below are some links. The JUnit Cookbook provides a prime example of quite a few templates - really worth checking out.

Hope this helps.

+2
source share

Well, that makes my own little horn a little bit, but the Open Source project I'm working on makes extensive use of the factory method . I implement the guts of the template itself here as a set of templates, define a factory here , register a subclass for this factory here, and use factory to create the objects here .

+2
source share

IMHO, ACE (adaptive communications environment) can serve as a good example. It also uses C ++ templates with design patterns, which is also pragmatic. This structure is based on the book Structural Architecture of Architecture: Patterns for Parallel and Network Objects , which is also a good reference for design patterns other than GoF

+2
source share

In the GOF book that you are probably reading, for each design pattern they are an example of a REAL code, I do not mean a code sample, but they actually say which projects each DP is used in. These projects are mainly OpenSource. Hth

0
source share

All Articles