ACF
$AcfVersion:0$
Acf
Include
iattr
IAttributeMetaInfo.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 <
iser/IObject.h
>
7
8
9
namespace
iattr
10
{
11
12
16
class
IAttributeMetaInfo
:
virtual
public
istd::IChangeable
17
{
18
public
:
22
enum
AttributeFlags
23
{
27
AF_OBLIGATORY
= 1 << 0,
32
AF_NULLABLE
= 1 << 1,
36
AF_SINGLE
= 1 << 2,
40
AF_MULTIPLE
= 1 << 3,
44
AF_VALUE
= 1 << 4,
48
AF_READ_ONLY
= 1 << 31
49
};
50
54
virtual
QString
GetAttributeDescription
()
const
= 0;
55
60
virtual
const
iser::IObject
*
GetAttributeDefaultValue
()
const
= 0;
61
67
virtual
QByteArray
GetAttributeTypeId
()
const
= 0;
68
72
virtual
int
GetAttributeFlags
()
const
= 0;
73
};
74
75
76
}
// namespace iattr
77
78
79
80
IObject.h
iattr::IAttributeMetaInfo
Meta information describing single attribute.
Definition
IAttributeMetaInfo.h:17
iattr::IAttributeMetaInfo::GetAttributeDefaultValue
virtual const iser::IObject * GetAttributeDefaultValue() const =0
Get default attribute value.
iattr::IAttributeMetaInfo::GetAttributeFlags
virtual int GetAttributeFlags() const =0
Get flags of this attribute.
iattr::IAttributeMetaInfo::GetAttributeDescription
virtual QString GetAttributeDescription() const =0
Get description of this attribute.
iattr::IAttributeMetaInfo::GetAttributeTypeId
virtual QByteArray GetAttributeTypeId() const =0
Return attribute type ID.
iattr::IAttributeMetaInfo::AttributeFlags
AttributeFlags
Flags signalizing set of attribute properties.
Definition
IAttributeMetaInfo.h:23
iattr::IAttributeMetaInfo::AF_READ_ONLY
@ AF_READ_ONLY
Attribute is simple value type.
Definition
IAttributeMetaInfo.h:48
iattr::IAttributeMetaInfo::AF_OBLIGATORY
@ AF_OBLIGATORY
Active if user declared this attribute as obligatory.
Definition
IAttributeMetaInfo.h:27
iattr::IAttributeMetaInfo::AF_NULLABLE
@ AF_NULLABLE
Active if this attribute can be unset (null).
Definition
IAttributeMetaInfo.h:32
iattr::IAttributeMetaInfo::AF_SINGLE
@ AF_SINGLE
Attribute is single type.
Definition
IAttributeMetaInfo.h:36
iattr::IAttributeMetaInfo::AF_MULTIPLE
@ AF_MULTIPLE
Attribute is multiple type.
Definition
IAttributeMetaInfo.h:40
iattr::IAttributeMetaInfo::AF_VALUE
@ AF_VALUE
Attribute is simple value type.
Definition
IAttributeMetaInfo.h:44
iser::IObject
Common interface for factorisable model objects.
Definition
IObject.h:23
istd::IChangeable
Common interface for data model objects, which can be changed.
Definition
IChangeable.h:28
iattr
This namespace containes implementations of attributes concept.
Definition
CAttributeMetaInfo.h:13
Generated by
1.9.8