Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Fonctions  · 

QDomCharacterData Class Reference
[XML module]

The QDomCharacterData class represents a generic string in the DOM. More...

All the functions in this class are reentrant when Qt is built with thread support.

#include <qdom.h>

Inherits QDomNode.

Inherited by QDomText and QDomComment.

List of all member functions.

Public Members


Detailed Description

The QDomCharacterData class represents a generic string in the DOM.

Character data as used in XML specifies a generic data string. More specialized versions of this class are QDomText, QDomComment and QDomCDATASection.

The data string is set with setData() and retrieved with data(). You can retrieve a portion of the data string using substringData(). Extra data can be appended with appendData(), or inserted with insertData(). Portions of the data string can be deleted with deleteData() or replaced with replaceData(). The length of the data string is returned by length().

The node type of the node containing this character data is returned by nodeType().

See also QDomText, QDomComment, QDomCDATASection, and XML.


Member Function Documentation

QDomCharacterData::QDomCharacterData ()

Constructs an empty character data object.

QDomCharacterData::QDomCharacterData ( const QDomCharacterData & 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().

QDomCharacterData::~QDomCharacterData ()

Destroys the object and frees its resources.

void QDomCharacterData::appendData ( const QString & arg ) [virtual]

Appends the string arg to the stored string.

QString QDomCharacterData::data () const [virtual]

Returns the string stored in this object.

If the node is a null node, it will return QString::null.

void QDomCharacterData::deleteData ( unsigned long offset, unsigned long count ) [virtual]

Deletes a substring of length count from position offset.

void QDomCharacterData::insertData ( unsigned long offset, const QString & arg ) [virtual]

Inserts the string arg into the stored string at position offset.

bool QDomCharacterData::isCharacterData () const [virtual]

Returns TRUE.

Reimplemented from QDomNode.

uint QDomCharacterData::length () const [virtual]

Returns the length of the stored string.

QDomNode::NodeType QDomCharacterData::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.

Reimplemented from QDomNode.

Reimplemented in QDomText and QDomComment.

QDomCharacterData & QDomCharacterData::operator= ( const QDomCharacterData & x )

Assigns x to this character data.

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().

void QDomCharacterData::replaceData ( unsigned long offset, unsigned long count, const QString & arg ) [virtual]

Replaces the substring of length count starting at position offset with the string arg.

void QDomCharacterData::setData ( const QString & v ) [virtual]

Sets this object's string to v.

QString QDomCharacterData::substringData ( unsigned long offset, unsigned long count ) [virtual]

Returns the substring of length count from position offset.

This file is part of the Qt toolkit. Copyright © 1995-2005 Trolltech. All Rights Reserved.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 42
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
  7. 2017 : un quinquennat pour une nouvelle version du C++ ? Possible, selon Herb Sutter 6
Page suivante

Le Qt Labs au hasard

Logo

Le moteur de rendu OpenGL

Les Qt Labs sont les laboratoires des développeurs de Qt, où ils peuvent partager des impressions sur le framework, son utilisation, ce que pourrait être son futur. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 3.3
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web