AlkDomElement

Search for usage in LXR

#include <alkdom.h>

Inheritance diagram for AlkDomElement:

Public Member Functions

 AlkDomElement (const QString &tag=QString())
 
void appendChild (const AlkDomElement &element)
 
void setAttribute (const QString &name, const QString &value)
 
void setAttribute (const QString &name, double value)
 
void setComment (const QString &comment)
 
virtual QString toString (bool withIndentation=true, int level=0) const
 

Protected Attributes

QStringList m_attributes
 
QList< AlkDomElementm_childs
 
QString m_comment
 
QString m_tag
 

Detailed Description

The class AlkDomElement is a replacement for QDomElement with the possibility to store attributes sorted.

Sorted attributes are important for a textual comparison.

Author
Ralf Habacker ralf..nosp@m.haba.nosp@m.cker@.nosp@m.free.nosp@m.net.d.nosp@m.e

Definition at line 27 of file alkdom.h.

Constructor & Destructor Documentation

◆ AlkDomElement()

AlkDomElement::AlkDomElement ( const QString & tag = QString())
explicit

Definition at line 11 of file alkdom.cpp.

◆ ~AlkDomElement()

AlkDomElement::~AlkDomElement ( )
virtual

Definition at line 16 of file alkdom.cpp.

Member Function Documentation

◆ appendChild()

void AlkDomElement::appendChild ( const AlkDomElement & element)

Definition at line 35 of file alkdom.cpp.

◆ setAttribute() [1/2]

void AlkDomElement::setAttribute ( const QString & name,
const QString & value )

Definition at line 25 of file alkdom.cpp.

◆ setAttribute() [2/2]

void AlkDomElement::setAttribute ( const QString & name,
double value )

Definition at line 30 of file alkdom.cpp.

◆ setComment()

void AlkDomElement::setComment ( const QString & comment)

Definition at line 20 of file alkdom.cpp.

◆ toString()

QString AlkDomElement::toString ( bool withIndentation = true,
int level = 0 ) const
virtual

Definition at line 40 of file alkdom.cpp.

Member Data Documentation

◆ m_attributes

QStringList AlkDomElement::m_attributes
protected

Definition at line 42 of file alkdom.h.

◆ m_childs

QList<AlkDomElement> AlkDomElement::m_childs
protected

Definition at line 43 of file alkdom.h.

◆ m_comment

QString AlkDomElement::m_comment
protected

Definition at line 41 of file alkdom.h.

◆ m_tag

QString AlkDomElement::m_tag
protected

Definition at line 40 of file alkdom.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.