step/stepcore
#include <object.h>
|
| MetaProperty () |
|
| MetaProperty (const QString &name, const QString &units, const QString &description, int flags, int userType, QVariant(*const readVariant)(const Object *), bool(*const writeVariant)(Object *obj, const QVariant &v), QString(*const readString)(const Object *obj), bool(*const writeString)(Object *obj, const QString &v)) |
|
const QString & | description () const |
|
const QString & | descriptionTr () const |
|
int | flags () const |
|
bool | hasSideEffects () const |
|
void | init () const |
|
bool | isDynamic () const |
|
bool | isReadable () const |
|
bool | isStored () const |
|
bool | isWritable () const |
|
const QString & | name () const |
|
const QString & | nameTr () const |
|
QString | readString (const Object *obj) const |
|
QVariant | readVariant (const Object *obj) const |
|
void | tryInit () const |
|
const QString & | units () const |
|
const QString & | unitsTr () const |
|
int | userTypeId () const |
|
bool | writeString (Object *obj, const QString &s) const |
|
bool | writeVariant (Object *obj, const QVariant &v) const |
|
Meta-information about property.
Definition at line 77 of file object.h.
Enumerator |
---|
READABLE |
Property is readable.
|
WRITABLE |
Property is writable.
|
STORED |
Property should be stored in file.
|
DYNAMIC |
Variable changes during simulation or changes of other properties.
|
SIDEEFFECTS |
Changing this property has side-effects (changes in other dynamic or non-dynamic properties)
- Note
- Do not set this together with STORED
|
Definition at line 80 of file object.h.
StepCore::MetaProperty::MetaProperty |
( |
| ) |
|
|
inline |
StepCore::MetaProperty::MetaProperty |
( |
const QString & |
name, |
|
|
const QString & |
units, |
|
|
const QString & |
description, |
|
|
int |
flags, |
|
|
int |
userType, |
|
|
QVariant(*)(const Object *) |
readVariant, |
|
|
bool(*)(Object *obj, const QVariant &v) |
writeVariant, |
|
|
QString(*)(const Object *obj) |
readString, |
|
|
bool(*)(Object *obj, const QString &v) |
writeString |
|
) |
| |
|
inline |
const QString& StepCore::MetaProperty::description |
( |
| ) |
const |
|
inline |
Returns property description.
Definition at line 117 of file object.h.
const QString& StepCore::MetaProperty::descriptionTr |
( |
| ) |
const |
|
inline |
Returns translated property description.
Definition at line 126 of file object.h.
int StepCore::MetaProperty::flags |
( |
| ) |
const |
|
inline |
Returns property flags.
Definition at line 119 of file object.h.
bool StepCore::MetaProperty::hasSideEffects |
( |
| ) |
const |
|
inline |
Returns true if this property has side-effects (changes in other dynamic or non-dynamic properties)
Definition at line 150 of file object.h.
void StepCore::MetaProperty::init |
( |
| ) |
const |
bool StepCore::MetaProperty::isDynamic |
( |
| ) |
const |
|
inline |
Returns true if this property is dynamic (changes during simulation)
Definition at line 147 of file object.h.
bool StepCore::MetaProperty::isReadable |
( |
| ) |
const |
|
inline |
Returns true if this property is readable.
Definition at line 141 of file object.h.
bool StepCore::MetaProperty::isStored |
( |
| ) |
const |
|
inline |
Returns true if this property should be stored.
Definition at line 145 of file object.h.
bool StepCore::MetaProperty::isWritable |
( |
| ) |
const |
|
inline |
Returns true if this property is writable.
Definition at line 143 of file object.h.
const QString& StepCore::MetaProperty::name |
( |
| ) |
const |
|
inline |
Returns property name.
Definition at line 113 of file object.h.
const QString& StepCore::MetaProperty::nameTr |
( |
| ) |
const |
|
inline |
Returns translated property name.
Definition at line 122 of file object.h.
QString StepCore::MetaProperty::readString |
( |
const Object * |
obj | ) |
const |
|
inline |
Read property as string.
Definition at line 136 of file object.h.
QVariant StepCore::MetaProperty::readVariant |
( |
const Object * |
obj | ) |
const |
|
inline |
Read property as QVariant.
Definition at line 131 of file object.h.
void StepCore::MetaProperty::tryInit |
( |
| ) |
const |
|
inline |
const QString& StepCore::MetaProperty::units |
( |
| ) |
const |
|
inline |
Returns property units (if appropriate)
Definition at line 115 of file object.h.
const QString& StepCore::MetaProperty::unitsTr |
( |
| ) |
const |
|
inline |
Returns translated property units (if appropriate)
Definition at line 124 of file object.h.
int StepCore::MetaProperty::userTypeId |
( |
| ) |
const |
|
inline |
Returns property userType (see QMetaProperty)
Definition at line 129 of file object.h.
bool StepCore::MetaProperty::writeString |
( |
Object * |
obj, |
|
|
const QString & |
s |
|
) |
| const |
|
inline |
Write property as string.
- Returns
- true on success
Definition at line 138 of file object.h.
bool StepCore::MetaProperty::writeVariant |
( |
Object * |
obj, |
|
|
const QVariant & |
v |
|
) |
| const |
|
inline |
Write property as QVariant.
- Returns
- true on success
Definition at line 133 of file object.h.
const QString StepCore::MetaProperty::_description |
QString StepCore::MetaProperty::_descriptionTr |
|
mutable |
const int StepCore::MetaProperty::_flags |
bool StepCore::MetaProperty::_initialized |
|
mutable |
const QString StepCore::MetaProperty::_name |
QString StepCore::MetaProperty::_nameTr |
|
mutable |
QString(*const StepCore::MetaProperty::_readString)(const Object *obj) |
QVariant(*const StepCore::MetaProperty::_readVariant)(const Object *obj) |
const QString StepCore::MetaProperty::_units |
QString StepCore::MetaProperty::_unitsTr |
|
mutable |
const int StepCore::MetaProperty::_userTypeId |
bool(*const StepCore::MetaProperty::_writeString)(Object *obj, const QString &v) |
bool(*const StepCore::MetaProperty::_writeVariant)(Object *obj, const QVariant &v) |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:06 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.