Noeud de type texte. More...
#include "xmldocument.h"
Public Member Functions | |
| Text (Element *parent, std::string const &name) | |
| Constructeur. More... | |
| Type | type () const |
| Accès au type du noeud. More... | |
| Node * | deepCopy (Element *newparent) const |
| Crée une copie (profonde) du noeud courant, et le rattache au parent passé en paramètre. More... | |
| bool | cdata () const |
| Est-ce que le texte doit être sorti sous la forme d'un CDATA. More... | |
| void | setCdata (bool cd) |
| Changement de la forme CDATA. More... | |
Public Member Functions inherited from cogitant::XmlDocument::Node | |
| Node (Element *parent, std::string const &name) | |
| Constructeur. More... | |
| virtual | ~Node () |
| Destructeur. More... | |
| Element * | parent () const |
| Accès au parent. More... | |
| std::string const & | name () const |
| Accès à l'intitulé. More... | |
| std::string & | name () |
| Accès à l'intitulé. More... | |
| void | setName (std::string const &name) |
| Modification de l'intitulé. More... | |
| XmlDeclaration & | asXmlDeclaration () |
| Conversion en noeud de type XMLDECLARATION. More... | |
| DoctypeDeclaration & | asDoctypeDeclaration () |
| Conversion en noeud de type DOCTYPEDECLARATION. More... | |
| Element & | asElement () |
| Conversion en noeud de type ELEMENT. More... | |
| Text & | asText () |
| Conversion en noeud de type TEXT. More... | |
| Comment & | asComment () |
| Conversion en noeud de type COMMENT. More... | |
| XmlDeclaration const & | asXmlDeclaration () const |
| Conversion en noeud de type XMLDECLARATION. More... | |
| DoctypeDeclaration const & | asDoctypeDeclaration () const |
| Conversion en noeud de type DOCTYPEDECLARATION. More... | |
| Element const & | asElement () const |
| Conversion en noeud de type ELEMENT. More... | |
| Text const & | asText () const |
| Conversion en noeud de type TEXT. More... | |
| Comment const & | asComment () const |
| Conversion en noeud de type COMMENT. More... | |
Additional Inherited Members | |
Public Types inherited from cogitant::XmlDocument::Node | |
| enum | Type { XMLDECLARATION, DOCTYPEDECLARATION, ELEMENT, TEXT, COMMENT } |
| Les types de noeuds qui composent un document. More... | |
Protected Attributes inherited from cogitant::XmlDocument::Node | |
| Element * | m_parent |
| Noeud parent (ou NULL si aucun). | |
| std::string | m_name |
| Intitulé du noeud. | |
Noeud de type texte.
| cogitant::XmlDocument::Text::Text | ( | Element * | parent, |
| std::string const & | name | ||
| ) |
Constructeur.
| bool cogitant::XmlDocument::Text::cdata | ( | ) | const |
Est-ce que le texte doit être sorti sous la forme d'un CDATA.
Crée une copie (profonde) du noeud courant, et le rattache au parent passé en paramètre.
Implements cogitant::XmlDocument::Node.
| void cogitant::XmlDocument::Text::setCdata | ( | bool | cd | ) |
Changement de la forme CDATA.
|
virtual |
Accès au type du noeud.
Implements cogitant::XmlDocument::Node.