xstringstream Class Reference

#include <sstream.hpp>

Inheritance diagram for xstringstream:

Inheritance graph
[legend]
Collaboration diagram for xstringstream:

Collaboration graph
[legend]
List of all members.

Detailed Description

class xstringstream
Examples:

tutorial_hello.cpp, and tutorial_stag.cpp.

Definition at line 117 of file sstream.hpp.

Public Member Functions

 xstringstream (std::ios_base::openmode mode=std::ios_base::in|out)
 xstringstream (const::std::basic_string< xchar_t > &str, std::ios_base::openmode mode=std::ios_base::in|out)
 ~xstringstream ()
::std::basic_stringbuf< xchar_t > * rdbuf ()
::std::basic_string< xchar_tstr () const
void str (const::std::basic_string< xchar_t > &s)
xostreamoperator<< (xchar_t c)
xostreamoperator<< (char c)
xistreamoperator>> (xchar_t &c)
xistreamoperator>> (char &c)
::std::string encoding () const
void encoding (const char *encoding_name)
::std::string encoding () const
void encoding (const char *encoding_name)
bool get (xchar_t &xc)
void putback (xchar_t xc)
void putback (const xstring &xstr)
xchar_t front () const
void pop_front ()

Public Attributes

XIMOL_XML_NAMESPACE_PATH::context context
XIMOL_XML_NAMESPACE_PATH::context context


Constructor & Destructor Documentation

xstringstream::xstringstream std::ios_base::openmode  mode = std::ios_base::in|out  )  [explicit]
 

Definition at line 168 of file sstream.cpp.

References xistream::encoding(), xostream::encoding(), prepare_ios(), and XIMOL_DEFAULT_ENCODING.

xstringstream::xstringstream const::std::basic_string< xchar_t > &  str,
std::ios_base::openmode  mode = std::ios_base::in|out
[explicit]
 

Definition at line 181 of file sstream.cpp.

References xistream::encoding(), xostream::encoding(), prepare_ios(), str(), and XIMOL_DEFAULT_ENCODING.

xstringstream::~xstringstream  ) 
 

Definition at line 194 of file sstream.cpp.


Member Function Documentation

void xistream::encoding const char *  encoding_name  )  [inherited]
 

Definition at line 244 of file stream.cpp.

References deep_change(), and XIMOL_ENCODERS_USING_NAMESPACE.

std::string xistream::encoding  )  const [inherited]
 

Definition at line 236 of file stream.cpp.

Referenced by operator>>(), read_bom(), read_xml_decl(), use_XML(), xfstream::xfstream(), xifstream::xifstream(), xistream::xistream(), xistringstream::xistringstream(), and xstringstream().

void xostream::encoding const char *  encoding_name  )  [inherited]
 

Definition at line 225 of file stream.cpp.

References deep_change(), and XIMOL_ENCODERS_USING_NAMESPACE.

std::string xostream::encoding  )  const [inherited]
 

Definition at line 217 of file stream.cpp.

Referenced by use_XML(), write_xml_decl(), xfstream::xfstream(), xofstream::xofstream(), xostream::xostream(), xostringstream::xostringstream(), and xstringstream().

xchar_t xistream::front  )  const [inherited]
 

Definition at line 171 of file stream.cpp.

References xchar_t.

Referenced by read_char_ref(), read_doctype_decl(), read_doctype_element(), read_entity_decl(), read_misc(), read_ns_att_name(), read_prolog(), read_prolog_exclamation(), read_prolog_question(), read_qname(), read_reference(), and read_xstring().

bool xistream::get xchar_t xc  )  [inherited]
 

Definition at line 156 of file stream.cpp.

References xistream::pop_front().

Referenced by char_data_content(), is_etag(), is_stag(), xistream::operator>>(), attributes::read(), read_att_list_decl(), read_att_value(), read_bom(), read_char_ref(), read_doctype_decl(), read_doctype_element(), read_element_decl(), read_entity_def(), read_entity_value(), read_misc(), read_notation_decl(), read_open_stag(), read_pe_def(), read_prolog(), read_string_with_forbidden_serie(), and read_xchar().

xostream& xstringstream::operator<< char  c  )  [inline]
 

Reimplemented from xiostream.

Definition at line 134 of file sstream.hpp.

References xostream::operator<<().

xostream& xstringstream::operator<< xchar_t  c  )  [inline]
 

Reimplemented from xiostream.

Definition at line 133 of file sstream.hpp.

References xostream::operator<<().

xistream& xstringstream::operator>> char &  c  )  [inline]
 

Reimplemented from xiostream.

Definition at line 136 of file sstream.hpp.

References xistream::operator>>().

xistream& xstringstream::operator>> xchar_t c  )  [inline]
 

Reimplemented from xiostream.

Definition at line 135 of file sstream.hpp.

References xistream::operator>>().

void xistream::pop_front  )  [inherited]
 

Definition at line 185 of file stream.cpp.

References xchar_t.

Referenced by xistream::get(), read_char_ref(), read_doctype_decl(), read_doctype_element(), read_ns_att_name(), read_qname(), and read_xstring().

void xistream::putback const xstring xstr  )  [inherited]
 

Definition at line 207 of file stream.cpp.

References xistream::putback(), and xstring.

void xistream::putback xchar_t  xc  )  [inherited]
 

Definition at line 199 of file stream.cpp.

Referenced by char_data_content(), is_etag(), is_stag(), xistream::putback(), attributes::read(), read_att_value(), read_bom(), read_char_ref(), read_doctype_decl(), read_entity_def(), read_entity_ref(), read_entity_value(), read_external_id(), read_misc(), read_notation_decl(), read_open_stag(), read_pe_def(), read_prolog(), read_string_with_forbidden_serie(), and read_xml_decl().

std::basic_stringbuf< xchar_t > * xstringstream::rdbuf  ) 
 

Definition at line 201 of file sstream.cpp.

void xstringstream::str const::std::basic_string< xchar_t > &  s  ) 
 

Definition at line 217 of file sstream.cpp.

std::basic_string< xchar_t > xstringstream::str  )  const
 

Examples:
tutorial_hello.cpp.

Definition at line 209 of file sstream.cpp.

Referenced by xstringstream().


Member Data Documentation

XIMOL_XML_NAMESPACE_PATH::context xistream::context [inherited]
 

Definition at line 116 of file stream.hpp.

Referenced by is_etag(), is_stag(), operator>>(), attributes::read(), read_doctype_decl(), read_encoding_decl(), read_entity_ref(), read_etag(), read_ge_decl(), read_notation_decl(), read_open_stag(), read_pe_decl(), read_pe_reference(), read_pi(), read_sd_decl(), read_stag(), read_version_info(), read_xml_decl(), and wait_stag().

XIMOL_XML_NAMESPACE_PATH::context xostream::context [inherited]
 

Definition at line 85 of file stream.hpp.

Referenced by operator<<(), attributes::write(), write_encoding_decl(), write_etag(), write_open_stag(), write_sd_decl(), write_stag(), write_version_info(), and write_xml_decl().


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


Donate to the XiMoL project SourceForge.net Logo If you have any questions about XiMoL, you could write to tournois@users.sourceforge.net.