TIHierarchical.h
Go to the documentation of this file.
1 #ifndef istd_TIHierarchical_included
2 #define istd_TIHierarchical_included
3 
4 
5 // ACF includes
6 #include <istd/IPolymorphic.h>
7 
8 
9 namespace istd
10 {
11 
12 
16 template <class Interface>
17 class TIHierarchical: virtual public Interface
18 {
19 public:
20  typedef Interface InterfaceType;
21 
26  {
36  };
37 
42  virtual int GetHierarchicalFlags() const = 0;
48  virtual int GetChildsCount() const = 0;
52  virtual Interface* GetChild(int index) const = 0;
58  virtual Interface* GetParent() const = 0;
59 };
60 
61 
63 
64 
65 } // namespace istd
66 
67 
68 #endif // !istd_TIHierarchical_included
69 
If active child information is supported.
If active parent information is supported.
HierarchicalFlags
Flags describing supported features of this hierarchical graph.
Common interface to define the hierarchical graph structures.
virtual Interface * GetChild(int index) const =0
Get child value.
TIHierarchical< IPolymorphic > IHierarchical
virtual Interface * GetParent() const =0
Get access to parent object.
virtual int GetHierarchicalFlags() const =0
Get flags describing supported features of this hierarchical graph.
virtual int GetChildsCount() const =0
Get number of childs.

© 2007-2017 Witold Gantzke and Kirill Lepskiy