step/stepcore
object.h
Go to the documentation of this file.
345 static bool writeNull(Object* obj, const QVariant& v) { Q_UNUSED(obj) Q_UNUSED(v) return false; }
346 static bool writeStringNull(Object* obj, const QString& s) { Q_UNUSED(obj) Q_UNUSED(s) return false; }
370 #define STEPCORE_META_OBJECT(_className, _classNameNoop, _description, _flags, __superClasses, __properties) \
371 const StepCore::MetaProperty _className::_classProperties[] = { _STEPCORE_PROPERTY_NULL, __properties }; \
375 StepCore::MetaObjectHelper<_className, _flags & StepCore::MetaObject::ABSTRACT>::newObjectHelper, \
376 StepCore::MetaObjectHelper<_className, _flags & StepCore::MetaObject::ABSTRACT>::cloneObjectHelper, \
378 _classProperties+1, sizeof(_classProperties)/sizeof(*_classProperties)-1, false, 0, 0, 0, QBitArray(), "", "" };
390 #define STEPCORE_PROPERTY_RWF(_type, _name, _nameNoop, _units, _description, _flags, _read, _write) \
407 STEPCORE_PROPERTY_RF(_type, _name, _nameNoop, _units, _description, StepCore::MetaProperty::DYNAMIC, _read)
const MetaProperty *const _classProperties
Definition: object.h:244
Object *(*const _cloneObject)(const Object &)
Definition: object.h:240
const QString & descriptionTr() const
Returns translated class description.
Definition: object.h:192
Changing this property has side-effects (changes in other dynamic or non-dynamic properties) ...
Definition: object.h:85
Definition: object.h:289
T value() const
static QVariant readNull(const Object *obj)
Definition: object.h:343
Definition: object.h:350
bool writeVariant(Object *obj, const QVariant &v) const
Write property as QVariant.
Definition: object.h:133
static bool write(Object *obj, const QVariant &v)
Definition: object.h:300
bool hasSideEffects() const
Returns true if this property has side-effects (changes in other dynamic or non-dynamic properties) ...
Definition: object.h:150
bool(*const _writeVariant)(Object *obj, const QVariant &v)
Definition: object.h:159
bool writeString(Object *obj, const QString &s) const
Write property as string.
Definition: object.h:138
static bool writeStringNull(Object *obj, const QString &s)
Definition: object.h:346
bool isDynamic() const
Returns true if this property is dynamic (changes during simulation)
Definition: object.h:147
QString(*const _readString)(const Object *obj)
Definition: object.h:160
static Object * newObjectHelper()
Definition: object.h:351
Internal file.
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))
Definition: object.h:101
static QString readString(const Object *obj)
Definition: object.h:318
int userType() const
Variable changes during simulation or changes of other properties.
Definition: object.h:84
static Object * cloneObjectHelper(const Object &obj)
Definition: object.h:352
const QString & descriptionTr() const
Returns translated property description.
Definition: object.h:126
QVariant fromValue(const T &value)
static QString readStringNull(const Object *obj)
Definition: object.h:344
const QString & unitsTr() const
Returns translated property units (if appropriate)
Definition: object.h:124
static Object * newObjectHelper()
Definition: object.h:359
static Object * cloneObjectHelper(const Object &obj)
Definition: object.h:360
QVariant(*const _readVariant)(const Object *obj)
Definition: object.h:158
Object * cloneObject(const Object &obj) const
Creates a copy of given object.
Definition: object.h:202
void copyProperties(const MetaProperty **dest) const
const MetaProperty * classProperty(int n) const
Returns non-inherited property.
Definition: object.h:222
bool(*const _writeString)(Object *obj, const QString &v)
Definition: object.h:161
static bool writeString(Object *obj, const QString &s)
Definition: object.h:326
bool convert(Type t)
QString toString() const
static bool writeNull(Object *obj, const QVariant &v)
Definition: object.h:345
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.