AutoUTFOutputStream< CharType, OutputByteStream > Class Template Reference#
AutoUTFOutputStream< CharType, OutputByteStream > Class Template Reference
Output stream wrapper with dynamically bound encoding and automatic encoding detection. More...
#include <encodedstream.h>
Public Types | |
| typedef CharType | Ch |
Public Member Functions | |
| AutoUTFOutputStream (OutputByteStream &os, UTFType type, bool putBOM) | |
| Constructor. | |
| UTFType | GetType () const |
| void | Put (Ch c) |
| void | Flush () |
| Ch | Peek () const |
| Ch | Take () |
| size_t | Tell () const |
| Ch * | PutBegin () |
| size_t | PutEnd (Ch *) |
Detailed Description
template<typename CharType, typename OutputByteStream>
class AutoUTFOutputStream< CharType, OutputByteStream >
class AutoUTFOutputStream< CharType, OutputByteStream >
Output stream wrapper with dynamically bound encoding and automatic encoding detection.
- Template Parameters
-
CharType Type of character for writing. OutputByteStream type of output byte stream to be wrapped.
Member Typedef Documentation
◆ Ch
template<typename CharType, typename OutputByteStream>
| typedef CharType AutoUTFOutputStream< CharType, OutputByteStream >::Ch |
Constructor & Destructor Documentation
◆ AutoUTFOutputStream()
template<typename CharType, typename OutputByteStream>
|
inline |
Constructor.
- Parameters
-
os output stream to be wrapped. type UTF encoding type. putBOM Whether to write BOM at the beginning of the stream.
Member Function Documentation
◆ Flush()
template<typename CharType, typename OutputByteStream>
|
inline |
◆ GetType()
template<typename CharType, typename OutputByteStream>
|
inline |
◆ Peek()
template<typename CharType, typename OutputByteStream>
|
inline |
◆ Put()
template<typename CharType, typename OutputByteStream>
|
inline |
◆ PutBegin()
template<typename CharType, typename OutputByteStream>
|
inline |
◆ PutEnd()
template<typename CharType, typename OutputByteStream>
|
inline |
◆ Take()
template<typename CharType, typename OutputByteStream>
|
inline |
◆ Tell()
template<typename CharType, typename OutputByteStream>
|
inline |
The documentation for this class was generated from the following file: