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

DomHelper Class Reference

This class has some convinient functions for handling DOM documents. More...

#include <dom_helper.h>

List of all members.

Static Public Methods

QRgb getColor (QDomElement const &dom_element)
int getInteger (QDomElement const &dom_element, QString const &name, int default_value)
double getDouble (QDomElement const &dom_element, QString const &name, double default_value)


Detailed Description

This class has some convinient functions for handling DOM documents.

Author:
Ralf Schmelter (ralfs@pc2a.chemie.uni-dortmund.de).
Version:
0.1


Member Function Documentation

QRgb DomHelper::getColor QDomElement const & dom_element [static]
 

Returns the color specified in the attributes of the DOM element.

Parameters:
dom_element   The DOM element to use.

double DomHelper::getDouble QDomElement const & dom_element,
QString const & name,
double default_value
[static]
 

Returns the double value specified in the attributes of the DOM element.

Parameters:
dom_element   The DOM element to use.
name   The name of the attribute.
default_value   The default value returned, when the attribute is not found.

int DomHelper::getInteger QDomElement const & dom_element,
QString const & name,
int default_value
[static]
 

Returns the integer value specified in the attributes of the DOM element.

Parameters:
dom_element   The DOM element to use.
name   The name of the attribute.
default_value   The default value returned, when the attribute is not found.


The documentation for this class was generated from the following file:
Generated at Sun Jan 6 18:49:10 2002 for EasySok by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001