Quick links: Tutorial - Examples - Files - Symbols.
Classes: Hierarchy - Index - List - Members.
Namespaces: Index - base - cs - display.

Public Member Functions | Protected Attributes | List of all members
cogitant::XmlDocument::DoctypeDeclaration Class Reference

Entête du fichier : déclaration !DOCTYPE et autres déclarations non interprétées par l'analyseur. More...

#include "xmldocument.h"

Inheritance diagram for cogitant::XmlDocument::DoctypeDeclaration:
cogitant::XmlDocument::Node

Public Member Functions

 DoctypeDeclaration ()
 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...
 
void addAttribute (std::string const &attr)
 Ajout d'un attribut. More...
 
std::list< std::string > const & attributes () const
 Accès aux attributs. More...
 
std::string rootName () const
 Accès au nom de la racine (le premier attribut). More...
 
std::string formatName () const
 Accès au nom du format (le troisième attribut). 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::list< std::string > m_attributes
 Le contenu de la déclaration . 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...
 

Detailed Description

Entête du fichier : déclaration !DOCTYPE et autres déclarations non interprétées par l'analyseur.

Constructor & Destructor Documentation

◆ DoctypeDeclaration()

cogitant::XmlDocument::DoctypeDeclaration::DoctypeDeclaration ( )

Constructeur.

Member Function Documentation

◆ addAttribute()

void cogitant::XmlDocument::DoctypeDeclaration::addAttribute ( std::string const &  attr)

Ajout d'un attribut.

◆ attributes()

std::list< std::string > const& cogitant::XmlDocument::DoctypeDeclaration::attributes ( ) const

Accès aux attributs.

◆ deepCopy()

Node* cogitant::XmlDocument::DoctypeDeclaration::deepCopy ( Element *  newparent) const
virtual

Crée une copie (profonde) du noeud courant, et le rattache au parent passé en paramètre.

Implements cogitant::XmlDocument::Node.

◆ formatName()

std::string cogitant::XmlDocument::DoctypeDeclaration::formatName ( ) const

Accès au nom du format (le troisième attribut).

◆ rootName()

std::string cogitant::XmlDocument::DoctypeDeclaration::rootName ( ) const

Accès au nom de la racine (le premier attribut).

◆ type()

Type cogitant::XmlDocument::DoctypeDeclaration::type ( ) const
virtual

Accès au type du noeud.

Implements cogitant::XmlDocument::Node.

Member Data Documentation

◆ m_attributes

std::list< std::string > cogitant::XmlDocument::DoctypeDeclaration::m_attributes
protected

Le contenu de la déclaration .