cxxtools::xml::EndDocument Class Reference

A Node which represents the end of the XML document. More...

#include <cxxtools/xml/enddocument.h>

Inheritance diagram for cxxtools::xml::EndDocument:
cxxtools::xml::Node

Public Member Functions

 EndDocument ()
 Creates an EndDocument object.
EndDocumentclone () const
 Clones this EndDocument object by creating a duplicate on the heap and returning it.
- Public Member Functions inherited from cxxtools::xml::Node
 Node (Type type)
 Constructs a new Node object with the specified node type.
virtual ~Node ()
 Empty destructor.
Type type () const
 Returns the type of this Node that can be used to determine what specific Node this object is.
virtual bool operator== (const Node &) const
 Compares this Node object with the given node.

Additional Inherited Members

- Public Types inherited from cxxtools::xml::Node
enum  Type {
  Unknown = 0, StartDocument = 1, DocType = 2, EndDocument = 3,
  StartElement = 4, EndElement = 5, Characters = 6, Comment,
  ProcessingInstruction
}

Detailed Description

A Node which represents the end of the XML document.

The last Node/Element which is read from a document is the EndDocument-node. It is read after the last tag, Text or comment was read from the XML document. This is similar to an eof character at the end of a file read.

See Also
Node

Constructor & Destructor Documentation

cxxtools::xml::EndDocument::EndDocument ( )
inline

Creates an EndDocument object.

Member Function Documentation

EndDocument* cxxtools::xml::EndDocument::clone ( ) const
inlinevirtual

Clones this EndDocument object by creating a duplicate on the heap and returning it.

Returns
A cloned version of this EndDocument object.

Implements cxxtools::xml::Node.


The documentation for this class was generated from the following file: