QtBase  v6.3.1
Classes | Public Types | Public Member Functions | List of all members
XmlOutput Class Reference

#include <xmloutput.h>

Classes

struct  xml_output
 

Public Types

enum  ConverstionType { NoConversion , EscapeConversion , XMLConversion }
 
enum  XMLFormat { NoNewLine , NewLine }
 
enum  XMLState { Bare , Tag , Attribute }
 
enum  XMLType {
  tNothing , tRaw , tDeclaration , tTag ,
  tTagValue , tValueTag , tCloseTag , tAttribute ,
  tAttributeTag , tData , tImport , tComment ,
  tCDATA
}
 

Public Member Functions

 XmlOutput (QTextStream &file, ConverstionType type=XMLConversion)
 
 ~XmlOutput ()
 
void setIndentString (const QString &indentString)
 
QString indentString ()
 
void setIndentLevel (int level)
 
int indentLevel ()
 
void setState (XMLState state)
 
void setFormat (XMLFormat newFormat)
 
XMLState state ()
 
XmlOutputoperator<< (const QString &o)
 
XmlOutputoperator<< (const xml_output &o)
 

Detailed Description

Definition at line 37 of file xmloutput.h.

Member Enumeration Documentation

◆ ConverstionType

Enumerator
NoConversion 
EscapeConversion 
XMLConversion 

Definition at line 40 of file xmloutput.h.

◆ XMLFormat

Enumerator
NoNewLine 
NewLine 

Definition at line 45 of file xmloutput.h.

◆ XMLState

Enumerator
Bare 
Tag 
Attribute 

Definition at line 49 of file xmloutput.h.

◆ XMLType

Enumerator
tNothing 
tRaw 
tDeclaration 
tTag 
tTagValue 
tValueTag 
tCloseTag 
tAttribute 
tAttributeTag 
tData 
tImport 
tComment 
tCDATA 

Definition at line 54 of file xmloutput.h.

Constructor & Destructor Documentation

◆ XmlOutput()

QT_BEGIN_NAMESPACE XmlOutput::XmlOutput ( QTextStream file,
ConverstionType  type = XMLConversion 
)

Definition at line 33 of file xmloutput.cpp.

Here is the call graph for this function:

◆ ~XmlOutput()

XmlOutput::~XmlOutput ( )

Definition at line 40 of file xmloutput.cpp.

Member Function Documentation

◆ indentLevel()

int XmlOutput::indentLevel ( )

Definition at line 61 of file xmloutput.cpp.

◆ indentString()

QString XmlOutput::indentString ( )

Definition at line 51 of file xmloutput.cpp.

Here is the caller graph for this function:

◆ operator<<() [1/2]

XmlOutput & XmlOutput::operator<< ( const QString o)

Definition at line 153 of file xmloutput.cpp.

◆ operator<<() [2/2]

XmlOutput & XmlOutput::operator<< ( const xml_output o)

Definition at line 158 of file xmloutput.cpp.

Here is the call graph for this function:

◆ setFormat()

void XmlOutput::setFormat ( XMLFormat  newFormat)

Definition at line 71 of file xmloutput.cpp.

Here is the caller graph for this function:

◆ setIndentLevel()

void XmlOutput::setIndentLevel ( int  level)

Definition at line 56 of file xmloutput.cpp.

◆ setIndentString()

void XmlOutput::setIndentString ( const QString indentString)

Definition at line 46 of file xmloutput.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setState()

void XmlOutput::setState ( XMLState  state)

Definition at line 66 of file xmloutput.cpp.

Here is the call graph for this function:

◆ state()

XmlOutput::XMLState XmlOutput::state ( )

Definition at line 76 of file xmloutput.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: