|
Krita Source Code Documentation
|
#include <kis_meta_data_type_info.h>
Classes | |
| class | Choice |
Public Types | |
| enum | PropertyType { BooleanType , IntegerType , DateType , TextType , OrderedArrayType , UnorderedArrayType , AlternativeArrayType , LangArrayType , StructureType , RationalType , GPSCoordinateType , OpenedChoice , ClosedChoice } |
Public Member Functions | |
| const QList< Choice > & | choices () const |
| const TypeInfo * | embeddedPropertyType () const |
| bool | hasCorrectType (const Value &value) const |
| bool | hasCorrectValue (const Value &value) const |
| const Parser * | parser () const |
| PropertyType | propertyType () const |
| const QString & | structureName () const |
| Schema * | structureSchema () const |
Private Member Functions | |
| TypeInfo (PropertyType _propertiesType) | |
| TypeInfo (PropertyType _propertiesType, const TypeInfo *_embedded) | |
| TypeInfo (PropertyType _propertiesType, const TypeInfo *_embedded, const QList< Choice > &) | |
| TypeInfo (Schema *_structureSchema, const QString &name) | |
| ~TypeInfo () | |
Private Attributes | |
| Private *const | d |
Definition at line 19 of file kis_meta_data_type_info.h.
| Enumerator | |
|---|---|
| BooleanType | |
| IntegerType | |
| DateType | |
| TextType | |
| OrderedArrayType | |
| UnorderedArrayType | |
| AlternativeArrayType | |
| LangArrayType | |
| StructureType | |
| RationalType | |
| GPSCoordinateType | |
| OpenedChoice | |
| ClosedChoice | |
Definition at line 22 of file kis_meta_data_type_info.h.
|
private |
|
private |
Create a TypeInfo for a
|
private |
Create a TypeInfo for a choice (either open or closed).
| _propertiesType | either OpenedChoice or ClosedChoice |
|
private |
Create a TypeInfo for a structure.
Definition at line 146 of file kis_meta_data_type_info.cc.
References d, and StructureType.
|
private |
Definition at line 153 of file kis_meta_data_type_info.cc.
References d.
| const QList< TypeInfo::Choice > & TypeInfo::choices | ( | ) | const |
Definition at line 169 of file kis_meta_data_type_info.cc.
References d.
| const TypeInfo * TypeInfo::embeddedPropertyType | ( | ) | const |
Definition at line 164 of file kis_meta_data_type_info.cc.
References d.
| bool TypeInfo::hasCorrectType | ( | const Value & | value | ) | const |
value has a type that is correct for this TypeInfo Definition at line 200 of file kis_meta_data_type_info.cc.
References KisMetaData::Value::AlternativeArray, AlternativeArrayType, BooleanType, checkArray(), ClosedChoice, d, DateType, GPSCoordinateType, hasCorrectType(), IntegerType, KisMetaData::Value::LangArray, LangArrayType, OpenedChoice, KisMetaData::Value::OrderedArray, OrderedArrayType, KisMetaData::Value::propertyQualifiers(), KisMetaData::Value::Rational, RationalType, KisMetaData::Value::Structure, StructureType, TextType, KisMetaData::Value::UnorderedArray, UnorderedArrayType, value(), and KisMetaData::Value::Variant.
| bool TypeInfo::hasCorrectValue | ( | const Value & | value | ) | const |
value has a value acceptable for this TypeInfo Definition at line 266 of file kis_meta_data_type_info.cc.
References ClosedChoice, d, KisMetaData::TypeInfo::Choice::value(), and value().
| const Parser * TypeInfo::parser | ( | ) | const |
Definition at line 184 of file kis_meta_data_type_info.cc.
References d.
| TypeInfo::PropertyType TypeInfo::propertyType | ( | ) | const |
Definition at line 159 of file kis_meta_data_type_info.cc.
References d.
| const QString & TypeInfo::structureName | ( | ) | const |
Definition at line 179 of file kis_meta_data_type_info.cc.
References d.
| Schema * TypeInfo::structureSchema | ( | ) | const |
Definition at line 174 of file kis_meta_data_type_info.cc.
References d.
|
private |
Definition at line 85 of file kis_meta_data_type_info.h.