1 /******************************************************************************
3 * $Id: example.h,v 1.10 2001/03/19 19:27:40 root Exp $
5 * Copyright (C) 1997-2012 by Dimitri van Heesch.
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.
13 * Documents produced by Doxygen are derivative works derived from the
14 * input used in their production; they are not affected by this license.
27 /** Data associated with an example. */
35 /** A sorted dictionary of Example objects. */
36 class ExampleSDict : public SDict<Example>
39 ExampleSDict(int size=17) : SDict<Example>(size) {}
41 int compareItems(GCI item1,GCI item2)
43 return stricmp(((Example *)item1)->name,((Example *)item2)->name);