class ContentNode: public Node

This class represents a node, which contains plain text

Inheritance:

ContentNode - Node


Public Methods

[more] ContentNode(xmlNodePtr node, int latex_encode = 1)
The constructor initializes the content-node
[more] ~ContentNode()
Destructor
[more]void writeHTML(int parameter=0) const
This method writes the node to the global output filestream Output_
[more]void writeLaTeX() const
This method writes the node to the global output filestream Output_
[more]void writeXML() const
This method writes the node to the global output filestream Output_
[more]int getLength() const
This method returns the number of characters of the stored text

Private Fields

[more]char* text_
The text of the content-node
[more]int latex_encode_
1, if the LaTeX-output should encode special characters, else 0


Inherited from Node:

Protected Fields

o child_nodes_


Documentation

This class represents a node, which contains plain text. It is called ContentNode, because TextNode is used for nodes, which represent the <text> markup.
o ContentNode(xmlNodePtr node, int latex_encode = 1)
The constructor initializes the content-node.

Parameters:
node - The XML-node, which represents the content-node.
latex_encode - Indicates, if special characters should be encoded in the LaTeX-output.

o ~ContentNode()
Destructor.

ovoid writeHTML(int parameter=0) const
This method writes the node to the global output filestream Output_. The format of the output must be HTML. An integer-parameter has to be given because of the derivation, but it won't be used in this class.

Parameters:
parameter - A dummy-parameter

ovoid writeLaTeX() const
This method writes the node to the global output filestream Output_. The format of the output must be LaTeX.

ovoid writeXML() const
This method writes the node to the global output filestream Output_. The format of the output must be XML.

oint getLength() const
This method returns the number of characters of the stored text.

Returns:
The length of the text.

ochar* text_
The text of the content-node.

oint latex_encode_
1, if the LaTeX-output should encode special characters, else 0.


This class has no child classes.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.