Doxygen
Loading...
Searching...
No Matches
outputgen.cpp
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#include <stdexcept>
19
20#include <stdlib.h>
21
22#include "doxygen.h"
23#include "outputgen.h"
24#include "message.h"
25#include "portable.h"
26
28{
29 //printf("OutputGenerator::OutputGenerator()\n");
30}
31
33{
34 //printf("startPlainFile(%s)\n",qPrint(name));
35 m_fileName=m_dir+"/"+name;
37 if (m_file==nullptr)
38 {
39 term("Could not open file {} for writing\n",m_fileName);
40 }
42}
43
51
53{
54 return m_dir;
55}
56
61
QCString dir() const
Definition outputgen.cpp:52
void startPlainFile(const QCString &name)
Definition outputgen.cpp:32
QCString m_dir
Definition outputgen.h:117
void endPlainFile()
Definition outputgen.cpp:44
TextStream m_t
Definition outputgen.h:116
QCString fileName() const
Definition outputgen.cpp:57
QCString m_fileName
Definition outputgen.h:119
This is an alternative implementation of QCString.
Definition qcstring.h:97
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition qcstring.h:170
void clear()
Definition qcstring.h:180
void setStream(std::ostream *s)
Sets or changes the std::ostream to write to.
Definition textstream.h:67
void flush()
Flushes the buffer.
Definition textstream.h:196
void setFile(FILE *f)
Definition textstream.h:74
#define term(fmt,...)
Definition message.h:137
FILE * fopen(const QCString &fileName, const QCString &mode)
Definition portable.cpp:349
int fclose(FILE *f)
Definition portable.cpp:369
Portable versions of functions that are platform dependent.