Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
src
qhpxmlwriter.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2008 by Sebastian Pipping.
3
* Copyright (C) 2008 Dimitri van Heesch.
4
*
5
* Permission to use, copy, modify, and distribute this software and its
6
* documentation under the terms of the GNU General Public License is hereby
7
* granted. No representations are made about the suitability of this software
8
* for any purpose. It is provided "as is" without express or implied warranty.
9
* See the GNU General Public License for more details.
10
*
11
* Documents produced by Doxygen are derivative works derived from the
12
* input used in their production; they are not affected by this license.
13
*
14
* Sebastian Pipping <sebastian@pipping.org>
15
*/
16
17
#ifndef QHPXMLWRITER_H
18
#define QHPXMLWRITER_H
19
20
#include <
qstring.h
>
21
#include "
ftextstream.h
"
22
23
class
QFile
;
24
25
class
QhpXmlWriter
26
{
27
public
:
28
QhpXmlWriter
();
29
~QhpXmlWriter
();
30
31
void
setIndentLevel
(
int
level
);
32
void
setCompressionEnabled
(
bool
enabled);
33
void
insert
(
QhpXmlWriter
const
& source);
34
void
dumpTo
(
QFile
&
file
);
35
void
open
(
char
const
* elementName,
36
char
const
*
const
* attributes = 0);
37
void
openClose
(
char
const
* elementName,
38
char
const
*
const
* attributes = 0);
39
void
openCloseContent
(
char
const
* elementName,
char
const
* content);
40
void
close
(
char
const
* elementName);
41
void
declaration
(
char
const
*
version
,
char
const
*
encoding
);
42
43
static
char
*
dupEscaped
(
const
char
* source);
44
45
private
:
46
void
indent
();
47
void
newLine
();
48
void
openPureHelper
(
char
const
* elementName,
49
char
const
*
const
* attributes,
bool
close);
50
void
openPure
(
char
const
* elementName,
51
char
const
*
const
* attributes = 0);
52
void
openClosePure
(
char
const
* elementName,
53
char
const
*
const
* attributes = 0);
54
void
closePure
(
char
const
* elementName);
55
56
QGString
m_backend
;
57
FTextStream
m_out
;
58
int
m_indentLevel
;
59
bool
m_curLineIndented
;
60
bool
m_compress
;
61
62
};
63
64
#endif // QHPXMLWRITER_H
QhpXmlWriter::m_curLineIndented
bool m_curLineIndented
Definition:
qhpxmlwriter.h:59
SortModuleTimes.version
version
Definition:
SortModuleTimes.py:878
QhpXmlWriter::setIndentLevel
void setIndentLevel(int level)
Definition:
qhpxmlwriter.cpp:32
QhpXmlWriter::indent
void indent()
Definition:
qhpxmlwriter.cpp:93
QhpXmlWriter::close
void close(char const *elementName)
Definition:
qhpxmlwriter.cpp:79
QhpXmlWriter::closePure
void closePure(char const *elementName)
Definition:
qhpxmlwriter.cpp:153
QhpXmlWriter::dupEscaped
static char * dupEscaped(const char *source)
QhpXmlWriter::openPureHelper
void openPureHelper(char const *elementName, char const *const *attributes, bool close)
Definition:
qhpxmlwriter.cpp:115
QhpXmlWriter::declaration
void declaration(char const *version, char const *encoding)
Definition:
qhpxmlwriter.cpp:87
QhpXmlWriter::setCompressionEnabled
void setCompressionEnabled(bool enabled)
Definition:
qhpxmlwriter.cpp:37
FTextStream
Simplified and optimized version of QTextStream.
Definition:
ftextstream.h:11
QhpXmlWriter::openClosePure
void openClosePure(char const *elementName, char const *const *attributes=0)
Definition:
qhpxmlwriter.cpp:147
QhpXmlWriter::open
void open(char const *elementName, char const *const *attributes=0)
Definition:
qhpxmlwriter.cpp:52
QhpXmlWriter::~QhpXmlWriter
~QhpXmlWriter()
Definition:
qhpxmlwriter.cpp:28
QhpXmlWriter
Definition:
qhpxmlwriter.h:25
QhpXmlWriter::m_out
FTextStream m_out
Definition:
qhpxmlwriter.h:57
QhpXmlWriter::openCloseContent
void openCloseContent(char const *elementName, char const *content)
Definition:
qhpxmlwriter.cpp:69
cache_state.file
file
Definition:
cache_state.py:421
QhpXmlWriter::m_compress
bool m_compress
Definition:
qhpxmlwriter.h:60
generate_datataset.level
level
Definition:
generate_datataset.py:30
ftextstream.h
QhpXmlWriter::dumpTo
void dumpTo(QFile &file)
Definition:
qhpxmlwriter.cpp:47
QhpXmlWriter::newLine
void newLine()
Definition:
qhpxmlwriter.cpp:106
QFile
The QFile class is an I/O device that operates on files.
Definition:
qfile.h:50
QhpXmlWriter::m_backend
QGString m_backend
Definition:
qhpxmlwriter.h:56
encoding
static QCString encoding
Definition:
config.cpp:1052
qstring.h
QGString
Definition:
qgstring.h:19
QhpXmlWriter::m_indentLevel
int m_indentLevel
Definition:
qhpxmlwriter.h:58
QhpXmlWriter::openPure
void openPure(char const *elementName, char const *const *attributes=0)
Definition:
qhpxmlwriter.cpp:141
QhpXmlWriter::openClose
void openClose(char const *elementName, char const *const *attributes=0)
Definition:
qhpxmlwriter.cpp:61
QhpXmlWriter::insert
void insert(QhpXmlWriter const &source)
Definition:
qhpxmlwriter.cpp:42
QhpXmlWriter::QhpXmlWriter
QhpXmlWriter()
Definition:
qhpxmlwriter.cpp:22
Generated by
1.8.11