Changeset 192c04
- Timestamp:
- Jan 10, 2011, 8:07:18 PM (15 years ago)
- Children:
- 56d62f
- Parents:
- 8dd38e
- git-author:
- Frederik Heber <heber@…> (01/10/11 20:00:52)
- git-committer:
- Frederik Heber <heber@…> (01/10/11 20:07:18)
- Files:
-
- 1 added
- 1 deleted
- 7 edited
-
Makefile.am (modified) (1 diff)
-
configure.ac (modified) (1 diff)
-
doc/Doxyfile (deleted)
-
doc/Doxyfile.in (added)
-
doc/Makefile.am (modified) (2 diffs)
-
src/Patterns/Creator.hpp (modified) (1 diff)
-
src/Patterns/unittests/Makefile.am (modified) (10 diffs)
-
src/unittests/Makefile.am (modified) (2 diffs)
-
src/version.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Makefile.am
r8dd38e r192c04 8 8 .PHONY: doc 9 9 doc: 10 cd doc && make doxygen-docs10 cd $(top_builddir)/doc && make doxygen-docs 11 11 -
configure.ac
r8dd38e r192c04 51 51 AC_CONFIG_FILES([ 52 52 CodePatterns-debug.pc:CodePatterns-debug.pc.in]) 53 AC_CONFIG_FILES([doc/Doxyfile:doc/Doxyfile.in]) 53 54 AC_CONFIG_FILES([ 54 55 Makefile -
doc/Makefile.am
r8dd38e r192c04 1 EXTRA_DIST = \2 Doxyfile \3 html4 1 5 2 SRCMANDOCS = … … 15 12 16 13 doxygen-docs: 17 cd $(srcdir) &&$(DOXYGEN)14 $(DOXYGEN) 18 15 19 16 .xml.ps: -
src/Patterns/Creator.hpp
r8dd38e r192c04 14 14 #endif 15 15 16 /** This class wraps another one and implements a create() function for it.16 /** \section <Creator> (Creator Howto) 17 17 * 18 18 * This pattern is sometimes called 'type erasure': we want to present -
src/Patterns/unittests/Makefile.am
r8dd38e r192c04 31 31 CacheableUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 32 32 CacheableUnitTest.cpp \ 33 CacheableUnitTest.hpp \ 33 CacheableUnitTest.hpp 34 nodist_CacheableUnitTest_SOURCES = \ 34 35 ../Cachable.hpp \ 35 36 ../Observer.hpp \ … … 40 41 CloneUnitTest.cpp \ 41 42 CloneUnitTest.hpp \ 42 ../Clone.hpp \43 43 stubs/CommonStub.cpp \ 44 44 stubs/CommonStub.hpp \ 45 45 stubs/CloneStub.cpp \ 46 46 stubs/CloneStub.hpp 47 nodist_CloneUnitTest_SOURCES = \ 48 ../Clone.hpp 47 49 CloneUnitTest_LDADD = $(TESTLIBS) 48 50 … … 50 52 CreatorUnitTest.cpp \ 51 53 CreatorUnitTest.hpp \ 52 ../Creator.hpp \53 54 stubs/CommonStub.cpp \ 54 55 stubs/CommonStub.hpp \ 55 56 stubs/CreatorStub.hpp 57 nodist_CreatorUnitTest_SOURCES = \ 58 ../Creator.hpp 56 59 CreatorUnitTest_LDADD = $(TESTLIBS) 57 60 … … 63 66 stubs/CreatorStub.hpp \ 64 67 stubs/FactoryStub.hpp \ 65 stubs/FactoryStub.cpp \ 68 stubs/FactoryStub.cpp 69 nodist_FactoryUnitTest_SOURCES = \ 66 70 ../Factory.hpp \ 67 71 ../FactoryTypeList.hpp \ … … 72 76 ManipulableCloneUnitTest.cpp \ 73 77 ManipulableCloneUnitTest.hpp \ 74 ../ManipulableClone.hpp \75 78 stubs/CommonStub.cpp \ 76 79 stubs/CommonStub.hpp \ 77 80 stubs/ManipulableCloneStub.cpp \ 78 81 stubs/ManipulableCloneStub.hpp 82 nodist_ManipulableCloneUnitTest_SOURCES = \ 83 ../ManipulableClone.hpp 79 84 ManipulableCloneUnitTest_LDADD = $(TESTLIBS) 80 85 … … 87 92 stubs/CommonStub.hpp \ 88 93 stubs/ManipulablePrototypeFactoryStub.hpp \ 89 stubs/ManipulablePrototypeFactoryStub.cpp \ 94 stubs/ManipulablePrototypeFactoryStub.cpp 95 nodist_ManipulablePrototypeFactoryUnitTest_SOURCES = \ 90 96 ../ManipulablePrototypeFactory.hpp \ 91 97 ../FactoryTypeList.hpp \ … … 95 101 ObserverUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 96 102 ObserverUnitTest.cpp \ 97 ObserverUnitTest.hpp \ 103 ObserverUnitTest.hpp 104 nodist_ObserverUnitTest_SOURCES = \ 98 105 ../Observer.hpp \ 99 106 ../ObserverIterator.hpp … … 108 115 stubs/CommonStub.hpp \ 109 116 stubs/PrototypeFactoryStub.hpp \ 110 stubs/PrototypeFactoryStub.cpp \ 117 stubs/PrototypeFactoryStub.cpp 118 nodist_PrototypeFactoryUnitTest_SOURCES = \ 111 119 ../PrototypeFactory.hpp \ 112 120 ../FactoryTypeList.hpp \ … … 117 125 RegistryUnitTest.cpp \ 118 126 RegistryUnitTest.hpp 127 #nodist_RegistryUnitTest_SOURCES = 119 128 #RegistryUnitTest_LDADD = $(TESTLIBS) 120 129 … … 122 131 SingletonUnitTest.cpp \ 123 132 SingletonUnitTest.hpp 133 #nodist_SingletonUnitTest_SOURCES = 124 134 SingletonUnitTest_LDADD = $(TESTLIBS) 125 135 -
src/unittests/Makefile.am
r8dd38e r192c04 24 24 25 25 TESTSOURCES = \ 26 ../Patterns/unittests/CacheableUnitTest.cpp \ 27 ../Patterns/unittests/ObserverUnitTest.cpp \ 28 ../Patterns/unittests/RegistryUnitTest.cpp \ 29 ../Patterns/unittests/SingletonUnitTest.cpp \ 26 $(top_srcdir)/src/Patterns/unittests/CacheableUnitTest.cpp \ 27 $(top_srcdir)/src/Patterns/unittests/CloneUnitTest.cpp \ 28 $(top_srcdir)/src/Patterns/unittests/CreatorUnitTest.cpp \ 29 $(top_srcdir)/src/Patterns/unittests/FactoryUnitTest.cpp \ 30 $(top_srcdir)/src/Patterns/unittests/ManipulableCloneUnitTest.cpp \ 31 $(top_srcdir)/src/Patterns/unittests/ManipulablePrototypeFactoryUnitTest.cpp \ 32 $(top_srcdir)/src/Patterns/unittests/ObserverUnitTest.cpp \ 33 $(top_srcdir)/src/Patterns/unittests/PrototypeFactoryUnitTest.cpp \ 34 $(top_srcdir)/src/Patterns/unittests/RegistryUnitTest.cpp \ 35 $(top_srcdir)/src/Patterns/unittests/SingletonUnitTest.cpp \ 36 $(top_srcdir)/src/Patterns/unittests/stubs/CloneStub.cpp \ 37 $(top_srcdir)/src/Patterns/unittests/stubs/CommonStub.cpp \ 38 $(top_srcdir)/src/Patterns/unittests/stubs/FactoryStub.cpp \ 39 $(top_srcdir)/src/Patterns/unittests/stubs/ManipulableCloneStub.cpp \ 40 $(top_srcdir)/src/Patterns/unittests/stubs/ManipulablePrototypeFactoryStub.cpp \ 41 $(top_srcdir)/src/Patterns/unittests/stubs/PrototypeFactoryStub.cpp \ 30 42 InfoUnitTest.cpp \ 31 43 LogUnitTest.cpp 32 44 33 45 TESTHEADERS = \ 34 ../Patterns/unittests/CacheableUnitTest.hpp \ 35 ../Patterns/unittests/ObserverUnitTest.hpp \ 36 ../Patterns/unittests/RegistryUnitTest.hpp \ 37 ../Patterns/unittests/SingletonUnitTest.hpp \ 46 $(top_srcdir)/src/Patterns/unittests/CacheableUnitTest.hpp \ 47 $(top_srcdir)/src/Patterns/unittests/CloneUnitTest.hpp \ 48 $(top_srcdir)/src/Patterns/unittests/CreatorUnitTest.hpp \ 49 $(top_srcdir)/src/Patterns/unittests/FactoryUnitTest.hpp \ 50 $(top_srcdir)/src/Patterns/unittests/ManipulableCloneUnitTest.hpp \ 51 $(top_srcdir)/src/Patterns/unittests/ManipulablePrototypeFactoryUnitTest.hpp \ 52 $(top_srcdir)/src/Patterns/unittests/ObserverUnitTest.hpp \ 53 $(top_srcdir)/src/Patterns/unittests/PrototypeFactoryUnitTest.hpp \ 54 $(top_srcdir)/src/Patterns/unittests/RegistryUnitTest.hpp \ 55 $(top_srcdir)/src/Patterns/unittests/SingletonUnitTest.hpp \ 56 $(top_srcdir)/src/Patterns/unittests/stubs/CloneStub.hpp \ 57 $(top_srcdir)/src/Patterns/unittests/stubs/CommonStub.hpp \ 58 $(top_srcdir)/src/Patterns/unittests/stubs/CommonParametersStub.hpp \ 59 $(top_srcdir)/src/Patterns/unittests/stubs/CreatorStub.hpp \ 60 $(top_srcdir)/src/Patterns/unittests/stubs/FactoryStub.hpp \ 61 $(top_srcdir)/src/Patterns/unittests/stubs/ManipulableCloneStub.hpp \ 62 $(top_srcdir)/src/Patterns/unittests/stubs/ManipulablePrototypeFactoryStub.hpp \ 63 $(top_srcdir)/src/Patterns/unittests/stubs/PrototypeFactoryStub.hpp \ 64 $(top_srcdir)/src/Patterns/unittests/stubs/FactoryStub.def \ 65 $(top_srcdir)/src/Patterns/unittests/stubs/FactoryStub.undef \ 66 $(top_srcdir)/src/Patterns/unittests/stubs/ManipulablePrototypeFactoryStub.def \ 67 $(top_srcdir)/src/Patterns/unittests/stubs/ManipulablePrototypeFactoryStub.undef \ 68 $(top_srcdir)/src/Patterns/unittests/stubs/PrototypeFactoryStub.def \ 69 $(top_srcdir)/src/Patterns/unittests/stubs/PrototypeFactoryStub.undef \ 38 70 InfoUnitTest.hpp \ 39 71 LogUnitTest.hpp … … 53 85 TestRunner_SOURCES = TestRunnerMain.cpp \ 54 86 $(TESTSOURCES) \ 55 $(TESTHEADERS) \ 56 ../Patterns/Cachable.hpp \ 57 ../Patterns/Observer.cpp \ 58 ../Patterns/Observer.hpp \ 59 ../Patterns/ObserverIterator.hpp 87 $(TESTHEADERS) 88 nodist_TestRunner_SOURCES = \ 89 $(top_srcdir)/src/Patterns/Cachable.hpp \ 90 $(top_srcdir)/src/Patterns/Clone.hpp \ 91 $(top_srcdir)/src/Patterns/Creator.hpp \ 92 $(top_srcdir)/src/Patterns/Factory_impl.hpp \ 93 $(top_srcdir)/src/Patterns/Factory.hpp \ 94 $(top_srcdir)/src/Patterns/FactoryTypeList.hpp \ 95 $(top_srcdir)/src/Patterns/ManipulableClone.hpp \ 96 $(top_srcdir)/src/Patterns/ManipulablePrototypeFactory_impl.hpp \ 97 $(top_srcdir)/src/Patterns/ManipulablePrototypeFactory.hpp \ 98 $(top_srcdir)/src/Patterns/ObservedContainer_impl.hpp \ 99 $(top_srcdir)/src/Patterns/ObservedContainer.hpp \ 100 $(top_srcdir)/src/Patterns/Observer.hpp \ 101 $(top_srcdir)/src/Patterns/ObserverIterator.hpp \ 102 $(top_srcdir)/src/Patterns/PrototypeFactory_impl.hpp \ 103 $(top_srcdir)/src/Patterns/PrototypeFactory.hpp \ 104 $(top_srcdir)/src/Patterns/Registry_impl.hpp \ 105 $(top_srcdir)/src/Patterns/Registry.hpp \ 106 $(top_srcdir)/src/Patterns/Singleton_impl.hpp \ 107 $(top_srcdir)/src/Patterns/Singleton.hpp 60 108 TestRunner_LDADD = ${TESTLIBS} 61 109 -
src/version.hpp
r8dd38e r192c04 7 7 #endif 8 8 9 /*! \mainpage Introduction to CodePatterns 10 * 11 * This is the introductory page to the CodePatterns package. 12 * 13 * <h1> Aim </h1> 14 * 15 * The CodePatterns tries to contain a good set of prefactured design patterns 16 * for your ease-of-use. Special emphasis is placed on \a immediate usability. 17 * In most cases, you only have to know the type of design pattern you want, 18 * let's call it foo, then include a \b foo.hpp in your definition, a 19 * \b foo_impl.hpp in your implementation, maybe do some inheritance and your 20 * good to go. At times you will need to call a macro such as \b 21 * CONSTRUCT_FOO(..) which tells the pattern about your specific class or you 22 * have to create a \b foo.def file containing some #define's with an equal 23 * intention. But that's supposed to be it. 24 * 25 * <h1> Overview of implemented patterns </h1> 26 * 27 * - \ref Cacheable - class wraps a value obtained via some expensive 28 * calculation and only performs update when necessary. 29 * - \ref Clone - class can create copies of itself with specific interface, 30 * copies can be manipulated at construction. 31 * - \ref Creator - class can create copies of itself with specific interface. 32 * - \ref Factory - contains table of Creator and spawns new instances on user 33 * request. 34 * - \ref ManipulablePrototypeFactory - contains table of clones or prototypes 35 * and spawns new \a manipulated instances on user request. 36 * - \ref Observer - class can observe changes in other class via this 37 * interface. 38 * - \ref PrototypeFactory - contains table of clones or prototypes and spawns 39 * new instances on user request. 40 * - \ref Registry - contains a map to instances which can be retrieved on 41 * user request. 42 * - \ref Singleton - global, unique instance of a class. 43 */ 44 9 45 extern const char *CODEPATTERNSVERSION; 10 46 extern const char *CODEPATTERNSFULLVERSION;
Note:
See TracChangeset
for help on using the changeset viewer.
