Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

mrprj::XmlNodeReader Class Reference

object for getting contents of xmlNodes as human-readable strings More...

#include <mrprjContent.h>

Collaboration diagram for mrprj::XmlNodeReader:

Collaboration graph
[legend]
List of all members.

Public Methods

 XmlNodeReader ()
 constructor for the class XmlNodeReader

 ~XmlNodeReader ()
 destructor for the class XmlNodeReader

bool getStringProperty (const xmlDocPtr xmlDoc, const xmlNodePtr pPropertyNode, const string &pPropertySigner, string &pPropertyValue)
 for reading an xmlNode-property if it's defined

bool getIntProperty (const xmlDocPtr xmlDoc, const xmlNodePtr pPropertyNode, const string &pPropertySigner, int &pPropertyValue)
 for reading an int-xmlNode-property if it's defined inside of the xmlNode

bool getLongProperty (const xmlDocPtr xmlDoc, const xmlNodePtr pPropertyNode, const string &pPropertySigner, long &pPropertyValue)
 for reading a long-xmlNode-property if it's defined inside of the xmlNode

bool getFloatProperty (const xmlDocPtr xmlDoc, const xmlNodePtr pPropertyNode, const string &pPropertySigner, float &pPropertyValue)
 for reading a float-xmlNode-property if it's defined inside of the xmlNode


Detailed Description

object for getting contents of xmlNodes as human-readable strings

Instances of this class are able to read the utf8-encoded strings of an xmlNode (of the libxml) and to covert those strings to iso-latin-1-strings

Definition at line 83 of file mrprjContent.h.


Constructor & Destructor Documentation

mrprj::XmlNodeReader::XmlNodeReader  
 

constructor for the class XmlNodeReader

needs nothing, does nothing

Definition at line 146 of file mrprjContent.cc.

mrprj::XmlNodeReader::~XmlNodeReader  
 

destructor for the class XmlNodeReader

needs nothing, does nothing

Definition at line 155 of file mrprjContent.cc.


Member Function Documentation

bool mrprj::XmlNodeReader::getFloatProperty const xmlDocPtr    xmlDoc,
const xmlNodePtr    pPropertyNode,
const string &    pPropertySigner,
float &    pPropertyValue
[inline]
 

for reading a float-xmlNode-property if it's defined inside of the xmlNode

using the method getStringProperty this method returns the property-content as int-value

Parameters:
xmlDoc  :- the dom of the mrprj-file, needed by the pecial libxml-function
pPropertyNode  :- node whose property-value shall be got
pPropertySigner  :- determiner of the property
pPropertyValue  :- the decoded and converted int-value
Returns :
true if the attribute is defined inside of the xml-node otherwise false

Definition at line 182 of file mrprjContent.h.

References getStringProperty().

bool mrprj::XmlNodeReader::getIntProperty const xmlDocPtr    xmlDoc,
const xmlNodePtr    pPropertyNode,
const string &    pPropertySigner,
int &    pPropertyValue
[inline]
 

for reading an int-xmlNode-property if it's defined inside of the xmlNode

using the method getStringProperty this method returns the property-content as int-value

Parameters:
xmlDoc  :- the dom of the mrprj-file, needed by the pecial libxml-function
pPropertyNode  :- node whose property-value shall be got
pPropertySigner  :- determiner of the property
pPropertyValue  :- the decoded and converted int-value
Returns :
true if the attribute is defined inside of the xml-node otherwise false

Definition at line 125 of file mrprjContent.h.

References getStringProperty().

Referenced by mrprj::Task::fillTaskSubStructureByMrPrjXmlTaskNodes().

bool mrprj::XmlNodeReader::getLongProperty const xmlDocPtr    xmlDoc,
const xmlNodePtr    pPropertyNode,
const string &    pPropertySigner,
long &    pPropertyValue
[inline]
 

for reading a long-xmlNode-property if it's defined inside of the xmlNode

using the method getStringProperty this method returns the property-content as int-value

Parameters:
xmlDoc  :- the dom of the mrprj-file, needed by the pecial libxml-function
pPropertyNode  :- node whose property-value shall be got
pPropertySigner  :- determiner of the property
pPropertyValue  :- the decoded and converted int-value
Returns :
true if the attribute is defined inside of the xml-node otherwise false

Definition at line 153 of file mrprjContent.h.

References getStringProperty().

bool mrprj::XmlNodeReader::getStringProperty const xmlDocPtr    xmlDoc,
const xmlNodePtr    pPropertyNode,
const string &    pPropertySigner,
string &    pPropertyValue
 

for reading an xmlNode-property if it's defined

(1) reads the content of an xmlNode-Property. (2) reencodes that utf8-string using a special libxml-function for getting the corresponding xml-encoded content. (3) decodes that xml-encoded content as iso-latin-1 string

Parameters:
xmlDoc  :- the dom of the mrprj-file, needed by the pecial libxml-function
pPropertyNode  :- node whose property-value shall be got
pPropertySigner  :- determiner of the property
pPropertyValue  :- the iso-latin-1 encoded property-Content
Returns :
true if the attribute is defined inside of the xml-node

Definition at line 175 of file mrprjContent.cc.

Referenced by mrprj::TaskField::fillTaskFieldByMrPrjXmlFileContent(), mrprj::Task::fillTaskSubStructureByMrPrjXmlTaskNodes(), getFloatProperty(), getIntProperty(), and getLongProperty().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 10:58:40 2003 for MRPROJEXT by doxygen1.2.17