Generates Qt code for transactions, the target is the client. More...
#include <qtctrans.h>
Classes | |
struct | s_transdoc |
memory for transaction and privilege docu More... | |
Public Member Functions | |
WocQtClientTransaction (WocQtOut *) | |
creates the generator | |
~WocQtClientTransaction () | |
deletes the generator | |
virtual void | finalize () |
called last when all parsing is done | |
virtual void | newTransaction (const WocTransaction &) |
called for each transaction encountered | |
Private Member Functions | |
QString | trnInput (const WocTransaction &) |
helper generates the transaction input encoding | |
QString | trnOutput (const WocTransaction &) |
helper generates the transaction output decoding | |
void | trnList () |
helper generates enums and strings for all transactions | |
void | genInclude (QtCTrans &) |
helper: generate include section | |
void | genProperties (QtCTrans &) |
helper: generate properties | |
void | genTors (QtCTrans &) |
helper: generate con- and de-structors | |
void | genQuery (QtCTrans &) |
helper: generate query methods | |
void | genGetters (QtCTrans &) |
helper: generate getter methods | |
void | genScripting (QtCTrans &) |
helper: generate QtScript glue code | |
void | initList (QtCTrans &) |
helper: initialize data in the transaction wrapper | |
Private Attributes | |
QMap< QString, s_transdoc > | m_transdoc |
cache for transaction documentation, used by finalize() |
Generates Qt code for transactions, the target is the client.
The generator is instantiated when the Qt output is instantiated and stays alive till the end of the input.
WocQtClientTransaction::WocQtClientTransaction | ( | WocQtOut * | p | ) | [explicit] |
creates the generator
WocQtClientTransaction::~WocQtClientTransaction | ( | ) |
deletes the generator
void WocQtClientTransaction::finalize | ( | ) | [virtual] |
called last when all parsing is done
Implements WocQtTransaction.
void WocQtClientTransaction::genGetters | ( | QtCTrans & | ct | ) | [private] |
helper: generate getter methods
void WocQtClientTransaction::genInclude | ( | QtCTrans & | ct | ) | [private] |
helper: generate include section
void WocQtClientTransaction::genProperties | ( | QtCTrans & | ct | ) | [private] |
helper: generate properties
void WocQtClientTransaction::genQuery | ( | QtCTrans & | ct | ) | [private] |
helper: generate query methods
void WocQtClientTransaction::genScripting | ( | QtCTrans & | ct | ) | [private] |
helper: generate QtScript glue code
void WocQtClientTransaction::genTors | ( | QtCTrans & | ct | ) | [private] |
helper: generate con- and de-structors
void WocQtClientTransaction::initList | ( | QtCTrans & | ct | ) | [private] |
helper: initialize data in the transaction wrapper
void WocQtClientTransaction::newTransaction | ( | const WocTransaction & | trn | ) | [virtual] |
called for each transaction encountered
Implements WocQtTransaction.
QString WocQtClientTransaction::trnInput | ( | const WocTransaction & | trn | ) | [private] |
helper generates the transaction input encoding
void WocQtClientTransaction::trnList | ( | ) | [private] |
helper generates enums and strings for all transactions
QString WocQtClientTransaction::trnOutput | ( | const WocTransaction & | trn | ) | [private] |
helper generates the transaction output decoding
QMap<QString,s_transdoc> WocQtClientTransaction::m_transdoc [private] |
cache for transaction documentation, used by finalize()