Changeset 746ff1 for src/Patterns


Ignore:
Timestamp:
Jan 4, 2011, 3:12:44 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
724564
Parents:
392a79
git-author:
Frederik Heber <heber@…> (01/04/11 12:03:33)
git-committer:
Frederik Heber <heber@…> (01/04/11 15:12:44)
Message:

Added Creator and Factory pattern.

  • unittests added.
  • new subfolder stubs that contains stubs for Creator and Factory.
  • the only preprocessor stuff is in Factory_impl.hpp.
  • FactoryTypeList.hpp is necessary as long as no variadic template argument lists are possible.
  • library version is 2:0:0, API version is 1.0.2.
Location:
src/Patterns
Files:
14 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/Patterns/unittests/Makefile.am

    r392a79 r746ff1  
    1010TESTS = \
    1111  CacheableUnitTest \
     12  CreatorUnitTest \
     13  FactoryUnitTest \
    1214  ObserverUnitTest \
    1315  RegistryUnitTest \
     
    3133CacheableUnitTest_LDADD = $(TESTLIBS)
    3234
     35CreatorUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     36        CreatorUnitTest.cpp \
     37        CreatorUnitTest.hpp \
     38        ../Creator.hpp \
     39        stubs/CreatorStub.hpp \
     40        stubs/CreatorStub.cpp
     41CreatorUnitTest_LDADD = $(TESTLIBS)
     42
     43FactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     44        FactoryUnitTest.cpp \
     45        FactoryUnitTest.hpp \
     46        stubs/CreatorStub.hpp \
     47        stubs/CreatorStub.cpp \
     48        stubs/FactoryStub.hpp \
     49        stubs/FactoryStub.cpp \
     50        ../Factory.hpp \
     51        ../FactoryTypeList.hpp \
     52        ../Factory_impl.hpp
     53FactoryUnitTest_LDADD = $(TESTLIBS)
     54
    3355ObserverUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
    3456        ObserverUnitTest.cpp \
Note: See TracChangeset for help on using the changeset viewer.