Ignore:
Timestamp:
Jan 5, 2011, 11:08:49 AM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
d76c105
Parents:
724564
Message:

Added Clone pattern.

  • Clone is necessary for having prototypes, i.e. it defines an interface class that has a virtual * clone() const function that each derived type has to implement.
  • Added unit test.
  • made CommonStub a bit cleaner.
  • updated documentation fo Factory and FactoryTypeList
  • Library version is now 2:2:0, API is 1.0.4.
File:
1 edited

Legend:

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

    r724564 r1afcbe  
    1010TESTS = \
    1111  CacheableUnitTest \
     12  CloneUnitTest \
    1213  CreatorUnitTest \
    1314  FactoryUnitTest \
     
    3233        ../ObserverIterator.hpp
    3334CacheableUnitTest_LDADD = $(TESTLIBS)
     35
     36CloneUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     37        CloneUnitTest.cpp \
     38        CloneUnitTest.hpp \
     39        ../Clone.hpp \
     40        stubs/CommonStub.cpp \
     41        stubs/CommonStub.hpp \
     42        stubs/CloneStub.cpp \
     43        stubs/CloneStub.hpp
     44CloneUnitTest_LDADD = $(TESTLIBS)
    3445
    3546CreatorUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
Note: See TracChangeset for help on using the changeset viewer.