CStandardAttributesFactory.h
Go to the documentation of this file.
1 #ifndef iattr_CStandardAttributesFactory_included
2 #define iattr_CStandardAttributesFactory_included
3 
4 
5 // ACF includes
6 #include <iser/IObject.h>
7 
8 
9 namespace iattr
10 {
11 
12 
17 {
18 public:
19  // reimplemented (istd::TIFactory<iser::IObject>)
20  virtual iser::IObject* CreateInstance(const QByteArray& keyId = "") const;
21 
22  // reimplemented (istd::IFactoryInfo)
23  virtual KeyList GetFactoryKeys() const;
24 
25  // static methods
27 
28 private:
29  static KeyList GetInitialFactoryKeys();
30 
31  // static attributes
32  static KeyList s_factoryKeys;
33  static CStandardAttributesFactory s_instance;
34 };
35 
36 
37 } // namespace iattr
38 
39 
40 #endif // !iattr_CStandardAttributesFactory_included
41 
42 
QSet< QByteArray > KeyList
Definition: IFactoryInfo.h:23
Basic implementation of an property container.
Common interface for factorisable model objects.
Definition: IObject.h:19
virtual KeyList GetFactoryKeys() const
Returns all posible keys for this factory.
virtual iser::IObject * CreateInstance(const QByteArray &keyId="") const
Create an instance of the object, mapped to the keyId keyId.
static const CStandardAttributesFactory & GetInstance()
Generic interface for a factory.
Definition: TIFactory.h:17

© 2007-2017 Witold Gantzke and Kirill Lepskiy