xml_buffered_writer Class Reference

List of all members.

Public Types

enum  { bufcapacitybytes, bufcapacity = bufcapacitybytes / (sizeof(char_t) + 4) }

Public Member Functions

 xml_buffered_writer (xml_writer &writer_, xml_encoding user_encoding)
 ~xml_buffered_writer ()
void flush ()
void flush (const char_t *data, size_t size)
void write (const char_t *data, size_t length)
void write (const char_t *data)
void write (char_t d0)
void write (char_t d0, char_t d1)
void write (char_t d0, char_t d1, char_t d2)
void write (char_t d0, char_t d1, char_t d2, char_t d3)
void write (char_t d0, char_t d1, char_t d2, char_t d3, char_t d4)
void write (char_t d0, char_t d1, char_t d2, char_t d3, char_t d4, char_t d5)

Public Attributes

char_t buffer [bufcapacity]
union {
   uint8_t   data_u8 [4 *bufcapacity]
   uint16_t   data_u16 [2 *bufcapacity]
   uint32_t   data_u32 [bufcapacity]
   char_t   data_char [bufcapacity]
scratch
xml_writer & writer
size_t bufsize
xml_encoding encoding


Detailed Description

Definition at line 2498 of file pugixml.cpp.


Member Enumeration Documentation

anonymous enum

Enumerator:
bufcapacitybytes 
bufcapacity 

Definition at line 2633 of file pugixml.cpp.


Constructor & Destructor Documentation

xml_buffered_writer::xml_buffered_writer ( xml_writer &  writer_,
xml_encoding  user_encoding 
) [inline]

Definition at line 2504 of file pugixml.cpp.

References bufcapacity, and PUGI__STATIC_ASSERT.

xml_buffered_writer::~xml_buffered_writer (  )  [inline]

Definition at line 2508 of file pugixml.cpp.

References flush().

Here is the call graph for this function:


Member Function Documentation

void xml_buffered_writer::flush ( const char_t *  data,
size_t  size 
) [inline]

Definition at line 2517 of file pugixml.cpp.

References convert_buffer(), get_write_native_encoding(), scratch, and writer.

Here is the call graph for this function:

void xml_buffered_writer::flush (  )  [inline]

Definition at line 2512 of file pugixml.cpp.

References buffer, and bufsize.

Referenced by write(), and ~xml_buffered_writer().

Here is the caller graph for this function:

void xml_buffered_writer::write ( char_t  d0,
char_t  d1,
char_t  d2,
char_t  d3,
char_t  d4,
char_t  d5 
) [inline]

Definition at line 2618 of file pugixml.cpp.

References bufcapacity, buffer, bufsize, and flush().

Here is the call graph for this function:

void xml_buffered_writer::write ( char_t  d0,
char_t  d1,
char_t  d2,
char_t  d3,
char_t  d4 
) [inline]

Definition at line 2607 of file pugixml.cpp.

References bufcapacity, buffer, bufsize, and flush().

Here is the call graph for this function:

void xml_buffered_writer::write ( char_t  d0,
char_t  d1,
char_t  d2,
char_t  d3 
) [inline]

Definition at line 2597 of file pugixml.cpp.

References bufcapacity, buffer, bufsize, and flush().

Here is the call graph for this function:

void xml_buffered_writer::write ( char_t  d0,
char_t  d1,
char_t  d2 
) [inline]

Definition at line 2588 of file pugixml.cpp.

References bufcapacity, buffer, bufsize, and flush().

Here is the call graph for this function:

void xml_buffered_writer::write ( char_t  d0,
char_t  d1 
) [inline]

Definition at line 2580 of file pugixml.cpp.

References bufcapacity, buffer, bufsize, and flush().

Here is the call graph for this function:

void xml_buffered_writer::write ( char_t  d0  )  [inline]

Definition at line 2573 of file pugixml.cpp.

References bufcapacity, buffer, bufsize, and flush().

Here is the call graph for this function:

void xml_buffered_writer::write ( const char_t *  data  )  [inline]

Definition at line 2569 of file pugixml.cpp.

References strlength(), and write().

Here is the call graph for this function:

void xml_buffered_writer::write ( const char_t *  data,
size_t  length 
) [inline]

Definition at line 2533 of file pugixml.cpp.

References bufcapacity, buffer, bufsize, flush(), get_valid_length(), get_write_native_encoding(), and writer.

Referenced by node_output(), node_output_attributes(), text_output(), text_output_cdata(), text_output_escaped(), and write().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

char_t xml_buffered_writer::buffer[bufcapacity]

Definition at line 2644 of file pugixml.cpp.

Referenced by flush(), and write().

Definition at line 2654 of file pugixml.cpp.

Referenced by flush(), and write().

char_t xml_buffered_writer::data_char[bufcapacity]

Definition at line 2650 of file pugixml.cpp.

uint16_t xml_buffered_writer::data_u16[2 *bufcapacity]

Definition at line 2648 of file pugixml.cpp.

uint32_t xml_buffered_writer::data_u32[bufcapacity]

Definition at line 2649 of file pugixml.cpp.

uint8_t xml_buffered_writer::data_u8[4 *bufcapacity]

Definition at line 2647 of file pugixml.cpp.

Definition at line 2655 of file pugixml.cpp.

Referenced by flush().

Definition at line 2653 of file pugixml.cpp.

Referenced by flush(), and write().


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

Generated on Thu Jul 6 00:32:03 2017 for Moses by  doxygen 1.5.9