Classes | Defines

include/object.h File Reference

#include <QObject>
#include <QList>
#include "nullable.h"
#include "exception.h"
#include "WHelper"

Go to the source code of this file.

Classes

class  WObject
class  WDeserializerException

Defines

#define WOBJECT(wob)
#define WOSCRIPT(wob)
#define WOSCRIPT_IMP(wob)

Define Documentation

#define WOBJECT (   wob  ) 
Value:
public: \
 wob():wob ## Abstract(){} \
 wob(const wob&w):wob ## Abstract(w){} \
 wob(const wob ## Abstract&w):wob ## Abstract(w){} \
 wob(const QDomElement&w):wob ## Abstract(w){} \
 wob& operator=(const wob&w){wob ## Abstract::operator=(w);return *this;} \
 wob& operator=(const wob ## Abstract&w){wob ## Abstract::operator=(w);return *this;} \
 private:

the WOBJECT macro defines the necessary constructors if you just want to extend an abstract class without overwriting the constructors yourself

#define WOSCRIPT (   wob  ) 
Value:
public: \
 static QScriptValue toScriptValue(QScriptEngine*,const wob &); \
 static void fromScriptValue(const QScriptValue&,wob &); \
 private:
#define WOSCRIPT_IMP (   wob  ) 
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Friends Defines