#include <contexttypeinfo.h>
Public Member Functions | |
ContextTypeInfo (const AssocTree &tree) | |
ContextTypeInfo (const QVariant &tree) | |
ContextTypeInfo () | |
ContextTypeInfo | ensureNewTypes () |
Returns a ContexTypeInfo where old-style type names (INTEGER, STRING, BOOL) are replaced with new-style type names (integer, string, bool). | |
bool | typeCheck (const QVariant &value) const |
Verifies if value is acceptable as a representative of the type that this ContextTypeInfo object describes. | |
bool | hasBase (QString wanted, int depth=10) const |
ContextTypeInfo | getBase (QString wanted, int depth=10) const |
QVariantList | parameters () const |
QVariant | parameterValue (QString p) const |
AssocTree | parameterNode (QString p) const |
AssocTree | definition () const |
Returns the AssocTree with the type definition for this type. | |
QString | parameterDoc (QString p) const |
QString | doc () const |
ContextTypeInfo | base () const |
ContextTypeInfo::ContextTypeInfo | ( | const AssocTree & | tree | ) |
ContextTypeInfo::ContextTypeInfo | ( | const QVariant & | tree | ) |
ContextTypeInfo::ContextTypeInfo | ( | ) |
ContextTypeInfo ContextTypeInfo::ensureNewTypes | ( | ) |
Returns a ContexTypeInfo where old-style type names (INTEGER, STRING, BOOL) are replaced with new-style type names (integer, string, bool).
Returns self if the ContextTypeInfo is already new-style.
bool ContextTypeInfo::typeCheck | ( | const QVariant & | value | ) | const |
Verifies if value is acceptable as a representative of the type that this ContextTypeInfo object describes.
bool ContextTypeInfo::hasBase | ( | QString | wanted, | |
int | depth = 10 | |||
) | const |
ContextTypeInfo ContextTypeInfo::getBase | ( | QString | wanted, | |
int | depth = 10 | |||
) | const |
QVariantList ContextTypeInfo::parameters | ( | ) | const |
QVariant ContextTypeInfo::parameterValue | ( | QString | p | ) | const |
AssocTree ContextTypeInfo::parameterNode | ( | QString | p | ) | const |
AssocTree ContextTypeInfo::definition | ( | ) | const |
Returns the AssocTree with the type definition for this type.
QString ContextTypeInfo::parameterDoc | ( | QString | p | ) | const |
QString ContextTypeInfo::doc | ( | ) | const |
ContextTypeInfo ContextTypeInfo::base | ( | ) | const |