PACK WOC  $VERSION$
qtclass.h
Go to the documentation of this file.
1 // Copyright (C) 2009-2011 by Konrad Rosenbaum <konrad@silmor.de>
2 // protected under the GNU GPL version 3 or at your option any newer.
3 // See COPYING.GPL file that comes with this distribution.
4 //
5 
6 #ifndef WOC_QTOUT_CLASS_H
7 #define WOC_QTOUT_CLASS_H
8 
9 #include "mfile.h"
10 #include <QObject>
11 
12 class QDomElement;
13 class WocClass;
14 class WocQtOut;
15 
17 class WocQtClass:public QObject
18 {
19  Q_OBJECT
20  public:
22  explicit WocQtClass(WocQtOut*);
23  ~WocQtClass();
25  virtual void finalize();
27  virtual void newClass(const WocClass&);
28  private:
30  QString m_aux;
31 
33  void classEnums(const WocClass&,MFile&,MFile&,QString);
35  void classProperties(const WocClass&,MFile&,MFile&);
37  void classDeserializer(const WocClass&,MFile&,MFile&,QString);
39  void classSerializers(const WocClass&,MFile&,MFile&,QString);
40  signals:
42  void errorFound();
43 };
44 
45 #endif
overwrites QFile to only generate a file if its new version differs from an existing one...
Definition: mfile.h:15
Abstract base class for Qt client and server output.
Definition: qtout.h:44
void classSerializers(const WocClass &, MFile &, MFile &, QString)
helper: generate serializers
Definition: qtclass.cpp:333
~WocQtClass()
Definition: qtclass.cpp:21
Specialization that outputs classes for WocQtOut and its sub-classes.
Definition: qtclass.h:17
void errorFound()
emitted if something is wrong, aborts the processor
virtual void newClass(const WocClass &)
generates the code of a specific class
Definition: qtclass.cpp:30
QString m_aux
Definition: qtclass.h:30
void classProperties(const WocClass &, MFile &, MFile &)
helper: generate properties
Definition: qtclass.cpp:164
virtual void finalize()
called when all parsing is done
Definition: qtclass.cpp:25
WocQtClass(WocQtOut *)
constructs the class output for a specific Qt output
Definition: qtclass.cpp:15
void classDeserializer(const WocClass &, MFile &, MFile &, QString)
helper: generate constructors/deserializer/copiers
Definition: qtclass.cpp:199
void classEnums(const WocClass &, MFile &, MFile &, QString)
helper: generate enums for classes
Definition: qtclass.cpp:99
stores a communication class including serialization and deserialization information ...
Definition: procclass.h:26
WocQtOut * m_parent
Definition: qtclass.h:29