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

Public Member Functions | List of all members
cogitant::XmlDocument::Comment Class Reference

Noeud de type commentaire. More...

#include "xmldocument.h"

Inheritance diagram for cogitant::XmlDocument::Comment:
cogitant::XmlDocument::Node

Public Member Functions

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

Detailed Description

Noeud de type commentaire.

Constructor & Destructor Documentation

◆ Comment()

cogitant::XmlDocument::Comment::Comment ( Element *  parent,
std::string const &  name 
)

Constructeur.

Member Function Documentation

◆ deepCopy()

Node* cogitant::XmlDocument::Comment::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.

◆ type()

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

Accès au type du noeud.

Implements cogitant::XmlDocument::Node.