source: src/Patterns/unittests/stubs/FactoryStub.hpp@ 724564

Last change on this file since 724564 was 724564, checked in by Frederik Heber <heber@…>, 15 years ago

Factory know has an additional type table and stubs have been refactored.

  • CommonStub.?pp contains basic classes with a int counter inside.
  • Library version is now 2:1:0, API is 1.0.3.
  • Property mode set to 100644
File size: 633 bytes
RevLine 
[746ff1]1/*
2 * FactoryStub.hpp
3 *
4 * Created on: Jan 4, 2011
5 Author: heber
6 */
7
8#ifndef FACTORYSTUB_HPP_
9#define FACTORYSTUB_HPP_
10
[724564]11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
[746ff1]16#include "CreatorStub.hpp"
17
[724564]18// triple has to be appear BEFORE Factory.hpp is included!
[746ff1]19#include "FactoryStub.def"
20#include "FactoryTypeList.hpp"
[724564]21#include "FactoryStub.undef"
22
[746ff1]23#include "Factory.hpp"
24
25#include "Singleton.hpp"
26
27class FactoryStub :
28 public Singleton<FactoryStub>,
29 public Factory<ICreatorStub>
30{
31 friend class Singleton<FactoryStub>;
32protected:
33 FactoryStub();
34 virtual ~FactoryStub();
35};
36
37#endif /* FACTORYSTUB_HPP_ */
Note: See TracBrowser for help on using the repository browser.