]>
git.saurik.com Git - wxWidgets.git/blob - src/html/search.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSearchEngine - class for searching keywords
4 // Author: Vaclav Slavik
5 // Copyright: (c) 1999 Vaclav Slavik
6 // Licence: wxWindows Licence
7 /////////////////////////////////////////////////////////////////////////////
19 #include <wx/stream.h>
21 //--------------------------------------------------------------------------------
23 // This class takes input streams and scans them for occurence
25 //--------------------------------------------------------------------------------
28 class wxSearchEngine
: public wxObject
34 wxSearchEngine() : wxObject() {m_Keyword
= NULL
;}
35 ~wxSearchEngine() {if (m_Keyword
) free(m_Keyword
);}
37 virtual void LookFor(const wxString
& keyword
);
38 // Sets the keyword we will be searching for
40 virtual bool Scan(wxInputStream
*stream
);
41 // Scans the stream for the keyword.
42 // Returns TRUE if the stream contains keyword, fALSE otherwise