Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Tag Class Reference

class Tag. More...

#include <Tag.h>

Inheritance diagram for Tag:

Inheritance graph
[legend]
Collaboration diagram for Tag:

Collaboration graph
[legend]
List of all members.

Public Methods

 Tag (const string &name="Tag")
 constructor. More...

virtual string GetName () const
 inspector. More...

virtual void SetName (const string &newName)
 modifier. More...

virtual string ToString () const
 from Writeable. More...


Protected Methods

Tag& Copy (const Tag &rhs)
 Copy constructor.

void Init (const string &newName)
 Initializer. More...

bool Equals (const Tag &rhs) const
 == operator. More...


Detailed Description

class Tag.

base class for all tags


Constructor & Destructor Documentation

Tag::Tag ( const string & name = "Tag" )
 

constructor.

takes a tag name as an argument


Member Function Documentation

bool Tag::Equals ( const Tag & rhs ) const [protected]
 

== operator.

from Object

string Tag::GetName ( ) const [virtual]
 

inspector.

Returns:
tag name

void Tag::Init ( const string & comment ) [protected]
 

Initializer.

sets tag name

Reimplemented in CDataTag, and Comment.

void Tag::SetName ( const string & newName ) [virtual]
 

modifier.

sets tag name

string Tag::ToString ( ) const [virtual]
 

from Writeable.

convert a Tag to a string

Reimplemented in EmptyEndTag, EmptyTag, EndTag, ProcessingInstruction, SpecialTag, and StartTag.


The documentation for this class was generated from the following file:
Generated at Wed May 2 00:21:08 2001 for libXMLement by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001