Return to DK Summary

The Classes

HTMLLabel

Derived from: none

Declared in: HTMLFile.h

HTMLLabel represents a label in an html file. Use them with HTMLFile.


Constructor and Destructor

HTMLLabel()

Remark: You shouldn't need to construct HTMLLabels yourself. The HTMLFile will create them for you when it finds a label or a link, in its Search() method.
                                                         
  

HTMLLabel(HTMLProject *proj, const char *fileName, const char *labelName, const char *labelText, unsigned int beacon=0)

HTMLLabel(const HTMLLabel*)

Creates a new HTMLLabel. The first version creates a new label, with these parameters:

The second version is a copy constructor.


~HTMLLabel()

                                                         
  

~HTMLLabel()

Destroys the HTMLLabel object.


Member Functions

FileName()

                                                         
  

const char *FileName() const

Returns the name of the html file that has the label.

This string is owned by the HTMLLabel. Don't destroy it.


GetFile()

                                                         
  

HTMLFile *GetFile() const

Creates an HTMLFile associated to the file that contains the link. You keep the responsability for this object. You must destroy it after use.


LabelName()

                                                         
  

const char *LabelName() const

Returns the name of the label, i.e. the italic string in one of these tags: <a href="fileName#labelName"> or <a name="labelName">.

This string is owned by the HTMLLabel. Don't destroy it.


LabelText()

                                                         
  

const char *LabelText() const

Returns the label text. This is the name of the label as seen by the user, i.e. the string between the <a href="..."> and </a> tags (or <a name="..."> and </a> for a label).

This string is owned by the HTMLLabel. Don't destroy it.


Operators

!=, == (comparaison)

                                                         
  

bool operator==(const HTMLLabel&)

bool operator!=(const HTMLLabel&)

Compares the two HTMLLabels. == returns true if both HTMLLabel point to the same file, and have the same label.
Return to DK Summary