Changeset 192c04


Ignore:
Timestamp:
Jan 10, 2011, 8:07:18 PM (15 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

FIX: make dist works, documentation changed and working (basically).

  • make dist lacked some nodist_..._SOURCES.
  • doc is now created in top_builddir/doc, not top_srcdir.
  • Doxyfile is now created by configure and package name, version and paths are adapted therein.
Files:
1 added
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r8dd38e r192c04  
    88.PHONY: doc
    99doc:
    10         cd doc && make doxygen-docs
     10        cd $(top_builddir)/doc && make doxygen-docs
    1111       
  • configure.ac

    r8dd38e r192c04  
    5151AC_CONFIG_FILES([
    5252  CodePatterns-debug.pc:CodePatterns-debug.pc.in])
     53AC_CONFIG_FILES([doc/Doxyfile:doc/Doxyfile.in])
    5354AC_CONFIG_FILES([
    5455        Makefile
  • doc/Makefile.am

    r8dd38e r192c04  
    1 EXTRA_DIST = \
    2         Doxyfile \
    3         html
    41
    52SRCMANDOCS =
     
    1512
    1613doxygen-docs:
    17         cd $(srcdir) && $(DOXYGEN)
     14        $(DOXYGEN)
    1815
    1916.xml.ps:
  • src/Patterns/Creator.hpp

    r8dd38e r192c04  
    1414#endif
    1515
    16 /** This class wraps another one and implements a create() function for it.
     16/** \section <Creator> (Creator Howto)
    1717 *
    1818 * This pattern is sometimes called 'type erasure': we want to present
  • src/Patterns/unittests/Makefile.am

    r8dd38e r192c04  
    3131CacheableUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
    3232        CacheableUnitTest.cpp \
    33         CacheableUnitTest.hpp \
     33        CacheableUnitTest.hpp
     34nodist_CacheableUnitTest_SOURCES = \
    3435        ../Cachable.hpp \
    3536        ../Observer.hpp \
     
    4041        CloneUnitTest.cpp \
    4142        CloneUnitTest.hpp \
    42         ../Clone.hpp \
    4343        stubs/CommonStub.cpp \
    4444        stubs/CommonStub.hpp \
    4545        stubs/CloneStub.cpp \
    4646        stubs/CloneStub.hpp
     47nodist_CloneUnitTest_SOURCES = \
     48        ../Clone.hpp
    4749CloneUnitTest_LDADD = $(TESTLIBS)
    4850
     
    5052        CreatorUnitTest.cpp \
    5153        CreatorUnitTest.hpp \
    52         ../Creator.hpp \
    5354        stubs/CommonStub.cpp \
    5455        stubs/CommonStub.hpp \
    5556        stubs/CreatorStub.hpp
     57nodist_CreatorUnitTest_SOURCES = \
     58        ../Creator.hpp
    5659CreatorUnitTest_LDADD = $(TESTLIBS)
    5760
     
    6366        stubs/CreatorStub.hpp \
    6467        stubs/FactoryStub.hpp \
    65         stubs/FactoryStub.cpp \
     68        stubs/FactoryStub.cpp
     69nodist_FactoryUnitTest_SOURCES = \
    6670        ../Factory.hpp \
    6771        ../FactoryTypeList.hpp \
     
    7276        ManipulableCloneUnitTest.cpp \
    7377        ManipulableCloneUnitTest.hpp \
    74         ../ManipulableClone.hpp \
    7578        stubs/CommonStub.cpp \
    7679        stubs/CommonStub.hpp \
    7780        stubs/ManipulableCloneStub.cpp \
    7881        stubs/ManipulableCloneStub.hpp
     82nodist_ManipulableCloneUnitTest_SOURCES = \
     83        ../ManipulableClone.hpp
    7984ManipulableCloneUnitTest_LDADD = $(TESTLIBS)
    8085
     
    8792        stubs/CommonStub.hpp \
    8893        stubs/ManipulablePrototypeFactoryStub.hpp \
    89         stubs/ManipulablePrototypeFactoryStub.cpp \
     94        stubs/ManipulablePrototypeFactoryStub.cpp
     95nodist_ManipulablePrototypeFactoryUnitTest_SOURCES = \
    9096        ../ManipulablePrototypeFactory.hpp \
    9197        ../FactoryTypeList.hpp \
     
    95101ObserverUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
    96102        ObserverUnitTest.cpp \
    97         ObserverUnitTest.hpp \
     103        ObserverUnitTest.hpp
     104nodist_ObserverUnitTest_SOURCES = \
    98105        ../Observer.hpp \
    99106        ../ObserverIterator.hpp
     
    108115        stubs/CommonStub.hpp \
    109116        stubs/PrototypeFactoryStub.hpp \
    110         stubs/PrototypeFactoryStub.cpp \
     117        stubs/PrototypeFactoryStub.cpp
     118nodist_PrototypeFactoryUnitTest_SOURCES = \
    111119        ../PrototypeFactory.hpp \
    112120        ../FactoryTypeList.hpp \
     
    117125        RegistryUnitTest.cpp \
    118126        RegistryUnitTest.hpp
     127#nodist_RegistryUnitTest_SOURCES =
    119128#RegistryUnitTest_LDADD = $(TESTLIBS)
    120129
     
    122131        SingletonUnitTest.cpp \
    123132        SingletonUnitTest.hpp
     133#nodist_SingletonUnitTest_SOURCES =
    124134SingletonUnitTest_LDADD = $(TESTLIBS)
    125135
  • src/unittests/Makefile.am

    r8dd38e r192c04  
    2424
    2525TESTSOURCES = \
    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 \
    3042  InfoUnitTest.cpp \
    3143  LogUnitTest.cpp
    3244
    3345TESTHEADERS = \
    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 \
    3870  InfoUnitTest.hpp \
    3971  LogUnitTest.hpp
     
    5385TestRunner_SOURCES = TestRunnerMain.cpp \
    5486        $(TESTSOURCES) \
    55         $(TESTHEADERS) \
    56         ../Patterns/Cachable.hpp \
    57         ../Patterns/Observer.cpp \
    58         ../Patterns/Observer.hpp \
    59         ../Patterns/ObserverIterator.hpp
     87        $(TESTHEADERS)
     88nodist_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
    60108TestRunner_LDADD = ${TESTLIBS}
    61109
  • src/version.hpp

    r8dd38e r192c04  
    77#endif
    88
     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
    945extern const char *CODEPATTERNSVERSION;
    1046extern const char *CODEPATTERNSFULLVERSION;
Note: See TracChangeset for help on using the changeset viewer.