diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-04-09 20:10:21 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-04-09 20:10:21 (GMT) |
commit | 6dd67240ada85194cac05801d5fcdfa3bc58772d (patch) | |
tree | fb4df23c4ec18f6ca3b2f2399ac8d37dae950f2a /addon/xmlgen | |
parent | c08484819f37862c753a193092326cb16e1a89fa (diff) | |
download | Doxygen-6dd67240ada85194cac05801d5fcdfa3bc58772d.zip Doxygen-6dd67240ada85194cac05801d5fcdfa3bc58772d.tar.gz Doxygen-6dd67240ada85194cac05801d5fcdfa3bc58772d.tar.bz2 |
Release-1.2.6-20010409
Diffstat (limited to 'addon/xmlgen')
-rw-r--r-- | addon/xmlgen/xml.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/addon/xmlgen/xml.cpp b/addon/xmlgen/xml.cpp index a624426..dbfb0e9 100644 --- a/addon/xmlgen/xml.cpp +++ b/addon/xmlgen/xml.cpp @@ -60,7 +60,7 @@ class TextGeneratorXMLImpl : public TextGeneratorIntf void generateDTD() { - QCString fileName=Config::instance()->getString("OUTPUT_DIRECTORY")+"/xml/doxygen.dtd"; + QCString fileName=Config_getString("OUTPUT_DIRECTORY")+"/xml/doxygen.dtd"; QFile f(fileName); if (!f.open(IO_WriteOnly)) { @@ -440,49 +440,49 @@ void generateXMLForFile(FileDef *fd,QTextStream &t) void generateXML() { - if (Config::instance()->getString("OUTPUT_DIRECTORY").isEmpty()) - Config::instance()->getString("OUTPUT_DIRECTORY")=QDir::currentDirPath(); + if (Config_getString("OUTPUT_DIRECTORY").isEmpty()) + Config_getString("OUTPUT_DIRECTORY")=QDir::currentDirPath(); else { - QDir dir(Config::instance()->getString("OUTPUT_DIRECTORY")); + QDir dir(Config_getString("OUTPUT_DIRECTORY")); if (!dir.exists()) { dir.setPath(QDir::currentDirPath()); - if (!dir.mkdir(Config::instance()->getString("OUTPUT_DIRECTORY"))) + if (!dir.mkdir(Config_getString("OUTPUT_DIRECTORY"))) { err("Error: tag OUTPUT_DIRECTORY: Output directory `%s' does not " - "exist and cannot be created\n",Config::instance()->getString("OUTPUT_DIRECTORY").data()); + "exist and cannot be created\n",Config_getString("OUTPUT_DIRECTORY").data()); exit(1); } - else if (!Config::instance()->getBool("QUIET")) + else if (!Config_getBool("QUIET")) { err("Notice: Output directory `%s' does not exist. " - "I have created it for you.\n", Config::instance()->getString("OUTPUT_DIRECTORY").data()); + "I have created it for you.\n", Config_getString("OUTPUT_DIRECTORY").data()); } - dir.cd(Config::instance()->getString("OUTPUT_DIRECTORY")); + dir.cd(Config_getString("OUTPUT_DIRECTORY")); } - Config::instance()->getString("OUTPUT_DIRECTORY")=dir.absPath(); + Config_getString("OUTPUT_DIRECTORY")=dir.absPath(); } - QDir dir(Config::instance()->getString("OUTPUT_DIRECTORY")); + QDir dir(Config_getString("OUTPUT_DIRECTORY")); if (!dir.exists()) { dir.setPath(QDir::currentDirPath()); - if (!dir.mkdir(Config::instance()->getString("OUTPUT_DIRECTORY"))) + if (!dir.mkdir(Config_getString("OUTPUT_DIRECTORY"))) { - err("Cannot create directory %s\n",Config::instance()->getString("OUTPUT_DIRECTORY").data()); + err("Cannot create directory %s\n",Config_getString("OUTPUT_DIRECTORY").data()); return; } } - QDir xmlDir(Config::instance()->getString("OUTPUT_DIRECTORY")+"/xml"); - if (!xmlDir.exists() && !xmlDir.mkdir(Config::instance()->getString("OUTPUT_DIRECTORY")+"/xml")) + QDir xmlDir(Config_getString("OUTPUT_DIRECTORY")+"/xml"); + if (!xmlDir.exists() && !xmlDir.mkdir(Config_getString("OUTPUT_DIRECTORY")+"/xml")) { - err("Could not create xml directory in %s\n",Config::instance()->getString("OUTPUT_DIRECTORY").data()); + err("Could not create xml directory in %s\n",Config_getString("OUTPUT_DIRECTORY").data()); return; } generateDTD(); - QCString fileName=Config::instance()->getString("OUTPUT_DIRECTORY")+"/xml/doxygen.xml"; + QCString fileName=Config_getString("OUTPUT_DIRECTORY")+"/xml/doxygen.xml"; QFile f(fileName); if (!f.open(IO_WriteOnly)) { |