XLE  v0.02.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Utility::OutputStreamFormatter Class Reference

Public Types

typedef unsigned ElementId
 

Public Member Functions

template<typename CharType >
ElementId BeginElement (const CharType *nameStart, const CharType *nameEnd)
 
void EndElement (ElementId)
 
template<typename CharType >
void WriteAttribute (const CharType *nameStart, const CharType *nameEnd, const CharType *valueStart, const CharType *valueEnd)
 
template<typename CharType >
ElementId BeginElement (const CharType *nameNullTerm)
 
template<typename CharType >
ElementId BeginElement (const std::basic_string< CharType > &name)
 
template<typename CharType >
void WriteAttribute (const CharType *nameNullTerm, const CharType *valueNullTerm)
 
template<typename CharType >
void WriteAttribute (const CharType *nameNullTerm, const std::basic_string< CharType > &value)
 
void Flush ()
 
void NewLine ()
 
 OutputStreamFormatter (OutputStream &stream)
 
template<typename CharType >
auto BeginElement (const CharType *nameStart, const CharType *nameEnd) -> ElementId
 
template<>
auto BeginElement (const char *nameStart, const char *nameEnd) -> ElementId
 
template<>
void WriteAttribute (const char *nameStart, const char *nameEnd, const char *valueStart, const char *valueEnd)
 

Protected Member Functions

template<typename CharType >
void DoNewLine ()
 

Protected Attributes

OutputStream_stream
 
unsigned _currentIndentLevel
 
bool _hotLine
 
unsigned _currentLineLength
 
bool _pendingHeader
 
std::vector< ElementId > _elementStack
 
unsigned _nextElementId
 

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