PACK WOC  $VERSION$
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
WocQtClientTransaction Class Reference

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

#include <qtctrans.h>

Inheritance diagram for WocQtClientTransaction:
WocQtTransaction

Classes

struct  s_transdoc
 memory for transaction and privilege docu More...
 

Public Member Functions

 WocQtClientTransaction (WocQtOut *)
 creates the generator More...
 
 ~WocQtClientTransaction ()
 deletes the generator More...
 
virtual void finalize ()
 called last when all parsing is done More...
 
virtual void newTransaction (const WocTransaction &)
 called for each transaction encountered More...
 
- Public Member Functions inherited from WocQtTransaction
 WocQtTransaction (WocQtOut *)
 instantiates the transaction generator More...
 
virtual ~WocQtTransaction ()
 

Private Member Functions

QString trnInput (const WocTransaction &)
 helper generates the transaction input encoding More...
 
QString trnOutput (const WocTransaction &)
 helper generates the transaction output decoding More...
 
void trnList ()
 helper generates enums and strings for all transactions More...
 
void genInclude (QtCTrans &)
 helper: generate include section More...
 
void genProperties (QtCTrans &)
 helper: generate properties More...
 
void genTors (QtCTrans &)
 helper: generate con- and de-structors More...
 
void genQuery (QtCTrans &)
 helper: generate query methods More...
 
void genGetters (QtCTrans &)
 helper: generate getter methods More...
 
void genLogCtrl (QtCTrans &)
 helper: generate log control More...
 
void initList (QtCTrans &)
 helper: initialize data in the transaction wrapper More...
 

Private Attributes

QMap< QString, s_transdocm_transdoc
 cache for transaction documentation, used by finalize() More...
 

Additional Inherited Members

- Signals inherited from WocQtTransaction
void errorFound ()
 emitted if something goes wrong, this will cause the parser process to abort More...
 
- Protected Attributes inherited from WocQtTransaction
WocQtOutm_parent
 

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::genLogCtrl ( QtCTrans ct)
private

helper: generate log control

void WocQtClientTransaction::genProperties ( QtCTrans ct)
private

helper: generate properties

void WocQtClientTransaction::genQuery ( QtCTrans ct)
private

helper: generate query methods

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

QMap<QString,s_transdoc> WocQtClientTransaction::m_transdoc
private

cache for transaction documentation, used by finalize()


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