Changeset 746ff1


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.
Files:
14 added
3 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r392a79 r746ff1  
    33
    44AC_PREREQ([2.65])
    5 AC_INIT([CodePatterns], [1.0.1], [heber@ins.uni-bonn.de], [codepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/])
     5AC_INIT([CodePatterns], [1.0.2], [heber@ins.uni-bonn.de], [codepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/])
    66AC_CONFIG_AUX_DIR(config)
    77AC_CONFIG_SRCDIR([src/Patterns/Singleton_impl.hpp])
     
    2525# refer to the libtool manual, section "Updating library version information":
    2626# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
    27 AC_SUBST([CODEPATTERNS_SO_VERSION], [1:0:1])
    28 AC_SUBST([CODEPATTERNS_API_VERSION], [1.0.1])
     27AC_SUBST([CODEPATTERNS_SO_VERSION], [2:0:0])
     28AC_SUBST([CODEPATTERNS_API_VERSION], [1.0.2])
    2929
    3030# Checks for libraries.
  • src/Makefile.am

    r392a79 r746ff1  
    3636PATTERNHEADER = \
    3737        Patterns/Cacheable.hpp \
     38        Patterns/Creator.hpp \
     39        Patterns/Factory.hpp \
     40        Patterns/Factory_impl.hpp \
     41        Patterns/FactoryTypeList.hpp \
    3842        Patterns/ObservedContainer.hpp \
    3943        Patterns/ObservedIterator.hpp \
  • 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.