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

step/stepcore

  • sources
  • kde-4.12
  • kdeedu
  • step
  • stepcore
Classes | Namespaces | Macros | Functions
object.h File Reference
#include <QString>
#include <QVariant>
#include <QBitArray>
#include <Eigen/Core>
#include "util.h"
Include dependency graph for object.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StepCore::MetaObject
 
struct  StepCore::MetaObjectHelper< Class, N >
 
struct  StepCore::MetaObjectHelper< Class, MetaObject::ABSTRACT >
 
class  StepCore::MetaProperty
 
struct  StepCore::MetaPropertyHelper< C, T >
 
class  StepCore::Object
 

Namespaces

 StepCore
 

Macros

#define _STEPCORE_PROPERTY_NULL   StepCore::MetaProperty()
 
#define STEPCORE_FROM_UTF8(str)   QString::fromUtf8(str)
 
#define STEPCORE_META_OBJECT(_className, _classNameNoop, _description, _flags, __superClasses, __properties)
 
#define STEPCORE_OBJECT(_className)
 
#define STEPCORE_OBJECT_NA(_className)
 
#define STEPCORE_PROPERTY_R(_type, _name, _nameNoop, _units, _description, _read)   STEPCORE_PROPERTY_RF(_type, _name, _nameNoop, _units, _description, 0, _read)
 
#define STEPCORE_PROPERTY_R_D(_type, _name, _nameNoop, _units, _description, _read)   STEPCORE_PROPERTY_RF(_type, _name, _nameNoop, _units, _description, StepCore::MetaProperty::DYNAMIC, _read)
 
#define STEPCORE_PROPERTY_RF(_type, _name, _nameNoop, _units, _description, _flags, _read)
 
#define STEPCORE_PROPERTY_RW(_type, _name, _nameNoop, _units, _description, _read, _write)
 
#define STEPCORE_PROPERTY_RW_D(_type, _name, _nameNoop, _units, _description, _read, _write)
 
#define STEPCORE_PROPERTY_RWF(_type, _name, _nameNoop, _units, _description, _flags, _read, _write)
 
#define STEPCORE_SUPER_CLASS(_className)   _className::staticMetaObject(),
 
#define STEPCORE_UNITS_1   QString("")
 
#define STEPCORE_UNITS_NULL   QString()
 

Functions

template<class _Dst , class _Src >
_Dst StepCore::stepcore_cast (_Src src)
 
template<typename T >
T StepCore::stringToType (const QString &s, bool *ok)
 
template<typename T >
QString StepCore::typeToString (const T &v)
 
template<typename T >
QVariant StepCore::typeToVariant (const T &v)
 
template<typename T >
T StepCore::variantToType (const QVariant &v, bool *ok)
 

Detailed Description

Object, MetaObject and MetaProperty classes.

Definition in file object.h.

Macro Definition Documentation

#define _STEPCORE_PROPERTY_NULL   StepCore::MetaProperty()

Definition at line 368 of file object.h.

#define STEPCORE_FROM_UTF8 (   str)    QString::fromUtf8(str)

Definition at line 363 of file object.h.

#define STEPCORE_META_OBJECT (   _className,
  _classNameNoop,
  _description,
  _flags,
  __superClasses,
  __properties 
)
Value:
const StepCore::MetaProperty _className::_classProperties[] = { _STEPCORE_PROPERTY_NULL, __properties }; \
const StepCore::MetaObject* _className::_superClasses[] = { 0, __superClasses }; \
const StepCore::MetaObject _className::_metaObject = { \
QString(STEPCORE_STRINGIFY(_className)), QString(_description), _flags, \
StepCore::MetaObjectHelper<_className, _flags & StepCore::MetaObject::ABSTRACT>::newObjectHelper, \
StepCore::MetaObjectHelper<_className, _flags & StepCore::MetaObject::ABSTRACT>::cloneObjectHelper, \
_superClasses+1, sizeof(_superClasses)/sizeof(*_superClasses)-1, \
_classProperties+1, sizeof(_classProperties)/sizeof(*_classProperties)-1, false, 0, 0, 0, QBitArray(), "", "" };
_STEPCORE_PROPERTY_NULL
#define _STEPCORE_PROPERTY_NULL
Definition: object.h:368
StepCore::MetaObject
Meta-information about class.
Definition: object.h:176
STEPCORE_STRINGIFY
#define STEPCORE_STRINGIFY(x)
Definition: util.h:51
StepCore::MetaProperty
Meta-information about property.
Definition: object.h:77

Definition at line 370 of file object.h.

#define STEPCORE_OBJECT (   _className)
Value:
public: \
EIGEN_MAKE_ALIGNED_OPERATOR_NEW \
STEPCORE_OBJECT_NA(_className)
STEPCORE_OBJECT_NA
#define STEPCORE_OBJECT_NA(_className)
Definition: object.h:38

Definition at line 49 of file object.h.

#define STEPCORE_OBJECT_NA (   _className)
Value:
private: \
typedef _className _thisType; \
static const StepCore::MetaObject _metaObject; \
static const StepCore::MetaObject* _superClasses[]; \
static const StepCore::MetaProperty _classProperties[]; \
public: \
static const StepCore::MetaObject* staticMetaObject() { return &_metaObject; } \
virtual const StepCore::MetaObject* metaObject() const { return &_metaObject; } \
private:
StepCore::MetaObject
Meta-information about class.
Definition: object.h:176
StepCore::MetaProperty
Meta-information about property.
Definition: object.h:77

Definition at line 38 of file object.h.

#define STEPCORE_PROPERTY_R (   _type,
  _name,
  _nameNoop,
  _units,
  _description,
  _read 
)    STEPCORE_PROPERTY_RF(_type, _name, _nameNoop, _units, _description, 0, _read)

Definition at line 399 of file object.h.

#define STEPCORE_PROPERTY_R_D (   _type,
  _name,
  _nameNoop,
  _units,
  _description,
  _read 
)    STEPCORE_PROPERTY_RF(_type, _name, _nameNoop, _units, _description, StepCore::MetaProperty::DYNAMIC, _read)

Definition at line 406 of file object.h.

#define STEPCORE_PROPERTY_RF (   _type,
  _name,
  _nameNoop,
  _units,
  _description,
  _flags,
  _read 
)
Value:
StepCore::MetaProperty( STEPCORE_STRINGIFY(_name), _units, _description, \
StepCore::MetaProperty::READABLE | _flags, qMetaTypeId<_type>(), \
StepCore::MetaPropertyHelper<_thisType, _type>::read<&_thisType::_read>, \
StepCore::MetaPropertyHelper<_thisType, _type>::writeNull, \
StepCore::MetaPropertyHelper<_thisType, _type>::readString<&_thisType::_read>, \
StepCore::MetaPropertyHelper<_thisType, _type>::writeStringNull ),
StepCore::MetaPropertyHelper
Definition: object.h:289
StepCore::MetaProperty::READABLE
Property is readable.
Definition: object.h:81
STEPCORE_STRINGIFY
#define STEPCORE_STRINGIFY(x)
Definition: util.h:51
StepCore::MetaProperty
Meta-information about property.
Definition: object.h:77

Definition at line 382 of file object.h.

#define STEPCORE_PROPERTY_RW (   _type,
  _name,
  _nameNoop,
  _units,
  _description,
  _read,
  _write 
)
Value:
STEPCORE_PROPERTY_RWF(_type, _name, _nameNoop, _units, _description, \
StepCore::MetaProperty::STORED, _read, _write)
StepCore::MetaProperty::STORED
Property should be stored in file.
Definition: object.h:83
STEPCORE_PROPERTY_RWF
#define STEPCORE_PROPERTY_RWF(_type, _name, _nameNoop, _units, _description, _flags, _read, _write)
Definition: object.h:390

Definition at line 402 of file object.h.

#define STEPCORE_PROPERTY_RW_D (   _type,
  _name,
  _nameNoop,
  _units,
  _description,
  _read,
  _write 
)
Value:
STEPCORE_PROPERTY_RWF(_type, _name, _nameNoop, _units, _description, \
StepCore::MetaProperty::STORED | StepCore::MetaProperty::DYNAMIC, _read, _write)
StepCore::MetaProperty::STORED
Property should be stored in file.
Definition: object.h:83
STEPCORE_PROPERTY_RWF
#define STEPCORE_PROPERTY_RWF(_type, _name, _nameNoop, _units, _description, _flags, _read, _write)
Definition: object.h:390
StepCore::MetaProperty::DYNAMIC
Variable changes during simulation or changes of other properties.
Definition: object.h:84

Definition at line 409 of file object.h.

#define STEPCORE_PROPERTY_RWF (   _type,
  _name,
  _nameNoop,
  _units,
  _description,
  _flags,
  _read,
  _write 
)
Value:
StepCore::MetaProperty( STEPCORE_STRINGIFY(_name), _units, _description, \
StepCore::MetaProperty::READABLE | StepCore::MetaProperty::WRITABLE | _flags, \
qMetaTypeId<_type>(), \
StepCore::MetaPropertyHelper<_thisType, _type>::read<&_thisType::_read>, \
StepCore::MetaPropertyHelper<_thisType, _type>::write<&_thisType::_write>, \
StepCore::MetaPropertyHelper<_thisType, _type>::readString<&_thisType::_read>, \
StepCore::MetaPropertyHelper<_thisType, _type>::writeString<&_thisType::_write> ),
StepCore::MetaPropertyHelper
Definition: object.h:289
StepCore::MetaProperty::READABLE
Property is readable.
Definition: object.h:81
StepCore::MetaProperty::WRITABLE
Property is writable.
Definition: object.h:82
STEPCORE_STRINGIFY
#define STEPCORE_STRINGIFY(x)
Definition: util.h:51
StepCore::MetaProperty
Meta-information about property.
Definition: object.h:77

Definition at line 390 of file object.h.

#define STEPCORE_SUPER_CLASS (   _className)    _className::staticMetaObject(),

Definition at line 380 of file object.h.

#define STEPCORE_UNITS_1   QString("")

Definition at line 366 of file object.h.

#define STEPCORE_UNITS_NULL   QString()

Definition at line 365 of file object.h.

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