Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
src
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
;
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
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
:
70
FileNameDict
(
uint
size
);
71
~FileNameDict
() {}
72
};
73
74
#endif
FileName::fullName
const char * fullName() const
Definition:
filename.h:32
FileName::name
QCString name
Definition:
filename.h:37
FileNameDict::~FileNameDict
~FileNameDict()
Definition:
filename.h:71
FileName::generateDiskNames
void generateDiskNames()
Definition:
filename.cpp:34
FileName::FileName
FileName(const char *fn, const char *name)
Definition:
filename.cpp:22
FileDef
Definition:
filedef.h:64
FileNameListIterator
Definition:
filename.h:60
FileName::compareValues
int compareValues(const FileDef *item1, const FileDef *item2) const
Definition:
filename.cpp:103
FileName
Definition:
filename.h:26
FileNameIterator
Definition:
filename.h:42
util::size
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition:
StdUtils.h:92
fn
QAsciiDict< Entry > fn
Definition:
tclscanner.cpp:1149
filedef.h
QListIterator
Definition:
qlist.h:126
FileList
Definition:
filedef.h:239
qdict.h
FileName::fName
QCString fName
Definition:
filename.h:38
FileName::fileName
const char * fileName() const
Definition:
filename.h:31
FileName::~FileName
~FileName()
Definition:
filename.cpp:29
qlist.h
FileNameList
Definition:
filename.h:49
FileNameDict
Definition:
filename.h:67
QCString
Definition:
qcstring.h:131
uint
unsigned uint
Definition:
qglobal.h:351
QList
Definition:
qlist.h:54
Generated by
1.8.11