ICF 3.1.1.10
Technical documentation of ICF Libraries
IParamsSet.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#ifndef iprm_IParamsSet_included
7#define iprm_IParamsSet_included
8
9
10// Qt includes
11#include <QtCore/QSet>
12#include <QtCore/QByteArray>
13
14// ICF includes
15#include <iser/IObject.h>
16
17#include <iprm/iprm.h>
18
19
20namespace iprm
21{
22
23
28class IParamsSet: virtual public iser::IObject
29{
30public:
31 typedef QSet<QByteArray> Ids;
32
37 virtual Ids GetParamIds(bool editableOnly = false) const = 0;
38
44 virtual const iser::ISerializable* GetParameter(const QByteArray& id) const = 0;
45
51 virtual iser::ISerializable* GetEditableParameter(const QByteArray& id) = 0;
52};
53
54
55} // namespace iprm
56
57
58#endif // !iprm_IParamsSet_included
59
60
Set of general parameters.
Definition IParamsSet.h:29
virtual const iser::ISerializable * GetParameter(const QByteArray &id) const =0
Get any parameter.
QSet< QByteArray > Ids
Definition IParamsSet.h:31
virtual iser::ISerializable * GetEditableParameter(const QByteArray &id)=0
Get access to editable parameter.
virtual Ids GetParamIds(bool editableOnly=false) const =0
Get list of used parameter IDs in the parameter set.
Common interface for factorisable model objects.
Definition IObject.h:25
Common class for all classes which objects can be archived or restored from archive.
Contains interfaces and implementations of flexible parameter concept.

© Witold Gantzke and Kirill Lepskiy