SuperTuxKart
Public Member Functions | Private Attributes | List of all members
UTFWriter Class Reference

utility class used to write wide (UTF-16 or UTF-32, depending of size of wchar_t) XML files More...

#include <utf_writer.hpp>

Public Member Functions

 UTFWriter (const char *dest, bool wide)
 
void close ()
 
UTFWriteroperator<< (const irr::core::stringw &txt)
 
UTFWriteroperator<< (const wchar_t *txt)
 
UTFWriteroperator<< (const char *txt)
 
UTFWriteroperator<< (const std::string &txt)
 
UTFWriteroperator<< (const bool &b)
 
template<typename T >
UTFWriteroperator<< (const T &t)
 
bool is_open ()
 

Private Attributes

std::ofstream m_base
 
bool m_wide
 If true, use utf-16/32 (obsolete)
 

Detailed Description

utility class used to write wide (UTF-16 or UTF-32, depending of size of wchar_t) XML files

Note
the inner base class (ofstream) is not public because it will take in any kind of data, and we only want to accept arrays of wchar_t to make sure we get reasonable files out

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