• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

step/stepcore

  • StepCore
  • MetaProperty
Public Types | Public Member Functions | Public Attributes | List of all members
StepCore::MetaProperty Class Reference
Reflections

#include <object.h>

Public Types

enum  {
  READABLE = 1, WRITABLE = 2, STORED = 4, DYNAMIC = 32,
  SIDEEFFECTS = 64
}
 

Public Member Functions

 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
 

Public Attributes

const QString _description
 
QString _descriptionTr
 
const int _flags
 
bool _initialized
 
const QString _name
 
QString _nameTr
 
QString(*const _readString )(const Object *obj)
 
QVariant(*const _readVariant )(const Object *obj)
 
const QString _units
 
QString _unitsTr
 
const int _userTypeId
 
bool(*const _writeString )(Object *obj, const QString &v)
 
bool(*const _writeVariant )(Object *obj, const QVariant &v)
 

Detailed Description

Meta-information about property.

Definition at line 77 of file object.h.

Member Enumeration Documentation

anonymous enum
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.

Constructor & Destructor Documentation

StepCore::MetaProperty::MetaProperty ( )
inline

Definition at line 91 of file object.h.

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

Definition at line 101 of file object.h.

Member Function Documentation

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

Definition at line 116 of file object.cc.

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

Definition at line 170 of file object.h.

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.

Member Data Documentation

const QString StepCore::MetaProperty::_description

Definition at line 155 of file object.h.

QString StepCore::MetaProperty::_descriptionTr
mutable

Definition at line 166 of file object.h.

const int StepCore::MetaProperty::_flags

Definition at line 156 of file object.h.

bool StepCore::MetaProperty::_initialized
mutable

Definition at line 163 of file object.h.

const QString StepCore::MetaProperty::_name

Definition at line 153 of file object.h.

QString StepCore::MetaProperty::_nameTr
mutable

Definition at line 164 of file object.h.

QString(*const StepCore::MetaProperty::_readString)(const Object *obj)

Definition at line 160 of file object.h.

QVariant(*const StepCore::MetaProperty::_readVariant)(const Object *obj)

Definition at line 158 of file object.h.

const QString StepCore::MetaProperty::_units

Definition at line 154 of file object.h.

QString StepCore::MetaProperty::_unitsTr
mutable

Definition at line 165 of file object.h.

const int StepCore::MetaProperty::_userTypeId

Definition at line 157 of file object.h.

bool(*const StepCore::MetaProperty::_writeString)(Object *obj, const QString &v)

Definition at line 161 of file object.h.

bool(*const StepCore::MetaProperty::_writeVariant)(Object *obj, const QVariant &v)

Definition at line 159 of file object.h.


The documentation for this class was generated from the following files:
  • object.h
  • object.cc
  • rigidbody.cc
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.

step/stepcore

Skip menu "step/stepcore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal