]> git.saurik.com Git - wxWidgets.git/blob - src/html/search.h
Added gifdecod.h
[wxWidgets.git] / src / html / search.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: search.h
3 // Purpose: wxSearchEngine - class for searching keywords
4 // Author: Vaclav Slavik
5 // Copyright: (c) 1999 Vaclav Slavik
6 // Licence: wxWindows Licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 #if wxUSE_HTML
10
11 #ifndef __SEARCH_H__
12 #define __SEARCH_H__
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18
19 #include <wx/stream.h>
20
21 //--------------------------------------------------------------------------------
22 // wxSearchEngine
23 // This class takes input streams and scans them for occurence
24 // of keyword(s)
25 //--------------------------------------------------------------------------------
26
27
28 class wxSearchEngine : public wxObject
29 {
30 private:
31 char *m_Keyword;
32
33 public:
34 wxSearchEngine() : wxObject() {m_Keyword = NULL;}
35 ~wxSearchEngine() {if (m_Keyword) free(m_Keyword);}
36
37 virtual void LookFor(const wxString& keyword);
38 // Sets the keyword we will be searching for
39
40 virtual bool Scan(wxInputStream *stream);
41 // Scans the stream for the keyword.
42 // Returns TRUE if the stream contains keyword, fALSE otherwise
43 };
44
45
46
47
48 #endif
49
50 #endif