source: branches/alma/src/FactoryBase.h@ 1761

Last change on this file since 1761 was 903, checked in by mar637, 19 years ago

Factory pattern class

File size: 500 bytes
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
15namespace asap {
16/**
17A templated factory pattern
18
19@author Malte Marquarding
20@date $Date:$
21
22*/
23template <class BT>
24class FactoryBase {
25public:
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.