Entête du fichier : déclaration ?xml. More...
#include "xmldocument.h"
Public Member Functions | |
| XmlDeclaration (std::string const &version="1.0", std::string const &encoding="", std::string const &standalone="") | |
| 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... | |
| std::string const & | version () const |
| Accès à la version XML. More... | |
| std::string const & | encoding () const |
| Accès à l'encodage. More... | |
| std::string const & | standalone () const |
| Accès à la valeur de standalone. More... | |
| void | setVersion (std::string const &version) |
| Modification de la version XML. More... | |
| void | setEncoding (std::string const &encoding) |
| Modification de l'encodage. More... | |
| void | setEncoding (Encoding::Type encoding) |
| Modification de l'encodage. More... | |
| void | setStandalone (std::string const &standalone) |
| Modification du standalone. 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... | |
Protected Attributes | |
| std::string | m_version |
| Version XML utilisée. More... | |
| std::string | m_encoding |
| Encodage des caractères. More... | |
| std::string | m_standalone |
| Valeur du standalone. More... | |
Protected Attributes inherited from cogitant::XmlDocument::Node | |
| Element * | m_parent |
| Noeud parent (ou NULL si aucun). | |
| std::string | m_name |
| Intitulé du noeud. | |
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... | |
Entête du fichier : déclaration ?xml.
| cogitant::XmlDocument::XmlDeclaration::XmlDeclaration | ( | std::string const & | version = "1.0", |
| std::string const & | encoding = "", |
||
| std::string const & | standalone = "" |
||
| ) |
Constructeur.
Le parent d'une telle déclaration est toujours NULL, et le nom "xml".
Crée une copie (profonde) du noeud courant, et le rattache au parent passé en paramètre.
Implements cogitant::XmlDocument::Node.
| std::string const& cogitant::XmlDocument::XmlDeclaration::encoding | ( | ) | const |
Accès à l'encodage.
| void cogitant::XmlDocument::XmlDeclaration::setEncoding | ( | std::string const & | encoding | ) |
Modification de l'encodage.
| void cogitant::XmlDocument::XmlDeclaration::setEncoding | ( | Encoding::Type | encoding | ) |
Modification de l'encodage.
| void cogitant::XmlDocument::XmlDeclaration::setStandalone | ( | std::string const & | standalone | ) |
Modification du standalone.
| void cogitant::XmlDocument::XmlDeclaration::setVersion | ( | std::string const & | version | ) |
Modification de la version XML.
| std::string const& cogitant::XmlDocument::XmlDeclaration::standalone | ( | ) | const |
Accès à la valeur de standalone.
|
virtual |
Accès au type du noeud.
Implements cogitant::XmlDocument::Node.
| std::string const& cogitant::XmlDocument::XmlDeclaration::version | ( | ) | const |
Accès à la version XML.
|
protected |
Encodage des caractères.
|
protected |
Valeur du standalone.
|
protected |
Version XML utilisée.