Ignore:
Timestamp:
Jan 5, 2011, 1:48:15 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
567640
Parents:
1afcbe
git-author:
Frederik Heber <heber@…> (01/05/11 11:26:48)
git-committer:
Frederik Heber <heber@…> (01/05/11 13:48:15)
Message:

Added Prototype Factory pattern.

  • the Prototype Factory basically stores Clone instead of Creator patterns in its lookup tables to produce.
  • Clone has not protected cstor/dstor but is friend with CloneTest and PrototypeFactoryStub to grant them access.
  • also these prototypes may be manipulated by befriended classes.
  • added unit test and stub.
  • Library version is now 3:0:0, API version is 1.0.5.
File:
1 edited

Legend:

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

    r1afcbe rd76c105  
    1414  FactoryUnitTest \
    1515  ObserverUnitTest \
     16  PrototypeFactoryUnitTest \
    1617  RegistryUnitTest \
    1718  SingletonUnitTest
     
    7374ObserverUnitTest_LDADD = $(TESTLIBS)
    7475
     76PrototypeFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     77        PrototypeFactoryUnitTest.cpp \
     78        PrototypeFactoryUnitTest.hpp \
     79        stubs/CloneStub.cpp \
     80        stubs/CloneStub.hpp \
     81        stubs/CommonStub.cpp \
     82        stubs/CommonStub.hpp \
     83        stubs/PrototypeFactoryStub.hpp \
     84        stubs/PrototypeFactoryStub.cpp \
     85        ../PrototypeFactory.hpp \
     86        ../FactoryTypeList.hpp \
     87        ../PrototypeFactory_impl.hpp
     88PrototypeFactoryUnitTest_LDADD = $(TESTLIBS)
     89
    7590RegistryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
    7691        RegistryUnitTest.cpp \
Note: See TracChangeset for help on using the changeset viewer.