#include <XMLFormatter.hpp>
Inheritance diagram for xercesc::XMLFormatter:
Public Types | |
Public Contants | |
enum | EscapeFlags { NoEscapes, StdEscapes, AttrEscapes, CharEscapes, EscapeFlags_Count, DefaultEscape = 999 } |
EscapeFlags - Different styles of escape flags to control various formatting. More... | |
enum | UnRepFlags { UnRep_Fail, UnRep_CharRef, UnRep_Replace, DefaultUnRep = 999 } |
UnRepFlags. More... | |
Public Member Functions | |
Constructor and Destructor | |
XMLFormatter (const XMLCh *const outEncoding, const XMLCh *const docVersion, XMLFormatTarget *const target, const EscapeFlags escapeFlags=NoEscapes, const UnRepFlags unrepFlags=UnRep_Fail, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
XMLFormatter (const char *const outEncoding, const char *const docVersion, XMLFormatTarget *const target, const EscapeFlags escapeFlags=NoEscapes, const UnRepFlags unrepFlags=UnRep_Fail, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
XMLFormatter (const XMLCh *const outEncoding, XMLFormatTarget *const target, const EscapeFlags escapeFlags=NoEscapes, const UnRepFlags unrepFlags=UnRep_Fail, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
XMLFormatter (const char *const outEncoding, XMLFormatTarget *const target, const EscapeFlags escapeFlags=NoEscapes, const UnRepFlags unrepFlags=UnRep_Fail, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
~XMLFormatter () | |
Formatting methods | |
void | formatBuf (const XMLCh *const toFormat, const XMLSize_t count, const EscapeFlags escapeFlags=DefaultEscape, const UnRepFlags unrepFlags=DefaultUnRep) |
XMLFormatter & | operator<< (const XMLCh *const toFormat) |
XMLFormatter & | operator<< (const XMLCh toFormat) |
void | writeBOM (const XMLByte *const toFormat, const XMLSize_t count) |
Getter methods | |
const XMLCh * | getEncodingName () const |
const XMLTranscoder * | getTranscoder () const |
XMLTranscoder * | getTranscoder () |
Setter methods | |
void | setEscapeFlags (const EscapeFlags newFlags) |
void | setUnRepFlags (const UnRepFlags newFlags) |
XMLFormatter & | operator<< (const EscapeFlags newFlags) |
XMLFormatter & | operator<< (const UnRepFlags newFlags) |
Setter methods | |
EscapeFlags | getEscapeFlags () const |
UnRepFlags | getUnRepFlags () const |
A number of flags are provided to control whether various optional formatting operations are performed.
|
EscapeFlags - Different styles of escape flags to control various formatting.
|
|
UnRepFlags. The unrepresentable flags that indicate how to react when a character cannot be represented in the target encoding.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|