AlkDomElement
AlkDomElement Class Reference
#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< AlkDomElement > | m_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.
Constructor & Destructor Documentation
◆ AlkDomElement()
Definition at line 11 of file alkdom.cpp.
◆ ~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]
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()
|
virtual |
Definition at line 40 of file alkdom.cpp.
Member Data Documentation
◆ m_attributes
|
protected |
◆ m_childs
|
protected |
◆ m_comment
◆ m_tag
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
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.