TIFactory.h
Go to the documentation of this file.
1 #ifndef istd_TIFactory_included
2 #define istd_TIFactory_included
3 
4 
5 // ACF includes
6 #include <istd/IFactoryInfo.h>
7 
8 
9 namespace istd
10 {
11 
12 
16 template <class Interface>
17 class TIFactory: virtual public IFactoryInfo
18 {
19 public:
20  typedef Interface InterfaceType;
21 
27  virtual Interface* CreateInstance(const QByteArray& keyId = "") const = 0;
28 };
29 
30 
33 
34 
35 } // namespace istd
36 
37 
38 #endif // !istd_TIFactory_included
39 
TIFactory< void > IVoidFactory
Definition: TIFactory.h:31
Generic interface for a factory.
Definition: TIFactory.h:17
Base interface providing info about factorisable objects.
Definition: IFactoryInfo.h:20
Interface InterfaceType
Definition: TIFactory.h:20
TIFactory< istd::IPolymorphic > IFactory
Definition: TIFactory.h:32
virtual Interface * CreateInstance(const QByteArray &keyId="") const =0
Create an instance of the object, mapped to the keyId keyId.

© 2007-2017 Witold Gantzke and Kirill Lepskiy