Return to DK Summary

The Classes

HTMLBeacon

Derived from: none

Declared in: HTMLFile.h

HTMLBeacon represents particular strings to search in an html file. Use them with HTMLFile.


Constructor and Destructor

HTMLBeacon()

                                                         
  

HTMLBeacon(const char *stringToFind)

HTMLBeacon(const char *string1, const char *string2)

Creates a new HTMLBeacon. The first version creates a one-string beacon. stringToFind will be searched in the html file, and if it is found, the word just after will be stored. The second version creates a two-string beacon. When BeHappy finds string1, it will look for string2 and store the text between the two of them.

A few remarks:


Member Functions

Found()

                                                         
  

bool Found()

Return true if the beacon has been found. The beacon must have been added to a file (see HTMLFile::AddBeacon()), and the file must have been searched (see HTMLFile::Search()).


FoundString()

                                                         
  

const char *FoundString()

Return the string found, if the beacon has been found. The beacon must have been added to a file (see HTMLFile::AddBeacon()), and the file must have been searched (see HTMLFile::Search()).

If the beacon is a one-string beacon, the found string is just the word after stringToFind, and if it is a two-string beacon, the found string is all the text between string1 and string2 (with the tags removed).


Return to DK Summary