ICF 3.1.1.10
Technical documentation of ICF Libraries
IComponentContext.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9#include <istd/IPolymorphic.h>
10
11
12namespace iser
13{
14 class IObject;
15}
16
17
18namespace icomp
19{
20
21
22class IRegistryElement;
23class IComponent;
24class IComponentStaticInfo;
25
26
35class IComponentContext: virtual public istd::IPolymorphic
36{
37public:
42 virtual const QByteArray& GetContextId() const = 0;
48 virtual const IRegistryElement& GetRegistryElement() const = 0;
49
53 virtual const IComponentStaticInfo& GetStaticInfo() const = 0;
54
58 virtual const IComponentContext* GetParentContext() const = 0;
59
66 virtual const iser::IObject* GetAttribute(const QByteArray& attributeId, int* definitionLevelPtr = nullptr) const = 0;
67};
68
69
70} // namespace icomp
71
72
Provide session context of component.
virtual const IRegistryElement & GetRegistryElement() const =0
Get access to component registry element object.
virtual const IComponentStaticInfo & GetStaticInfo() const =0
Get component static info associated with this context.
virtual const iser::IObject * GetAttribute(const QByteArray &attributeId, int *definitionLevelPtr=nullptr) const =0
Get attribute using its ID.
virtual const QByteArray & GetContextId() const =0
Get ID of this component in the context tree.
virtual const IComponentContext * GetParentContext() const =0
Get access to parent component context.
This interface provide static information about component meta info.
Represents element of registry describing component parameters.
Common interface for factorisable model objects.
Definition IObject.h:25
Package with interfaces and class used for components concept.
Contains general persistence mechanism with basic archives implementations.

© Witold Gantzke and Kirill Lepskiy