filename.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  *
4  *
5  * Copyright (C) 1997-2015 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 <qdict.h>
22 #include <qlist.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 
35  private:
36  int compareValues(const FileDef *item1,const FileDef *item2) const;
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  private:
56  int compareValues(const FileName *item1,const FileName *item2) const;
57 };
58 
59 /** Iterator for FileName objects in a FileNameList. */
60 class FileNameListIterator : public QListIterator<FileName>
61 {
62  public:
63  FileNameListIterator( const FileNameList &list );
64 };
65 
66 /** Unsorted dictionary of FileName objects. */
67 class FileNameDict : public QDict<FileName>
68 {
69  public:
72 };
73 
74 #endif
const char * fullName() const
Definition: filename.h:32
QCString name
Definition: filename.h:37
~FileNameDict()
Definition: filename.h:71
void generateDiskNames()
Definition: filename.cpp:34
FileName(const char *fn, const char *name)
Definition: filename.cpp:22
int compareValues(const FileDef *item1, const FileDef *item2) const
Definition: filename.cpp:103
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
QAsciiDict< Entry > fn
QCString fName
Definition: filename.h:38
const char * fileName() const
Definition: filename.h:31
~FileName()
Definition: filename.cpp:29
unsigned uint
Definition: qglobal.h:351
Definition: qlist.h:54