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

step/stepcore

object.h File Reference


Detailed Description

Object, MetaObject and MetaProperty classes.

Definition in file object.h.

#include <QString>
#include <QVariant>
#include <QBitArray>
#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.


Namespaces

namespace  StepCore

Classes

class  StepCore::MetaObject
 Meta-information about class. More...
struct  StepCore::MetaObjectHelper< Class, N >
struct  StepCore::MetaObjectHelper< Class, MetaObject::ABSTRACT >
class  StepCore::MetaProperty
 Meta-information about property. More...
struct  StepCore::MetaPropertyHelper< C, T >
class  StepCore::Object
 Root of the StepCore classes hierarchy. More...

Defines

#define _STEPCORE_PROPERTY_NULL   StepCore::MetaProperty()
#define STEPCORE_FROM_UTF8(str)   QString::fromUtf8(str)
#define STEPCORE_META_OBJECT(_className, _description, _flags, __superClasses, __properties)
#define STEPCORE_OBJECT(_className)
#define STEPCORE_PROPERTY_R(_type, _name, _units, _description, _read)   STEPCORE_PROPERTY_RF(_type, _name, _units, _description, 0, _read)
#define STEPCORE_PROPERTY_R_D(_type, _name, _units, _description, _read)   STEPCORE_PROPERTY_RF(_type, _name, _units, _description, StepCore::MetaProperty::DYNAMIC, _read)
#define STEPCORE_PROPERTY_RF(_type, _name, _units, _description, _flags, _read)
#define STEPCORE_PROPERTY_RW(_type, _name, _units, _description, _read, _write)
#define STEPCORE_PROPERTY_RW_D(_type, _name, _units, _description, _read, _write)
#define STEPCORE_PROPERTY_RWF(_type, _name, _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)

Define Documentation

#define _STEPCORE_PROPERTY_NULL   StepCore::MetaProperty()

Definition at line 336 of file object.h.

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

Definition at line 331 of file object.h.

#define STEPCORE_META_OBJECT ( _className,
_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() };

Definition at line 338 of file object.h.

#define STEPCORE_OBJECT ( _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:

Definition at line 37 of file object.h.

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

Definition at line 367 of file object.h.

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

Definition at line 374 of file object.h.

#define STEPCORE_PROPERTY_RF ( _type,
_name,
_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 ),

Definition at line 350 of file object.h.

#define STEPCORE_PROPERTY_RW ( _type,
_name,
_units,
_description,
_read,
_write   ) 

Value:

STEPCORE_PROPERTY_RWF(_type, _name, _units, _description, \
        StepCore::MetaProperty::STORED, _read, _write)

Definition at line 370 of file object.h.

#define STEPCORE_PROPERTY_RW_D ( _type,
_name,
_units,
_description,
_read,
_write   ) 

Value:

STEPCORE_PROPERTY_RWF(_type, _name, _units, _description, \
        StepCore::MetaProperty::STORED | StepCore::MetaProperty::DYNAMIC, _read, _write)

Definition at line 377 of file object.h.

#define STEPCORE_PROPERTY_RWF ( _type,
_name,
_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> ),

Definition at line 358 of file object.h.

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

Definition at line 348 of file object.h.

#define STEPCORE_UNITS_1   QString("")

Definition at line 334 of file object.h.

#define STEPCORE_UNITS_NULL   QString()

Definition at line 333 of file object.h.

step/stepcore

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal