|
Eneboo - Documentación para desarrolladores
|
The QDomComment class represents an XML comment.XMLA comment in the parsed XML such as this: Más...
#include <qdom.h>
Métodos públicos | |
| QDomComment () | |
| QDomComment (const QDomComment &x) | |
| QDomComment & | operator= (const QDomComment &) |
| ~QDomComment () | |
| QDomNode::NodeType | nodeType () const |
| bool | isComment () const |
| QDomComment () | |
| QDomComment (const QDomComment &x) | |
| QDomComment & | operator= (const QDomComment &) |
| ~QDomComment () | |
| QDomNode::NodeType | nodeType () const |
| bool | isComment () const |
Amigas | |
| class | QDomDocument |
| class | QDomNode |
The QDomComment class represents an XML comment.
XML
A comment in the parsed XML such as this:
<!-- this is a comment -->
is represented by QDomComment objects in the parsed Dom tree.
For further information about the Document Object Model see http://www.w3.org/TR/REC-DOM-Level-1/ and http://www.w3.org/TR/DOM-Level-2-Core/. For a more general introduction of the DOM implementation see the QDomDocument documentation.
| QDomComment::QDomComment | ( | ) |
Constructs an empty comment. To construct a comment with content, use the QDomDocument::createComment() function.
| QDomComment::QDomComment | ( | const QDomComment & | x | ) |
Constructs a copy of x.
The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use cloneNode().
| QDomComment::~QDomComment | ( | ) |
Destroys the object and frees its resources.
| QDomComment::QDomComment | ( | ) |
| QDomComment::QDomComment | ( | const QDomComment & | x | ) |
| QDomComment::~QDomComment | ( | ) |
| bool QDomComment::isComment | ( | ) | const [virtual] |
Returns TRUE if the node is a comment; otherwise returns FALSE.
If this function returns TRUE, it does not imply that this object is a QDomComment; you can get the QDomComment with toComment().
Reimplementado de QDomNode.
| QDomNode::NodeType QDomComment::nodeType | ( | ) | const [virtual] |
Returns the type of node this object refers to (i.e. TextNode, CDATASectionNode, CommentNode or CharacterDataNode). For a null node CharacterDataNode is returned.
Reimplementado de QDomCharacterData.
| QDomNode::NodeType QDomComment::nodeType | ( | ) | const [virtual] |
Returns CommentNode.
Reimplementado de QDomCharacterData.
| QDomComment& QDomComment::operator= | ( | const QDomComment & | ) |
| QDomComment & QDomComment::operator= | ( | const QDomComment & | x | ) |
Assigns x to this DOM comment.
The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use cloneNode().
QDomDocument [friend] |
Reimplementado de QDomCharacterData.
QDomNode [friend] |
Reimplementado de QDomCharacterData.
1.7.4