API Guides > ConceptRT 3.x
XmlWriter Class Reference

Xml writer. More...

Detailed Description

Xml writer.

Public Member Methods

virtual ~XmlWriter ()
 Destructor. More...
 
 XmlWriter (Stream &stream)
 Constructor. More...
 
 XmlWriter (TextWriter &writer)
 Constructor. More...
 
void WriteOpenMarkup (PCChar8 markup, bool nonEmpty=true, bool newLine=true)
 Writes an open markup. More...
 
void WriteCloseMarkup (PCChar8 markup, bool newLine=true)
 Writes a close markup. More...
 
void WriteValue (PCChar8 markup, PCChar8 value)
 Writes a value. More...
 
void WriteValue (PCChar8 markup, const IStringConvertible &value)
 Writes a value. More...
 
void WriteValue (PCChar8 markup, Int32 value)
 Writes a value. More...
 
void WriteValue (PCChar8 markup, UInt32 value)
 Writes a value. More...
 
void WriteValue (PCChar8 markup, Int64 value)
 Writes a value. More...
 
void WriteValue (PCChar8 markup, UInt64 value)
 Writes a value. More...
 
void WriteValue (PCChar8 markup, bool value)
 Writes a value. More...
 
void WriteValue (PCChar8 markup, Float64 value)
 Writes a value. More...
 
TextWriterGetTextWriter ()
 Gets the text writer. More...
 

Constructor & Destructor Documentation

virtual ~XmlWriter ( )
inlinevirtual

Destructor.

XmlWriter ( Stream stream)

Constructor.

Parameters
stream[in,out] The stream.
XmlWriter ( TextWriter writer)

Constructor.

Parameters
writer[in,out] The writer.

Methods Documentation

TextWriter& GetTextWriter ( )

Gets the text writer.

Returns
The text writer.
void WriteCloseMarkup ( PCChar8  markup,
bool  newLine = true 
)

Writes a close markup.

Parameters
markupThe markup.
newLine(optional) New line after markup written.
void WriteOpenMarkup ( PCChar8  markup,
bool  nonEmpty = true,
bool  newLine = true 
)

Writes an open markup.

Parameters
markupThe markup.
nonEmpty(optional) if false writes a markup like <marckup&gt;.
newLine(optional) New line after markup written.
void WriteValue ( PCChar8  markup,
PCChar8  value 
)

Writes a value.

Parameters
markupThe markup.
valueThe value.
void WriteValue ( PCChar8  markup,
const IStringConvertible value 
)

Writes a value.

Parameters
markupThe markup.
valueThe value.
void WriteValue ( PCChar8  markup,
Int32  value 
)

Writes a value.

Parameters
markupThe markup.
valueThe value.
void WriteValue ( PCChar8  markup,
UInt32  value 
)

Writes a value.

Parameters
markupThe markup.
valueThe value.
void WriteValue ( PCChar8  markup,
Int64  value 
)

Writes a value.

Parameters
markupThe markup.
valueThe value.
void WriteValue ( PCChar8  markup,
UInt64  value 
)

Writes a value.

Parameters
markupThe markup.
valueThe value.
void WriteValue ( PCChar8  markup,
bool  value 
)

Writes a value.

Parameters
markupThe markup.
valueThe value.
void WriteValue ( PCChar8  markup,
Float64  value 
)

Writes a value.

Parameters
markupThe markup.
valueThe value.