PACK WOC  $VERSION$
qtctrans.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_CTRANS_H
7 #define WOC_QTOUT_CTRANS_H
8 
9 #include "qtout.h"
10 
11 struct QtCTrans;
12 class WocQtOut;
13 class WocTransaction;
14 class WocClass;
15 
19 {
20  public:
26  virtual void finalize();
28  virtual void newTransaction(const WocTransaction&);
29  private:
31  QString trnInput(const WocTransaction&);
33  QString trnOutput(const WocTransaction&);
35  void trnList();
37  void genInclude(QtCTrans&);
39  void genProperties(QtCTrans&);
41  void genTors(QtCTrans&);
43  void genQuery(QtCTrans&);
45  void genGetters(QtCTrans&);
47  void genLogCtrl(QtCTrans&);
49  void initList(QtCTrans&);
50 
52  struct s_transdoc{
54  QStringList tdoc;
56  QMap<QString,QString>privdoc;
57  };
59  QMap<QString,s_transdoc>m_transdoc;
60 };
61 
62 #endif
void genProperties(QtCTrans &)
helper: generate properties
Definition: qtctrans.cpp:182
~WocQtClientTransaction()
deletes the generator
Definition: qtctrans.cpp:18
QString trnOutput(const WocTransaction &)
helper generates the transaction output decoding
Definition: qtctrans.cpp:380
Abstract base class for Qt client and server output.
Definition: qtout.h:44
virtual void finalize()
called last when all parsing is done
Definition: qtctrans.cpp:20
void trnList()
helper generates enums and strings for all transactions
Definition: qtctrans.cpp:449
Generates Qt code for transactions, the target is the client.
Definition: qtctrans.h:18
void genLogCtrl(QtCTrans &)
helper: generate log control
Definition: qtctrans.cpp:304
void genTors(QtCTrans &)
helper: generate con- and de-structors
Definition: qtctrans.cpp:196
WocQtClientTransaction(WocQtOut *)
creates the generator
Definition: qtctrans.cpp:15
void genGetters(QtCTrans &)
helper: generate getter methods
Definition: qtctrans.cpp:294
internal representation of a transaction
Definition: proctrans.h:16
void genInclude(QtCTrans &)
helper: generate include section
Definition: qtctrans.cpp:166
QString trnInput(const WocTransaction &)
helper generates the transaction input encoding
Definition: qtctrans.cpp:314
QMap< QString, s_transdoc > m_transdoc
cache for transaction documentation, used by finalize()
Definition: qtctrans.h:59
void initList(QtCTrans &)
helper: initialize data in the transaction wrapper
Definition: qtctrans.cpp:146
QMap< QString, QString > privdoc
docu for each privilege
Definition: qtctrans.h:56
abstract base class for Qt transaction generator
Definition: qtout.h:18
memory for transaction and privilege docu
Definition: qtctrans.h:52
internal cache to hold the output for one transaction, a reference to this struct is handed arout Woc...
Definition: qtctrans.cpp:27
QStringList tdoc
transaction docu
Definition: qtctrans.h:54
void genQuery(QtCTrans &)
helper: generate query methods
Definition: qtctrans.cpp:238
virtual void newTransaction(const WocTransaction &)
called for each transaction encountered
Definition: qtctrans.cpp:72
stores a communication class including serialization and deserialization information ...
Definition: procclass.h:26