Fix for UBSan build
[platform/upstream/doxygen.git] / src / filename.h
1 /******************************************************************************
2  *
3  * $Id: filename.h,v 1.10 2001/03/19 19:27:40 root Exp $
4  *
5  * Copyright (C) 1997-2012 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 FILENAME_H
19 #define FILENAME_H
20
21 #include "qtbc.h"
22 #include <qdict.h>
23 #include "filedef.h"
24
25 /** Class representing all files with a certain base name */
26 class FileName : public FileList
27
28   public:
29     FileName(const char *fn,const char *name);
30    ~FileName();
31     const char *fileName() const { return name; }
32     const char *fullName() const { return fName; }
33     void generateDiskNames();
34     int compareItems(GCI item1,GCI item2);
35
36   private:
37     QCString name;
38     QCString fName;
39 };
40
41 /** Iterator for FileDef objects in a FileName list. */
42 class FileNameIterator : public QListIterator<FileDef>
43 {
44   public:
45     FileNameIterator(const FileName &list);
46 };
47
48 /** Class representing a list of FileName objects. */
49 class FileNameList : public QList<FileName>
50 {
51   public:
52     FileNameList();
53    ~FileNameList();
54     void generateDiskNames();
55     int compareItems(GCI item1,GCI item2);
56 };
57
58 /** Iterator for FileName objects in a FileNameList. */
59 class FileNameListIterator : public QListIterator<FileName>
60 {
61   public:
62     FileNameListIterator( const FileNameList &list );
63 };
64
65 /** Unsorted dictionary of FileName objects. */
66 class FileNameDict : public QDict<FileName>
67 {
68   public:
69     FileNameDict(uint size) : 
70        QDict<FileName>(size,Config_getBool("CASE_SENSE_NAMES")) {}
71    ~FileNameDict() {}
72 };
73
74 #endif