Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qgar::QgarAppDescr::ParseData Struct Reference
[Application coding]

#include <QgarAppDescr.H>

List of all members.


Detailed Description

Structure holding all the data used while parsing.

Using a structure to regroup all these data allows to dynamically allocate the room to store it. This space can the be desallocated when parsing is over. This means the that the overall memory cost for these data is 1 pointer size when no parsing is performed.

For internal use only.

Definition at line 605 of file QgarAppDescr.H.

Public Member Functions

 ParseData ()
 Default constructor.
 ParseData (const ParseData &rhs)
 Copy-Constructor.
 ~ParseData ()
 Destructor.

Public Attributes

ParseState state
 Parsing state: Are we parsing the application or a param ?
bool firstElt
 Flag used to indicate if the parsed element is the first being parsed.
std::string buffer
 Buffer to store parsed characters of an element.
qgar::QgarAppParamDescrcurrentParam
 Pointer to the current parameter being parsed.


Constructor & Destructor Documentation

qgar::QgarAppDescr::ParseData::ParseData  )  [inline]
 

Default constructor.

Definition at line 611 of file QgarAppDescr.H.

qgar::QgarAppDescr::ParseData::ParseData const ParseData rhs  )  [inline]
 

Copy-Constructor.

Definition at line 619 of file QgarAppDescr.H.

References currentParam.

qgar::QgarAppDescr::ParseData::~ParseData  )  [inline]
 

Destructor.

Definition at line 629 of file QgarAppDescr.H.

References currentParam.


Member Data Documentation

std::string qgar::QgarAppDescr::ParseData::buffer
 

Buffer to store parsed characters of an element.

Definition at line 646 of file QgarAppDescr.H.

Referenced by qgar::QgarAppDescr::characters(), qgar::QgarAppDescr::endAuthor(), qgar::QgarAppDescr::endBrief(), qgar::QgarAppDescr::endCopyright(), qgar::QgarAppDescr::endLong(), and qgar::QgarAppDescr::endName().

qgar::QgarAppParamDescr* qgar::QgarAppDescr::ParseData::currentParam
 

Pointer to the current parameter being parsed.

Definition at line 651 of file QgarAppDescr.H.

Referenced by qgar::QgarAppDescr::endBrief(), qgar::QgarAppDescr::endLong(), qgar::QgarAppDescr::endParam(), ParseData(), qgar::QgarAppDescr::startParam(), and ~ParseData().

bool qgar::QgarAppDescr::ParseData::firstElt
 

Flag used to indicate if the parsed element is the first being parsed.

This flag is mainly used to test if the XML document is of the correct document tag (ie. first tag is 'application').

Definition at line 643 of file QgarAppDescr.H.

ParseState qgar::QgarAppDescr::ParseData::state
 

Parsing state: Are we parsing the application or a param ?

Definition at line 634 of file QgarAppDescr.H.

Referenced by qgar::QgarAppDescr::endBrief(), qgar::QgarAppDescr::endLong(), qgar::QgarAppDescr::endParam(), and qgar::QgarAppDescr::startParam().


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