μHAL (v2.7.9)
Part of the IPbus software repository
Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
xml_buffered_writer Class Reference

Public Types

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

Public Member Functions

 xml_buffered_writer (xml_writer &writer_, xml_encoding user_encoding)
 
size_t flush ()
 
void flush (const char_t *data, size_t size)
 
void write_direct (const char_t *data, size_t length)
 
void write_buffer (const char_t *data, size_t length)
 
void write_string (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
 

Private Member Functions

 xml_buffered_writer (const xml_buffered_writer &)
 
xml_buffered_writeroperator= (const xml_buffered_writer &)
 

Detailed Description

Definition at line 3692 of file pugixml.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
bufcapacitybytes 
bufcapacity 

Definition at line 3879 of file pugixml.cpp.

Constructor & Destructor Documentation

◆ xml_buffered_writer() [1/2]

xml_buffered_writer::xml_buffered_writer ( const xml_buffered_writer )
private

◆ xml_buffered_writer() [2/2]

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

Definition at line 3698 of file pugixml.cpp.

References bufcapacity, and PUGI__STATIC_ASSERT.

Member Function Documentation

◆ flush() [1/2]

size_t xml_buffered_writer::flush ( )
inline

Definition at line 3703 of file pugixml.cpp.

References buffer, and bufsize.

Referenced by write(), and write_direct().

◆ flush() [2/2]

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

◆ operator=()

xml_buffered_writer& xml_buffered_writer::operator= ( const xml_buffered_writer )
private

◆ write() [1/6]

void xml_buffered_writer::write ( char_t  d0)
inline

◆ write() [2/6]

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

Definition at line 3816 of file pugixml.cpp.

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

◆ write() [3/6]

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

Definition at line 3826 of file pugixml.cpp.

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

◆ write() [4/6]

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

Definition at line 3837 of file pugixml.cpp.

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

◆ write() [5/6]

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

Definition at line 3849 of file pugixml.cpp.

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

◆ write() [6/6]

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 3862 of file pugixml.cpp.

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

◆ write_buffer()

void xml_buffered_writer::write_buffer ( const char_t *  data,
size_t  length 
)
inline

◆ write_direct()

void xml_buffered_writer::write_direct ( const char_t *  data,
size_t  length 
)
inline

◆ write_string()

void xml_buffered_writer::write_string ( const char_t *  data)
inline

Member Data Documentation

◆ buffer

char_t xml_buffered_writer::buffer[bufcapacity]

Definition at line 3891 of file pugixml.cpp.

Referenced by flush(), write(), write_buffer(), write_direct(), and write_string().

◆ bufsize

size_t xml_buffered_writer::bufsize

Definition at line 3902 of file pugixml.cpp.

Referenced by flush(), write(), write_buffer(), write_direct(), and write_string().

◆ data_char

char_t xml_buffered_writer::data_char[bufcapacity]

Definition at line 3898 of file pugixml.cpp.

◆ data_u16

uint16_t xml_buffered_writer::data_u16[2 *bufcapacity]

Definition at line 3896 of file pugixml.cpp.

◆ data_u32

uint32_t xml_buffered_writer::data_u32[bufcapacity]

Definition at line 3897 of file pugixml.cpp.

◆ data_u8

uint8_t xml_buffered_writer::data_u8[4 *bufcapacity]

Definition at line 3895 of file pugixml.cpp.

◆ encoding

xml_encoding xml_buffered_writer::encoding

Definition at line 3903 of file pugixml.cpp.

Referenced by flush(), and write_direct().

◆ scratch

union { ... } xml_buffered_writer::scratch

Referenced by flush().

◆ writer

xml_writer& xml_buffered_writer::writer

Definition at line 3901 of file pugixml.cpp.

Referenced by flush(), and write_direct().


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