example.h 1.09 KB
Newer Older
Dimitri van Heesch's avatar
Dimitri van Heesch committed
1 2
/******************************************************************************
 *
3
 * 
Dimitri van Heesch's avatar
Dimitri van Heesch committed
4
 *
5
 * Copyright (C) 1997-2008 by Dimitri van Heesch.
Dimitri van Heesch's avatar
Dimitri van Heesch committed
6 7 8 9 10 11 12
 *
 * Permission to use, copy, modify, and distribute this software and its
 * documentation under the terms of the GNU General Public License is hereby 
 * granted. No representations are made about the suitability of this software 
 * for any purpose. It is provided "as is" without express or implied warranty.
 * See the GNU General Public License for more details.
 *
Dimitri van Heesch's avatar
Dimitri van Heesch committed
13 14
 * Documents produced by Doxygen are derivative works derived from the
 * input used in their production; they are not affected by this license.
Dimitri van Heesch's avatar
Dimitri van Heesch committed
15 16 17 18 19 20
 *
 */

#ifndef EXAMPLE_H
#define EXAMPLE_H

21
#include "qtbc.h"
22
#include <qdict.h>
Dimitri van Heesch's avatar
Dimitri van Heesch committed
23 24 25 26 27 28

class ClassDef;
class MemberName;

struct Example
{
29 30 31
  QCString anchor;
  QCString name;
  QCString file;
Dimitri van Heesch's avatar
Dimitri van Heesch committed
32 33
};

Dimitri van Heesch's avatar
Dimitri van Heesch committed
34
class ExampleSDict : public SDict<Example>
Dimitri van Heesch's avatar
Dimitri van Heesch committed
35 36
{
  public:
Dimitri van Heesch's avatar
Dimitri van Heesch committed
37 38
    ExampleSDict(int size=17) : SDict<Example>(size) {}
   ~ExampleSDict() {}
Dimitri van Heesch's avatar
Dimitri van Heesch committed
39 40 41 42 43 44 45
    int compareItems(GCI item1,GCI item2)
    {
      return stricmp(((Example *)item1)->name,((Example *)item2)->name);
    }
};

#endif