PACK Qt Binding  $VERSION$
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Classes | Macros
object.h File Reference
#include <QObject>
#include <QList>
#include <QCoreApplication>
#include "nullable.h"
#include "exception.h"

Go to the source code of this file.

Classes

class  WObject
 
class  WDeserializerException
 

Macros

#define WOBJECT(wob)
 

Macro Definition Documentation

#define WOBJECT (   wob)
Value:
public: \
wob():wob ## Abstract(){} \
wob(const wob&w):wob ## Abstract(w){} \
wob(wob&&w):wob ## Abstract(w){} \
wob(const wob ## Abstract&w):wob ## Abstract(w){} \
wob(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;} \
wob& operator=(wob&&w){wob ## Abstract::operator=(w);return *this;} \
wob& operator=(wob ## Abstract&&w){wob ## Abstract::operator=(w);return *this;} \
private:\
QString tr(const char*text,const char*comment=nullptr)const{return QCoreApplication::translate("" # wob ,text,comment);}
static bool w(bool b)
Definition: object.cpp:31

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