ACF $AcfVersion:0$
CNumericAttributeMetaInfo.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
6#include <istd/TOptDelPtr.h>
7
8// ACF-Solutions includes
11
12
13namespace iattr
14{
15
16
21 public CAttributeMetaInfo,
22 virtual public INumericAttributeMetaInfo
23{
24public:
26
27 explicit CNumericAttributeMetaInfo(const QByteArray& typeId = "");
28
33 bool SetMinAttributeValue(const iser::IObject* valuePtr, bool releaseFlag);
38 bool SetMaxAttributeValue(const iser::IObject* valuePtr, bool releaseFlag);
39
40 // reimplemented (iattr::IEnumAttributeMetaInfo)
41 virtual bool GetMinimalValue(iser::IObject& result) const override;
42 virtual bool GetMaximalValue(iser::IObject& result) const override;
43
44private:
47};
48
49
50} // namespace iattr
51
52
53
54
Represents constraints of properties allowing values from enumerated set.
Represents constraints of properties allowing values from enumerated set.
bool SetMinAttributeValue(const iser::IObject *valuePtr, bool releaseFlag)
Set minimal value of attribute.
virtual bool GetMaximalValue(iser::IObject &result) const override
Get maximal allowed value for some attribute.
virtual bool GetMinimalValue(iser::IObject &result) const override
Get minimal allowed value for some attribute.
bool SetMaxAttributeValue(const iser::IObject *valuePtr, bool releaseFlag)
Set maximal value of attribute.
CNumericAttributeMetaInfo(const QByteArray &typeId="")
Represents constraints of properties allowing values from enumerated set.
Common interface for factorisable model objects.
Definition IObject.h:23
Pointer wrapper providing activatable deleting pointed object during destruction.
Definition TOptDelPtr.h:21
This namespace containes implementations of attributes concept.