Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtinfo / dtinfogen / infolib / etc / AusText.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: AusText.h /main/2 1996/07/18 16:38:54 drk $ */
24 // AusText.h - Specific implementation for AusText search engine
25
26 #ifndef AUSTEXT_HEADER
27 #define AUSTEXT_HEADER
28
29 #include "SearchEng.h"
30
31 class Token;
32 class AusTextStore;
33 class NodeData;
34 class DataRepository;
35
36 class AusText : public SearchEngine {
37
38 private:
39   DataRepository *store;
40   AusTextStore   *f_search_store;
41
42 protected:
43   void write_start_tag ( const Token &);
44   void write_end_tag ( const Token & );
45   void write_terms ( FlexBuffer *termsbuf );
46   void write_buffer();
47
48 public:
49   void markup( const Token & );
50   void data( const char *, size_t );
51
52 public:
53   AusText(NodeData *, const Token &);
54   ~AusText();
55
56 };
57
58 #endif