/ styx_dom.hh / Objects / StyxDomNode / Private Datas / Description

Private Datas



type

DomNodeType		type;
DomNodeType representing the node type.


complete

bool			complete;
Boolean showing if the tag is closed or not.


name

string		name;
Character string containing the node name.


value

string		value;
Character string containing the node value.


parent

StyxDomNode		*parent;
Pointer to the parent node of this node.


prev

StyxDomNode		*prev;
Pointer to the previous sibling node of this node.


next

StyxDomNode		*next;
Pointer to the next sibling node of this node.


attributes

StyxDomNode*		attributes;
List of the attributes node of this node.


firstChild

StyxDomNode		*firstChild;
Pointer to the first child node of this node.


lastChild

StyxDomNode		*lastChild;
Pointer to the last child node of this node.


document

StyxDomNode		*document;
Pointer to the root document node.


namingspace

StyxDomNamespace	*namingspace;
Namespace associated to this node.


xmlnsAttrivutes

StyxDomNamespace	*xmlnsAttributes;
  /*!
   * @function	writeNamespace
   *		Function used by writeDOM() to write this node on a stream.
   * @param	file Stream to write the namespace.
   */
  void			writeNamespace(FILE* file);
  /*!
   * @function	writeAttr
   *		Function used by writeDom() to write this node on a stream.
   * @param	file Stream to write the attributes.
   */
  void			writeAttr(FILE* file);
};

/*!
 * class	StyxDomNamespace
 *		XML node for namespace representation.
 */
class			StyxDomNamespace
{
public:
  /*!
   * @function	getName
   *		Return the namespace's name.
   * @result	Namespace's name.
   */
  string		getName(void);
  /*!
   * @function	getUri
   *		Return the namespace's uri.
   * @result	Namespace's uri.
   */
  string		getUri(void);
  /*!
   * @function	getNextSibling
   *		Return a pointer to the next sibling of this node in the
   *		namespace list.
   * @result	A pointer to a StyxDomNamespace.
   */
  StyxDomNamespace*	getNextSibling(void);
  /*!
   * @function	addSibling
   *		Add an existing StyxDomNamespace as last sibling of this node.
   * @param	ns A pointer to a previously created StyxDomNamespace.
   */
  void			addSibling(StyxDomNamespace* ns);
  /*!
   * @function	getRootNode
   *		Return a pointer to the node where is declared this namespace.
   * @result	A pointer to a StyxDomNode.
   */
  StyxDomNode*		getRootNode(void);
  /*!
   * @function	StyxDomNamespace
   *		Constructor
   */
  StyxDomNamespace(StyxDomNode* root, string name, string uri);
private:
  /*! @var name Namespace's name. */
  string		name;
  /*! @var uri Namespace's uri. */
  string		uri;
  /*! @var rootNode Pointer to the node where this namespace was declared. */
  StyxDomNode*		rootNode;
  /*! @var prev Pointer to the previous sibling namespace. */
  StyxDomNamespace*	prev;
  /*! @var next Pointer to the next sibling namespace. */
  StyxDomNamespace	*next;
};

#endif /* __STYX_DOM_H__ */
List of namespaces declared in this node.