summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2016-02-07 14:35:40 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2016-02-07 14:35:40 (GMT)
commitd168f8bfef6aac5a71eccad36dced78d55765ae1 (patch)
treeff740e5cb3ad29df2caafd20f7cf7cd6c0c0acae /src/filedef.cpp
parentee2d6faecab57c1f929d6868ae6eb9bdaa53d654 (diff)
downloadDoxygen-d168f8bfef6aac5a71eccad36dced78d55765ae1.zip
Doxygen-d168f8bfef6aac5a71eccad36dced78d55765ae1.tar.gz
Doxygen-d168f8bfef6aac5a71eccad36dced78d55765ae1.tar.bz2
Optimized use of convertNameToFile to improve performance
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp30
1 files changed, 26 insertions, 4 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index d5f736d..96cfe9e 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -82,8 +82,7 @@ FileDef::FileDef(const char *p,const char *nm,
m_path=p;
m_filePath=m_path+nm;
m_fileName=nm;
- m_diskName=dn;
- if (m_diskName.isEmpty()) m_diskName=nm;
+ setDiskName(dn?dn:nm);
setReference(lref);
m_classSDict = 0;
m_includeList = 0;
@@ -125,6 +124,13 @@ FileDef::~FileDef()
delete m_memberGroupSDict;
}
+void FileDef::setDiskName(const QCString &name)
+{
+ m_outputDiskName = convertNameToFile(name);
+ m_inclDepFileName = convertNameToFile(name+"_incl");
+ m_inclByDepFileName = convertNameToFile(name+"_dep_incl");
+}
+
/*! Compute the HTML anchor names for all members in the class */
void FileDef::computeAnchors()
{
@@ -1769,17 +1775,22 @@ void FileDef::acquireFileVersion()
QCString FileDef::getSourceFileBase() const
-{
+{
if (Htags::useHtags)
{
return Htags::path2URL(m_filePath);
}
else
{
- return convertNameToFile(m_diskName)+"_source";
+ return m_outputDiskName+"_source";
}
}
+QCString FileDef::getOutputFileBase() const
+{
+ return m_outputDiskName;
+}
+
/*! Returns the name of the verbatim copy of this file (if any). */
QCString FileDef::includeName() const
{
@@ -1916,3 +1927,14 @@ QCString FileDef::fileVersion() const
{
return m_fileVersion;
}
+
+QCString FileDef::includeDependencyGraphFileName() const
+{
+ return m_inclDepFileName;
+}
+
+QCString FileDef::includedByDependencyGraphFileName() const
+{
+ return m_inclByDepFileName;
+}
+