2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 // $XConsortium: DtSR_SearchResults.hh /main/4 1996/10/16 14:23:29 cde-hal $
24 #ifndef _DTSR_SEARCHRESULTS_HH_
25 #define _DTSR_SEARCHRESULTS_HH_
27 #include "UAS_SearchResults.hh"
28 #include "UAS_Collection.hh"
29 #include "DtSR_SearchResultsEntry.hh"
30 #include "DtSR_Stems.hh"
32 template <class T> class UAS_Pointer;
33 template <class T> class UAS_List;
35 class DtSR_SearchResultsEntry;
37 class DtSR_SearchResults : public UAS_SearchResults
40 DtSR_SearchResults (UAS_Pointer<UAS_String> query,
41 UAS_Pointer<UAS_String> scope_name,
42 UAS_Pointer<UAS_List<UAS_SearchResultsEntry> > res,
43 int ndocs, UAS_Pointer<DtSR_Stems>,
44 UAS_SearchZones zones, int stype);
46 ~DtSR_SearchResults() {}
48 UAS_Pointer<UAS_List<UAS_SearchResultsEntry> > create_results(int, int);
50 static void sort(UAS_Pointer<UAS_List<UAS_SearchResultsEntry> >);
52 void merge(UAS_Pointer<DtSR_SearchResults> &);
54 UAS_Pointer<DtSR_Stems> stems(int dbn);
56 UAS_SearchZones &search_zones() { return f_zones; }
58 int search_type() { return f_search_type; }
61 friend class UAS_Pointer<DtSR_SearchResults>;
62 virtual void unreference();
66 UAS_List<DtSR_Stems> f_stems_list;
67 UAS_SearchZones f_zones;