Classes | Public Member Functions | Private Member Functions | Private Attributes

WocQtClientTransaction Class Reference

Generates Qt code for transactions, the target is the client. More...

#include <qtctrans.h>

Inheritance diagram for WocQtClientTransaction:
WocQtTransaction

List of all members.

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_transdocm_transdoc
 cache for transaction documentation, used by finalize()

Detailed Description

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.


Constructor & Destructor Documentation

WocQtClientTransaction::WocQtClientTransaction ( WocQtOut p  )  [explicit]

creates the generator

WocQtClientTransaction::~WocQtClientTransaction (  ) 

deletes the generator


Member Function Documentation

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


Member Data Documentation

cache for transaction documentation, used by finalize()


The documentation for this class was generated from the following files: