PACK WOC  $VERSION$
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
WocPHPOut Class Referenceabstract

Abstract base class for generating output for PHP. More...

#include <phpout.h>

Inheritance diagram for WocPHPOut:
WocOutput WocPHPClientOut WocPHPServerOut

Public Member Functions

 WocPHPOut (const QDomElement &)
 initializes the output object More...
 
virtual ~WocPHPOut ()=0
 
- Public Member Functions inherited from WocOutput
 WocOutput ()
 the constructor should set up and initialize the environment of the generator More...
 
virtual ~WocOutput ()
 currently there is no guarantee that the destructor is ever called. More...
 

Protected Member Functions

virtual void finalize ()
 writes any last words after parsing finished More...
 
virtual void newClass (const WocClass &)
 creates a class More...
 
virtual void newTable (const WocTable &)
 creates a table More...
 
virtual void newTransaction (const WocTransaction &)
 creates a transaction More...
 
void addLoad (QString classname, QString filename)
 helper: adds a loader line for a class to autoload.php More...
 
void addStaticLoad (QString classname, QString filename)
 helper: adds an immediate loader line for a class to autoload.php More...
 
QString classPrefix ()
 helper: returns the class prefix More...
 
QString className (const WocClass &c)
 helper: return the PHP-class-name of a WocClass More...
 
QString abstractClassName (const WocClass &c)
 helper: return the PHP-class-name of a WocClass plus Abstract if it is abstract More...
 
QString trnClassName (const WocTransaction &t)
 helper: returns the PHP-class-name for a WocTransaction More...
 

Protected Attributes

QString m_basedir
 
QString m_subdir
 
QString m_fileext
 
QString m_transbase
 
QString m_lang
 
QFile m_loader
 
QFile m_schema
 
QFile m_transact
 
WocPHPClasspclass
 
WocPHPTableptable
 
WocPHPTransactionptrans
 

Friends

class WocPHPClass
 
class WocPHPTable
 
class WocPHPTransaction
 
class WocPHPClientTransaction
 
class WocPHPServerTransaction
 

Additional Inherited Members

- Signals inherited from WocOutput
void errorFound ()
 
- Protected Slots inherited from WocOutput

Detailed Description

Abstract base class for generating output for PHP.

Constructor & Destructor Documentation

WocPHPOut::WocPHPOut ( const QDomElement &  el)

initializes the output object

WocPHPOut::~WocPHPOut ( )
pure virtual

Member Function Documentation

QString WocPHPOut::abstractClassName ( const WocClass c)
inlineprotected

helper: return the PHP-class-name of a WocClass plus Abstract if it is abstract

void WocPHPOut::addLoad ( QString  classname,
QString  filename 
)
protected

helper: adds a loader line for a class to autoload.php

void WocPHPOut::addStaticLoad ( QString  classname,
QString  filename 
)
protected

helper: adds an immediate loader line for a class to autoload.php

QString WocPHPOut::className ( const WocClass c)
inlineprotected

helper: return the PHP-class-name of a WocClass

QString WocPHPOut::classPrefix ( )
inlineprotected

helper: returns the class prefix

void WocPHPOut::finalize ( )
protectedvirtual

writes any last words after parsing finished

Implements WocOutput.

void WocPHPOut::newClass ( const WocClass cls)
protectedvirtual

creates a class

Implements WocOutput.

void WocPHPOut::newTable ( const WocTable tbl)
protectedvirtual

creates a table

Implements WocOutput.

void WocPHPOut::newTransaction ( const WocTransaction trn)
protectedvirtual

creates a transaction

Implements WocOutput.

QString WocPHPOut::trnClassName ( const WocTransaction t)
inlineprotected

helper: returns the PHP-class-name for a WocTransaction

Friends And Related Function Documentation

friend class WocPHPClass
friend
friend class WocPHPClientTransaction
friend
friend class WocPHPServerTransaction
friend
friend class WocPHPTable
friend
friend class WocPHPTransaction
friend

Member Data Documentation

QString WocPHPOut::m_basedir
protected
QString WocPHPOut::m_fileext
protected
QString WocPHPOut::m_lang
protected
QFile WocPHPOut::m_loader
protected
QFile WocPHPOut::m_schema
protected
QString WocPHPOut::m_subdir
protected
QFile WocPHPOut::m_transact
protected
QString WocPHPOut::m_transbase
protected
WocPHPClass* WocPHPOut::pclass
protected
WocPHPTable* WocPHPOut::ptable
protected
WocPHPTransaction* WocPHPOut::ptrans
protected

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