IParamsSet.h
Go to the documentation of this file.
1 #ifndef iprm_IParamsSet_included
2 #define iprm_IParamsSet_included
3 
4 
5 // Qt includes
6 #include <QtCore/QSet>
7 #include <QtCore/QByteArray>
8 
9 // ACF includes
10 #include <iser/IObject.h>
11 
12 #include <iprm/iprm.h>
13 
14 
15 namespace iprm
16 {
17 
18 
23 class IParamsSet: virtual public iser::IObject
24 {
25 public:
26  typedef QSet<QByteArray> Ids;
27 
32  virtual Ids GetParamIds(bool editableOnly = false) const = 0;
33 
39  virtual const iser::ISerializable* GetParameter(const QByteArray& id) const = 0;
40 
46  virtual iser::ISerializable* GetEditableParameter(const QByteArray& id) = 0;
47 };
48 
49 
50 } // namespace iprm
51 
52 
53 #endif // !iprm_IParamsSet_included
54 
55 
QSet< QByteArray > Ids
Definition: IParamsSet.h:26
virtual Ids GetParamIds(bool editableOnly=false) const =0
Get list of used parameter IDs in the parameter set.
Common class for all classes which objects can be archived or restored from archive.
Definition: ISerializable.h:23
Common interface for factorisable model objects.
Definition: IObject.h:19
virtual const iser::ISerializable * GetParameter(const QByteArray &id) const =0
Get any parameter.
Set of general parameters.
Definition: IParamsSet.h:23
virtual iser::ISerializable * GetEditableParameter(const QByteArray &id)=0
Get access to editable parameter.

© 2007-2017 Witold Gantzke and Kirill Lepskiy