IComponentContext.h
Go to the documentation of this file.
1 #ifndef icomp_IComponentContext_included
2 #define icomp_IComponentContext_included
3 
4 
5 #include <istd/IPolymorphic.h>
6 
7 
8 namespace iser
9 {
10  class IObject;
11 }
12 
13 
14 namespace icomp
15 {
16 
17 
18 class IRegistryElement;
19 class IComponent;
20 class IComponentStaticInfo;
21 
22 
34 {
35 public:
40  virtual const QByteArray& GetContextId() const = 0;
46  virtual const IRegistryElement& GetRegistryElement() const = 0;
47 
51  virtual const IComponentStaticInfo& GetStaticInfo() const = 0;
52 
56  virtual const IComponentContext* GetParentContext() const = 0;
57 
64  virtual const iser::IObject* GetAttribute(const QByteArray& attributeId, int* definitionLevelPtr = NULL) const = 0;
65 };
66 
67 
68 } // namespace icomp
69 
70 
71 #endif // !icomp_IComponentContext_included
72 
73 
virtual const IRegistryElement & GetRegistryElement() const =0
Get access to component registry element object.
Provide session context of component.
Common interface for factorisable model objects.
Definition: IObject.h:19
virtual const QByteArray & GetContextId() const =0
Get ID of this component in the context tree.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
Represents element of registry describing component parameters.
#define NULL
Definition: istd.h:64
virtual const IComponentStaticInfo & GetStaticInfo() const =0
Get component static info associated with this context.
virtual const iser::IObject * GetAttribute(const QByteArray &attributeId, int *definitionLevelPtr=NULL) const =0
Get attribute using its ID.
This interface provide static information about component meta info.
virtual const IComponentContext * GetParentContext() const =0
Get access to parent component context.

© 2007-2017 Witold Gantzke and Kirill Lepskiy