ACF
$AcfVersion:0$
Acf
Include
iattr
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
9
#include <
iattr/INumericAttributeMetaInfo.h
>
10
#include <
iattr/CAttributeMetaInfo.h
>
11
12
13
namespace
iattr
14
{
15
16
20
class
CNumericAttributeMetaInfo
:
21
public
CAttributeMetaInfo
,
22
virtual
public
INumericAttributeMetaInfo
23
{
24
public
:
25
typedef
CAttributeMetaInfo
BaseClass
;
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
44
private
:
45
istd::TOptDelPtr<const iser::IObject>
m_minAttributePtr;
46
istd::TOptDelPtr<const iser::IObject>
m_maxAttributePtr;
47
};
48
49
50
}
// namespace iattr
51
52
53
54
CAttributeMetaInfo.h
INumericAttributeMetaInfo.h
TOptDelPtr.h
iattr::CAttributeMetaInfo
Represents constraints of properties allowing values from enumerated set.
Definition
CAttributeMetaInfo.h:20
iattr::CNumericAttributeMetaInfo
Represents constraints of properties allowing values from enumerated set.
Definition
CNumericAttributeMetaInfo.h:23
iattr::CNumericAttributeMetaInfo::SetMinAttributeValue
bool SetMinAttributeValue(const iser::IObject *valuePtr, bool releaseFlag)
Set minimal value of attribute.
iattr::CNumericAttributeMetaInfo::GetMaximalValue
virtual bool GetMaximalValue(iser::IObject &result) const override
Get maximal allowed value for some attribute.
iattr::CNumericAttributeMetaInfo::GetMinimalValue
virtual bool GetMinimalValue(iser::IObject &result) const override
Get minimal allowed value for some attribute.
iattr::CNumericAttributeMetaInfo::BaseClass
CAttributeMetaInfo BaseClass
Definition
CNumericAttributeMetaInfo.h:25
iattr::CNumericAttributeMetaInfo::SetMaxAttributeValue
bool SetMaxAttributeValue(const iser::IObject *valuePtr, bool releaseFlag)
Set maximal value of attribute.
iattr::CNumericAttributeMetaInfo::CNumericAttributeMetaInfo
CNumericAttributeMetaInfo(const QByteArray &typeId="")
iattr::INumericAttributeMetaInfo
Represents constraints of properties allowing values from enumerated set.
Definition
INumericAttributeMetaInfo.h:16
iser::IObject
Common interface for factorisable model objects.
Definition
IObject.h:23
istd::TOptDelPtr
Pointer wrapper providing activatable deleting pointed object during destruction.
Definition
TOptDelPtr.h:21
iattr
This namespace containes implementations of attributes concept.
Definition
CAttributeMetaInfo.h:13
Generated by
1.9.8