GncObject Class Reference

#include <mymoneygncreader.h>

Inheritance diagram for GncObject:

GncAccount GncCmdtySpec GncCommodity GncCountData GncDate GncFile GncFreqSpec GncKvp GncLot GncPrice GncRecurrence GncSchedDef GncSchedule GncSplit GncTemplateSplit GncTransaction
Collaboration diagram for GncObject:

Collaboration graph

List of all members.

Public Member Functions

 GncObject ()
virtual ~GncObject ()

Protected Types

enum  anonActions {

Protected Member Functions

GncObjectisSubElement (const QString &elName, const QXmlAttributes &elAttrs)
bool isDataElement (const QString &elName, const QXmlAttributes &elAttrs)
virtual void initiate (const QString &, const QXmlAttributes &)
virtual void endSubEl (GncObject *)
void storeData (const QString &pData)
QString getData () const
void resetDataPtr ()
virtual void terminate ()
void setVersion (const QString &v)
QString version () const
void checkVersion (const QString &, const QXmlAttributes &, const map_elementVersions &)
QString getElName () const
void setPm (MyMoneyGncReader *pM)
void debugDump ()
virtual GncObjectstartSubEl ()
virtual void dataEl (const QXmlAttributes &)
virtual QString var (int i) const
virtual QString hide (QString, unsigned int)
void adjustHideFactor ()

Protected Attributes

QString m_elementName
QString m_version
const QString * m_subElementList
unsigned int m_subElementListCount
const QString * m_dataElementList
unsigned int m_dataElementListCount
QString * m_dataPtr
QPtrList< QString > m_v
unsigned int m_state
const unsigned int * m_anonClassList
unsigned int m_anonClass

Static Protected Attributes

static double m_moneyHideFactor


class XmlReader
class MyMoneyGncReader

Detailed Description

GncObject is the base class for the various objects in the gnucash file Beyond the first level XML objects, elements will be of one of three types: 1. Sub object elements, which require creation of another object to process 2. Data object elements, which are only followed by data to be stored in a variable (m_v array) 3. Ignored objects, data not needed and not included herein

Member Enumeration Documentation

enum GncObject::anonActions [protected]


Constructor & Destructor Documentation

GncObject::GncObject (  ) 

virtual GncObject::~GncObject (  )  [inline, virtual]

Member Function Documentation

GncObject* GncObject::isSubElement ( const QString &  elName,
const QXmlAttributes &  elAttrs 
) [protected]

bool GncObject::isDataElement ( const QString &  elName,
const QXmlAttributes &  elAttrs 
) [protected]

virtual void GncObject::initiate ( const QString &  ,
const QXmlAttributes &   
) [inline, protected, virtual]

Reimplemented in GncCountData.

virtual void GncObject::endSubEl ( GncObject  )  [inline, protected, virtual]

void GncObject::storeData ( const QString &  pData  )  [inline, protected]

QString GncObject::getData (  )  const [inline, protected]

void GncObject::resetDataPtr (  )  [inline, protected]

virtual void GncObject::terminate (  )  [inline, protected, virtual]

void GncObject::setVersion ( const QString &  v  )  [inline, protected]

QString GncObject::version (  )  const [inline, protected]

void GncObject::checkVersion ( const QString &  ,
const QXmlAttributes &  ,
const map_elementVersions  
) [protected]

QString GncObject::getElName (  )  const [inline, protected]

void GncObject::setPm ( MyMoneyGncReader pM  )  [inline, protected]

void GncObject::debugDump (  )  [protected]

virtual GncObject* GncObject::startSubEl (  )  [inline, protected, virtual]

virtual void GncObject::dataEl ( const QXmlAttributes &   )  [inline, protected, virtual]

Reimplemented in GncDate, and GncKvp.

virtual QString GncObject::var ( int  i  )  const [protected, virtual]

virtual QString GncObject::hide ( QString  ,
unsigned  int 
) [protected, virtual]

Reimplemented in GncCmdtySpec.

void GncObject::adjustHideFactor (  )  [protected]

Friends And Related Function Documentation

friend class XmlReader [friend]

friend class MyMoneyGncReader [friend]

Member Data Documentation

QString GncObject::m_elementName [protected]

QString GncObject::m_version [protected]

const QString* GncObject::m_subElementList [protected]

unsigned int GncObject::m_subElementListCount [protected]

const QString* GncObject::m_dataElementList [protected]

unsigned int GncObject::m_dataElementListCount [protected]

QString* GncObject::m_dataPtr [protected]

QPtrList<QString> GncObject::m_v [mutable, protected]

unsigned int GncObject::m_state [protected]

const unsigned int* GncObject::m_anonClassList [protected]

unsigned int GncObject::m_anonClass [protected]

double GncObject::m_moneyHideFactor [static, protected]

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

Generated on Wed Jan 26 13:05:28 2011 for KMyMoney by  doxygen 1.5.6