TComponentStaticInfo.h
Go to the documentation of this file.
1 #ifndef icomp_TComponentStaticInfo_included
2 #define icomp_TComponentStaticInfo_included
3 
4 
5 // ACF includes
6 #include <icomp/TComponentWrap.h>
8 
9 
10 namespace icomp
11 {
12 
13 
14 template <class Component>
16 {
17 public:
19 
20  explicit TComponentStaticInfo(const IRealComponentStaticInfo* baseComponentPtr = NULL);
21 
22  // reimplemented (icomp::IRealComponentStaticInfo)
23  virtual IComponent* CreateComponent() const;
24 
25  // reimplemented (icomp::IComponentStaticInfo)
26  virtual int GetComponentType() const;
27 };
28 
29 
30 // public methods
31 
32 template <class Component>
34 : BaseClass(baseComponentPtr)
35 {
36 }
37 
38 
39 // reimplemented (icomp::IRealComponentStaticInfo)
40 
41 template <class Component>
43 {
45 
46  return componentPtr;
47 }
48 
49 
50 // reimplemented (icomp::IComponentStaticInfo)
51 
52 template <class Component>
54 {
55  return CT_REAL;
56 }
57 
58 
59 } // namespace icomp
60 
61 
62 #endif // !icomp_TComponentStaticInfo_included
63 
64 
TComponentStaticInfo(const IRealComponentStaticInfo *baseComponentPtr=NULL)
Main component interface.
Definition: IComponent.h:31
virtual int GetComponentType() const
Get information about component type.
Wrapper of end component implementation used to correct control of component life-cycle.
virtual IComponent * CreateComponent() const
Create component instance.
Standard implementation of static info for base component classes.
Interface adding to component static info functionality existing only for real components.
#define NULL
Definition: istd.h:64
CBaseComponentStaticInfo BaseClass

© 2007-2017 Witold Gantzke and Kirill Lepskiy