xofstream Class Reference

#include <fstream.hpp>

Inheritance diagram for xofstream:

Inheritance graph
[legend]
Collaboration diagram for xofstream:

Collaboration graph
[legend]
List of all members.

Detailed Description

class xofstream

Definition at line 61 of file fstream.hpp.

Public Member Functions

 xofstream ()
 Default constructor - use open()-method to specify a file.

 xofstream (const char *name, const char *encoding_name=XIMOL_DEFAULT_ENCODING, std::ios_base::openmode mode=std::ios_base::out)
 xofstream (const char *name, std::ios_base::openmode mode, const char *encoding_name=XIMOL_DEFAULT_ENCODING)
 ~xofstream ()
::std::basic_filebuf< xchar_t > * rdbuf ()
bool is_open () const
void open (const char *filename, openmode mode=std::ios_base::out)
void close ()
xostreamoperator<< (xchar_t c)
xostreamoperator<< (char c)
::std::string encoding () const
void encoding (const char *encoding_name)

Public Attributes

XIMOL_XML_NAMESPACE_PATH::context context


Constructor & Destructor Documentation

XIMOL_BEGIN_NAMESPACE xofstream::xofstream  ) 
 

Default constructor - use open()-method to specify a file.

Definition at line 57 of file fstream.cpp.

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

xofstream::xofstream const char *  name,
const char *  encoding_name = XIMOL_DEFAULT_ENCODING,
std::ios_base::openmode  mode = std::ios_base::out
[explicit]
 

Definition at line 70 of file fstream.cpp.

References xostream::encoding(), open(), prepare_ios(), and XIMOL_ENCODERS_USING_NAMESPACE.

xofstream::xofstream const char *  name,
std::ios_base::openmode  mode,
const char *  encoding_name = XIMOL_DEFAULT_ENCODING
 

Definition at line 84 of file fstream.cpp.

References xostream::encoding(), open(), prepare_ios(), and XIMOL_ENCODERS_USING_NAMESPACE.

xofstream::~xofstream  ) 
 

Definition at line 98 of file fstream.cpp.


Member Function Documentation

void xofstream::close  ) 
 

Definition at line 130 of file fstream.cpp.

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(), xostream::xostream(), xostringstream::xostringstream(), and xstringstream::xstringstream().

bool xofstream::is_open  )  const
 

Definition at line 113 of file fstream.cpp.

void xofstream::open const char *  filename,
openmode  mode = std::ios_base::out
 

Definition at line 121 of file fstream.cpp.

Referenced by xofstream().

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

Reimplemented from xostream.

Definition at line 88 of file fstream.hpp.

References xostream::operator<<().

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

Reimplemented from xostream.

Definition at line 87 of file fstream.hpp.

References xostream::operator<<().

std::basic_filebuf< xchar_t > * xofstream::rdbuf  ) 
 

Definition at line 105 of file fstream.cpp.


Member Data Documentation

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.