Lines 47-52
Link Here
|
47 |
#include "resourcemgr.h" |
47 |
#include "resourcemgr.h" |
48 |
#include "dir.h" |
48 |
#include "dir.h" |
49 |
#include "utf8.h" |
49 |
#include "utf8.h" |
|
|
50 |
#include "portable.h" |
50 |
|
51 |
|
51 |
// no debug info |
52 |
// no debug info |
52 |
#define XML_DB(x) do {} while(0) |
53 |
#define XML_DB(x) do {} while(0) |
Lines 162-168
static void writeCombineScript()
Link Here
|
162 |
{ |
163 |
{ |
163 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
164 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
164 |
QCString fileName=outputDirectory+"/combine.xslt"; |
165 |
QCString fileName=outputDirectory+"/combine.xslt"; |
165 |
std::ofstream t(fileName.str(),std::ofstream::out | std::ofstream::binary); |
166 |
std::ofstream t = Portable::openOutputStream(fileName); |
166 |
if (!t.is_open()) |
167 |
if (!t.is_open()) |
167 |
{ |
168 |
{ |
168 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
169 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
Lines 1271-1277
static void generateXMLForClass(const ClassDef *cd,TextStream &ti)
Link Here
|
1271 |
|
1272 |
|
1272 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1273 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1273 |
QCString fileName=outputDirectory+"/"+ classOutputFileBase(cd)+".xml"; |
1274 |
QCString fileName=outputDirectory+"/"+ classOutputFileBase(cd)+".xml"; |
1274 |
std::ofstream f(fileName.str(),std::ofstream::out | std::ofstream::binary); |
1275 |
std::ofstream f = Portable::openOutputStream(fileName); |
1275 |
if (!f.is_open()) |
1276 |
if (!f.is_open()) |
1276 |
{ |
1277 |
{ |
1277 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
1278 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
Lines 1435-1441
static void generateXMLForConcept(const ConceptDef *cd,TextStream &ti)
Link Here
|
1435 |
|
1436 |
|
1436 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1437 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1437 |
QCString fileName=outputDirectory+"/"+cd->getOutputFileBase()+".xml"; |
1438 |
QCString fileName=outputDirectory+"/"+cd->getOutputFileBase()+".xml"; |
1438 |
std::ofstream f(fileName.str(),std::ofstream::out | std::ofstream::binary); |
1439 |
std::ofstream f = Portable::openOutputStream(fileName); |
1439 |
if (!f.is_open()) |
1440 |
if (!f.is_open()) |
1440 |
{ |
1441 |
{ |
1441 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
1442 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
Lines 1488-1494
static void generateXMLForNamespace(const NamespaceDef *nd,TextStream &ti)
Link Here
|
1488 |
|
1489 |
|
1489 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1490 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1490 |
QCString fileName=outputDirectory+"/"+nd->getOutputFileBase()+".xml"; |
1491 |
QCString fileName=outputDirectory+"/"+nd->getOutputFileBase()+".xml"; |
1491 |
std::ofstream f(fileName.str(),std::ofstream::out | std::ofstream::binary); |
1492 |
std::ofstream f = Portable::openOutputStream(fileName); |
1492 |
if (!f.is_open()) |
1493 |
if (!f.is_open()) |
1493 |
{ |
1494 |
{ |
1494 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
1495 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
Lines 1563-1569
static void generateXMLForFile(FileDef *fd,TextStream &ti)
Link Here
|
1563 |
|
1564 |
|
1564 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1565 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1565 |
QCString fileName=outputDirectory+"/"+fd->getOutputFileBase()+".xml"; |
1566 |
QCString fileName=outputDirectory+"/"+fd->getOutputFileBase()+".xml"; |
1566 |
std::ofstream f(fileName.str(),std::ofstream::out | std::ofstream::binary); |
1567 |
std::ofstream f = Portable::openOutputStream(fileName); |
1567 |
if (!f.is_open()) |
1568 |
if (!f.is_open()) |
1568 |
{ |
1569 |
{ |
1569 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
1570 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
Lines 1674-1680
static void generateXMLForGroup(const GroupDef *gd,TextStream &ti)
Link Here
|
1674 |
|
1675 |
|
1675 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1676 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1676 |
QCString fileName=outputDirectory+"/"+gd->getOutputFileBase()+".xml"; |
1677 |
QCString fileName=outputDirectory+"/"+gd->getOutputFileBase()+".xml"; |
1677 |
std::ofstream f(fileName.str(),std::ofstream::out | std::ofstream::binary); |
1678 |
std::ofstream f = Portable::openOutputStream(fileName); |
1678 |
if (!f.is_open()) |
1679 |
if (!f.is_open()) |
1679 |
{ |
1680 |
{ |
1680 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
1681 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
Lines 1729-1735
static void generateXMLForDir(DirDef *dd,TextStream &ti)
Link Here
|
1729 |
|
1730 |
|
1730 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1731 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1731 |
QCString fileName=outputDirectory+"/"+dd->getOutputFileBase()+".xml"; |
1732 |
QCString fileName=outputDirectory+"/"+dd->getOutputFileBase()+".xml"; |
1732 |
std::ofstream f(fileName.str(),std::ofstream::out | std::ofstream::binary); |
1733 |
std::ofstream f = Portable::openOutputStream(fileName); |
1733 |
if (!f.is_open()) |
1734 |
if (!f.is_open()) |
1734 |
{ |
1735 |
{ |
1735 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
1736 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
Lines 1782-1788
static void generateXMLForPage(PageDef *pd,TextStream &ti,bool isExample)
Link Here
|
1782 |
|
1783 |
|
1783 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1784 |
QCString outputDirectory = Config_getString(XML_OUTPUT); |
1784 |
QCString fileName=outputDirectory+"/"+pageName+".xml"; |
1785 |
QCString fileName=outputDirectory+"/"+pageName+".xml"; |
1785 |
std::ofstream f(fileName.str(),std::ofstream::out | std::ofstream::binary); |
1786 |
std::ofstream f = Portable::openOutputStream(fileName); |
1786 |
if (!f.is_open()) |
1787 |
if (!f.is_open()) |
1787 |
{ |
1788 |
{ |
1788 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
1789 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
Lines 1915-1921
void generateXML()
Link Here
|
1915 |
ResourceMgr::instance().copyResource("doxyfile.xsd",outputDirectory); |
1916 |
ResourceMgr::instance().copyResource("doxyfile.xsd",outputDirectory); |
1916 |
|
1917 |
|
1917 |
QCString fileName=outputDirectory+"/compound.xsd"; |
1918 |
QCString fileName=outputDirectory+"/compound.xsd"; |
1918 |
std::ofstream f(fileName.str(),std::ofstream::out | std::ofstream::binary); |
1919 |
std::ofstream f = Portable::openOutputStream(fileName); |
1919 |
if (!f.is_open()) |
1920 |
if (!f.is_open()) |
1920 |
{ |
1921 |
{ |
1921 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
1922 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
Lines 1951-1957
void generateXML()
Link Here
|
1951 |
f.close(); |
1952 |
f.close(); |
1952 |
|
1953 |
|
1953 |
fileName=outputDirectory+"/Doxyfile.xml"; |
1954 |
fileName=outputDirectory+"/Doxyfile.xml"; |
1954 |
f.open(fileName.str(),std::ofstream::out | std::ofstream::binary); |
1955 |
f = Portable::openOutputStream(fileName); |
1955 |
if (!f.is_open()) |
1956 |
if (!f.is_open()) |
1956 |
{ |
1957 |
{ |
1957 |
err("Cannot open file %s for writing\n",fileName.data()); |
1958 |
err("Cannot open file %s for writing\n",fileName.data()); |
Lines 1965-1971
void generateXML()
Link Here
|
1965 |
f.close(); |
1966 |
f.close(); |
1966 |
|
1967 |
|
1967 |
fileName=outputDirectory+"/index.xml"; |
1968 |
fileName=outputDirectory+"/index.xml"; |
1968 |
f.open(fileName.str(),std::ofstream::out | std::ofstream::binary); |
1969 |
f = Portable::openOutputStream(fileName); |
1969 |
if (!f.is_open()) |
1970 |
if (!f.is_open()) |
1970 |
{ |
1971 |
{ |
1971 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |
1972 |
err("Cannot open file %s for writing!\n",qPrint(fileName)); |