This class is a namespace for HTAGS related functions
在文件 htags.h 第 21 行定义.
bool Htags::execute |
( |
const QCString & |
htmldir | ) |
|
|
static |
constructs command line of htags(1) and executes it.
- 返回值
-
TRUE | success |
FALSE | an error has occurred. |
在文件 htags.cpp 第 38 行定义.
47 if (inputSource.empty())
51 else if (inputSource.size()==1)
55 err(
"Cannot find directory %s. "
56 "Check the value of the INPUT tag in the configuration file.\n",
57 inputSource.back().c_str()
62 err(
"If you use USE_HTAGS then INPUT should specify a single directory.\n");
69 QCString commandLine =
" -g -s -a -n ";
70 if (!quiet) commandLine +=
"-v ";
71 if (warnings) commandLine +=
"-w ";
75 commandLine += htagsOptions;
79 commandLine +=
"-t \"";
80 commandLine += projectName;
84 commandLine += projectNumber;
88 commandLine +=
" \"" + htmldir +
"\"";
96 err(
"Problems running %s. Check your installation\n",
"htags");
引用了 Dir::absPath(), Config_getBool, Config_getList, Config_getString, Dir::currentDirPath(), err(), Dir::exists(), FALSE, g_inputDir, QCString::isEmpty(), Dir::setCurrent(), Dir::setPath(), Portable::system(), Portable::sysTimerStart() , 以及 Portable::sysTimerStop().
被这些函数引用 generateOutput().
bool Htags::loadFilemap |
( |
const QCString & |
htmlDir | ) |
|
|
static |
load filemap and make index.
- 参数
-
htmlDir | of HTML directory generated by htags(1). |
- 返回值
-
在文件 htags.cpp 第 109 行定义.
111 QCString fileMapName = htmlDir+
"/HTML/FILEMAP";
124 if (fi.exists() && fi.isReadable())
126 std::ifstream f(fileMapName.
str(),std::ifstream::in);
130 while (getline(f,lineStr))
134 int sep = line.find(
'\t');
140 if (ext!=-1) value=value.
left(ext);
149 err(
"file %s cannot be opened\n",
qPrint(fileMapName));
引用了 err(), FileInfo::exists(), QCString::find(), QCString::findRev(), g_symbolMap, FileInfo::isReadable(), QCString::left(), QCString::mid(), qPrint(), QCString::str() , 以及 QCString::stripWhiteSpace().
被这些函数引用 generateOutput().