equal
deleted
inserted
replaced
|
1 /****************************************************************************** |
|
2 * |
|
3 * |
|
4 * |
|
5 * Copyright (C) 1997-2008 by Dimitri van Heesch. |
|
6 * |
|
7 * Permission to use, copy, modify, and distribute this software and its |
|
8 * documentation under the terms of the GNU General Public License is hereby |
|
9 * granted. No representations are made about the suitability of this software |
|
10 * for any purpose. It is provided "as is" without express or implied warranty. |
|
11 * See the GNU General Public License for more details. |
|
12 * |
|
13 * Documents produced by Doxygen are derivative works derived from the |
|
14 * input used in their production; they are not affected by this license. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef EXAMPLE_H |
|
19 #define EXAMPLE_H |
|
20 |
|
21 #include "qtbc.h" |
|
22 #include <qdict.h> |
|
23 |
|
24 class ClassDef; |
|
25 class MemberName; |
|
26 |
|
27 struct Example |
|
28 { |
|
29 QCString anchor; |
|
30 QCString name; |
|
31 QCString file; |
|
32 }; |
|
33 |
|
34 class ExampleSDict : public SDict<Example> |
|
35 { |
|
36 public: |
|
37 ExampleSDict(int size=17) : SDict<Example>(size) {} |
|
38 ~ExampleSDict() {} |
|
39 int compareItems(GCI item1,GCI item2) |
|
40 { |
|
41 return stricmp(((Example *)item1)->name,((Example *)item2)->name); |
|
42 } |
|
43 }; |
|
44 |
|
45 #endif |