Xalan-C++ API Reference  1.12.0
Public Member Functions | Protected Attributes | List of all members
xalanc::DOMStringPrintWriter Class Reference

#include <xalanc/PlatformSupport/DOMStringPrintWriter.hpp>

Inheritance diagram for xalanc::DOMStringPrintWriter:
[legend]
Collaboration diagram for xalanc::DOMStringPrintWriter:
[legend]

Public Member Functions

 DOMStringPrintWriter (XalanDOMString &theString)
 
virtual ~DOMStringPrintWriter ()
 
XalanDOMStringgetString () const
 
void setString (XalanDOMString &newString)
 
virtual bool checkError () const
 Flush the stream, then check the error status. More...
 
virtual void close ()
 Close the stream. More...
 
virtual void flush ()
 Flush the stream. More...
 
virtual void write (const char *s, size_t theOffset=0, size_t theLength=npos)
 Writes a string. More...
 
virtual void write (const XalanDOMChar *s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)
 Writes a string. More...
 
virtual void write (XalanDOMChar c)
 Writes a character. More...
 
virtual void write (const XalanDOMString &s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)
 Writes a string. More...
 
virtual void print (bool b)
 
virtual void print (char c)
 
virtual void print (const char *s, size_t theLength=npos)
 
virtual void print (const XalanDOMChar *s, XalanDOMString::size_type theLength=XalanDOMString::npos)
 
virtual void print (double d)
 
virtual void print (XMLInt32 i)
 
virtual void print (XMLInt64 l)
 
virtual void print (const XalanDOMString &s)
 
virtual void println ()
 
virtual void println (bool x)
 
virtual void println (char x)
 
virtual void println (const char *s, size_t theLength=npos)
 
virtual void println (const XalanDOMChar *s, XalanDOMString::size_type theLength=XalanDOMString::npos)
 
virtual void println (double x)
 
virtual void println (XMLInt32 x)
 
virtual void println (XMLInt64 x)
 
virtual void println (const XalanDOMString &s)
 
- Public Member Functions inherited from xalanc::PrintWriter
 PrintWriter (bool fAutoFlush=false, MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
 Constructor. More...
 
MemoryManager & getMemoryManager ()
 
virtual ~PrintWriter ()
 
- Public Member Functions inherited from xalanc::Writer
 Writer ()
 
virtual ~Writer ()
 
virtual XalanOutputStreamgetStream ()
 Get the stream associated with the writer... More...
 
virtual const XalanOutputStreamgetStream () const
 Get the stream associated with the writer... More...
 

Protected Attributes

XalanDOMStringm_outputString
 
- Protected Attributes inherited from xalanc::PrintWriter
const bool m_fAutoFlush
 
MemoryManager & m_memoryManager
 

Additional Inherited Members

- Static Public Attributes inherited from xalanc::Writer
static const size_t npos
 
- Static Protected Attributes inherited from xalanc::PrintWriter
static const XalanDOMChar s_trueString []
 
static const XalanDOMChar s_falseString []
 
static const XalanDOMChar s_newlineString []
 

Detailed Description

Definition at line 40 of file DOMStringPrintWriter.hpp.

Constructor & Destructor Documentation

◆ DOMStringPrintWriter()

xalanc::DOMStringPrintWriter::DOMStringPrintWriter ( XalanDOMString theString)

◆ ~DOMStringPrintWriter()

virtual xalanc::DOMStringPrintWriter::~DOMStringPrintWriter ( )
virtual

Member Function Documentation

◆ checkError()

virtual bool xalanc::DOMStringPrintWriter::checkError ( ) const
virtual

Flush the stream, then check the error status.

Returns
true if no errors

Implements xalanc::PrintWriter.

◆ close()

virtual void xalanc::DOMStringPrintWriter::close ( )
virtual

Close the stream.

Implements xalanc::PrintWriter.

◆ flush()

virtual void xalanc::DOMStringPrintWriter::flush ( )
virtual

Flush the stream.

Implements xalanc::PrintWriter.

◆ getString()

XalanDOMString& xalanc::DOMStringPrintWriter::getString ( ) const
inline

Definition at line 50 of file DOMStringPrintWriter.hpp.

◆ print() [1/8]

virtual void xalanc::DOMStringPrintWriter::print ( bool  b)
virtual

Implements xalanc::PrintWriter.

◆ print() [2/8]

virtual void xalanc::DOMStringPrintWriter::print ( char  c)
virtual

Implements xalanc::PrintWriter.

◆ print() [3/8]

virtual void xalanc::DOMStringPrintWriter::print ( const char *  s,
size_t  theLength = npos 
)
virtual

Implements xalanc::PrintWriter.

◆ print() [4/8]

virtual void xalanc::DOMStringPrintWriter::print ( const XalanDOMChar *  s,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
virtual

Implements xalanc::PrintWriter.

◆ print() [5/8]

virtual void xalanc::DOMStringPrintWriter::print ( const XalanDOMString s)
virtual

Implements xalanc::PrintWriter.

◆ print() [6/8]

virtual void xalanc::DOMStringPrintWriter::print ( double  d)
virtual

Implements xalanc::PrintWriter.

◆ print() [7/8]

virtual void xalanc::DOMStringPrintWriter::print ( XMLInt32  i)
virtual

Implements xalanc::PrintWriter.

◆ print() [8/8]

virtual void xalanc::DOMStringPrintWriter::print ( XMLInt64  l)
virtual

Implements xalanc::PrintWriter.

◆ println() [1/9]

virtual void xalanc::DOMStringPrintWriter::println ( )
virtual

Implements xalanc::PrintWriter.

◆ println() [2/9]

virtual void xalanc::DOMStringPrintWriter::println ( bool  x)
virtual

Implements xalanc::PrintWriter.

◆ println() [3/9]

virtual void xalanc::DOMStringPrintWriter::println ( char  x)
virtual

Implements xalanc::PrintWriter.

◆ println() [4/9]

virtual void xalanc::DOMStringPrintWriter::println ( const char *  s,
size_t  theLength = npos 
)
virtual

Implements xalanc::PrintWriter.

◆ println() [5/9]

virtual void xalanc::DOMStringPrintWriter::println ( const XalanDOMChar *  s,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
virtual

Implements xalanc::PrintWriter.

◆ println() [6/9]

virtual void xalanc::DOMStringPrintWriter::println ( const XalanDOMString s)
virtual

Implements xalanc::PrintWriter.

◆ println() [7/9]

virtual void xalanc::DOMStringPrintWriter::println ( double  x)
virtual

Implements xalanc::PrintWriter.

◆ println() [8/9]

virtual void xalanc::DOMStringPrintWriter::println ( XMLInt32  x)
virtual

Implements xalanc::PrintWriter.

◆ println() [9/9]

virtual void xalanc::DOMStringPrintWriter::println ( XMLInt64  x)
virtual

Implements xalanc::PrintWriter.

◆ setString()

void xalanc::DOMStringPrintWriter::setString ( XalanDOMString newString)
inline

Definition at line 56 of file DOMStringPrintWriter.hpp.

◆ write() [1/4]

virtual void xalanc::DOMStringPrintWriter::write ( const char *  s,
size_t  theOffset = 0,
size_t  theLength = npos 
)
virtual

Writes a string.

Parameters
sstring to write
theOffsetstarting offset in string to begin writing, default 0
theLengthnumber of characters to write. If the length is npos, then the array is assumed to be null-terminated.

Implements xalanc::PrintWriter.

◆ write() [2/4]

virtual void xalanc::DOMStringPrintWriter::write ( const XalanDOMChar *  s,
XalanDOMString::size_type  theOffset = 0,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
virtual

Writes a string.

Parameters
sstring to write
theOffsetstarting offset in string to begin writing, default 0
theLengthnumber of characters to write. If the length is XalanDOMString::npos, then the array is assumed to be null-terminated.

Implements xalanc::PrintWriter.

◆ write() [3/4]

virtual void xalanc::DOMStringPrintWriter::write ( const XalanDOMString s,
XalanDOMString::size_type  theOffset = 0,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
virtual

Writes a string.

Parameters
sstring to write
theOffsetstarting offset in string to begin writing, default 0
theLengthnumber of characters to write. If the length is XalanDOMString::npos, then the entire string is printed.

Implements xalanc::PrintWriter.

◆ write() [4/4]

virtual void xalanc::DOMStringPrintWriter::write ( XalanDOMChar  c)
virtual

Writes a character.

Parameters
ccharacter to write

Implements xalanc::PrintWriter.

Member Data Documentation

◆ m_outputString

XalanDOMString* xalanc::DOMStringPrintWriter::m_outputString
protected

Definition at line 158 of file DOMStringPrintWriter.hpp.


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