| Line |  | 
|---|
| 1 | // | 
|---|
| 2 | // C++ Interface: FactoryBase | 
|---|
| 3 | // | 
|---|
| 4 | // Description: | 
|---|
| 5 | // | 
|---|
| 6 | // | 
|---|
| 7 | // Author: Malte Marquarding <Malte.Marquarding@csiro.au>, (C) 2006 | 
|---|
| 8 | // | 
|---|
| 9 | // Copyright: See COPYING file that comes with this distribution | 
|---|
| 10 | // | 
|---|
| 11 | // | 
|---|
| 12 | #ifndef ASAPFACTORYBASE_H | 
|---|
| 13 | #define ASAPFACTORYBASE_H | 
|---|
| 14 |  | 
|---|
| 15 | namespace asap { | 
|---|
| 16 | /** | 
|---|
| 17 | A templated factory pattern | 
|---|
| 18 |  | 
|---|
| 19 | @author Malte Marquarding | 
|---|
| 20 | @date $Date:$ | 
|---|
| 21 |  | 
|---|
| 22 | */ | 
|---|
| 23 | template <class BT> | 
|---|
| 24 | class FactoryBase { | 
|---|
| 25 | public: | 
|---|
| 26 | FactoryBase() {} | 
|---|
| 27 | virtual ~FactoryBase() {} | 
|---|
| 28 | virtual BT* create() = 0; | 
|---|
| 29 | }; | 
|---|
| 30 | } //namespace | 
|---|
| 31 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.