| Last change
 on this file since 746ff1 was             746ff1, checked in by Frederik Heber <heber@…>, 15 years ago | 
        
          | 
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.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            625 bytes | 
      
      
| Rev | Line |  | 
|---|
| [746ff1] | 1 | /* | 
|---|
|  | 2 | * Project: MoleCuilder | 
|---|
|  | 3 | * Description: creates and alters molecular systems | 
|---|
|  | 4 | * Copyright (C)  2010 University of Bonn. All rights reserved. | 
|---|
|  | 5 | * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. | 
|---|
|  | 6 | */ | 
|---|
|  | 7 |  | 
|---|
|  | 8 | /* | 
|---|
|  | 9 | * FactoryStub.cpp | 
|---|
|  | 10 | * | 
|---|
|  | 11 | *  Created on: Jan 4, 2011 | 
|---|
|  | 12 | Author: heber | 
|---|
|  | 13 | */ | 
|---|
|  | 14 |  | 
|---|
|  | 15 | #include "Singleton_impl.hpp" | 
|---|
|  | 16 |  | 
|---|
|  | 17 | #include "FactoryStub.hpp" | 
|---|
|  | 18 |  | 
|---|
|  | 19 | // has to be included BEFORE Factory_impl.hpp! | 
|---|
|  | 20 | #include "FactoryStub.def" | 
|---|
|  | 21 | #include "Factory_impl.hpp" | 
|---|
|  | 22 |  | 
|---|
|  | 23 |  | 
|---|
|  | 24 | FactoryStub::FactoryStub() {} | 
|---|
|  | 25 | FactoryStub::~FactoryStub() {} | 
|---|
|  | 26 |  | 
|---|
|  | 27 | CONSTRUCT_SINGLETON(FactoryStub) | 
|---|
|  | 28 | CONSTRUCT_FACTORY(ICreatorStub) | 
|---|
|  | 29 |  | 
|---|
|  | 30 | #include "FactoryStub.undef" | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.