AbstractPropertyType is a homogeneous property type handle to an existing property type. More...
#include <kanzi/core/property/abstract_property_type.hpp>
Public Member Functions | |
AbstractPropertyType () | |
Constructor. | |
AbstractPropertyType (AbstractPropertyTypeDescriptor *descriptor) | |
Constructor. | |
AbstractPropertyType (string_view name) | |
Constructor. | |
AbstractPropertyTypeDescriptor * | get () const |
uint32_t | getChangeFlags () const |
Gets the change flags for a property type. | |
PropertyDataType | getDataType () const |
Gets the data type of a property type. | |
PropertyTypeEditorInfoSharedPtr | getEditorInfo () const |
Gets the editor information of a property type. | |
const char * | getName () const |
Gets the fully qualified name of a property type in the form "Class.PropertyType". | |
const char * | getUnqualifiedName () const |
Gets the unqualified name of a property type in the form "PropertyType". | |
bool | isInherited () const |
Returns whether a property type is inheritable. | |
operator bool_type () const | |
Friends | |
bool | operator!= (const AbstractPropertyType &left, const AbstractPropertyType &right) |
bool | operator< (const AbstractPropertyType &left, const AbstractPropertyType &right) |
bool | operator== (const AbstractPropertyType &left, const AbstractPropertyType &right) |
bool | operator> (const AbstractPropertyType &left, const AbstractPropertyType &right) |
AbstractPropertyType is a homogeneous property type handle to an existing property type.
You can use AbstractPropertyType to operate on property types when a property type and its data type are unknown or irrelevant. It is usually more convenient to pass AbstractPropertyType as a function argument instead of specifying the exact property type with certain data type. Both PropertyType and DynamicPropertyType have a converting operators to AbstractPropertyType. This enables you to pass these types directly to functions taking AbstractPropertyType argument.
You can query generic non-data type specific property type information from an instance of an AbstractPropertyType. To set or get property values with corresponding data type, you must construct a DynamicPropertyType.
To learn how to create a Kanzi property type, see PropertyType.
To construct an AbstractPropertyType with a fully qualified property type name:
To compare an AbstractPropertyType to an existing property type:
To construct a DynamicPropertyType from an AbstractPropertyType after resolving data type:
|
inlineexplicit |
Constructor.
Creates an empty AbstractPropertyType instance.
|
inlineexplicit |
Constructor.
Creates an AbstractPropertyType instance referring to the existing property type with the given name. If a property type with the given name does not already exist in the Kanzi property system, the created AbstractPropertyType instance is empty.
name | Fully qualified name of a property type. |
|
inlineexplicit |
Constructor.
Used internally by the Kanzi property system.
descriptor | Abstract property type descriptor. |
|
inline |
|
inline |
Gets the fully qualified name of a property type in the form "Class.PropertyType".
Gets the unqualified name of a property type in the form "PropertyType".
|
inline |
Gets the data type of a property type.
The data type of a property type defines the data representation type of each property value. For example, float.
|
inline |
Returns whether a property type is inheritable.
Inheritable property types provide values to all descendant nodes.
|
inline |
Gets the change flags for a property type.
Change flags indicate whether a modification of property value invalidates a particular aspect of a node. For example, when you change the Node::HeightProperty or Node::WidthProperty in a node Kanzi recalculates the layout.
|
inline |
Gets the editor information of a property type.
|
friend |
|
friend |
|
friend |
|
friend |