#include <TextOutputStream.h>
List of all members.
Detailed Description
This is a special output stream filter to write text informations. The text can be written to any input stream or directly to a file. Following encodings are valid:
- ISO-8859-1: ISO Latin Alphabet No. 1
- UTF-16 : Sixteen-bit UCS Transformation Format, little endian byte order.
- UTF-16 be : Sixteen-bit UCS Transformation Format, big endian byte order.
Member Enumeration Documentation
Text encoding type
- Enumerator:
| etISO_8859_1 |
|
| etUTF_16 |
|
| etUTF_16be |
|
Constructor & Destructor Documentation
| TTextOutputStream::TTextOutputStream |
( |
IOutputStream & |
rParentStream, |
|
|
EEncodingType |
eEncoding = etUTF_16, |
|
|
bool |
bUseCarrigeReturn = DEFAULT_USE_CARRIGERETURN |
|
) |
| |
Creates a text out put stream filter
- Parameters:
-
| rParentStream | : Parent stream |
| eEncoding | : Encoding of the text |
| bUseCarrigeReturn | : flag if the carrige return sign is used. Default for windows is true, for linux is false. |
| TTextOutputStream::TTextOutputStream |
( |
const IString & |
rFileName, |
|
|
bool |
bAppend, |
|
|
EEncodingType |
eEncoding = etUTF_16, |
|
|
bool |
bUseCarrigeReturn = DEFAULT_USE_CARRIGERETURN |
|
) |
| |
Creates a text out put stream filter
- Parameters:
-
| rFileName | : File name |
| bAppend | : Append |
| eEncoding | : Encoding of the text |
| bUseCarrigeReturn | : flag if the carrige return sign is used. Default for windows is true, for linux is false. |
| TTextOutputStream::~TTextOutputStream |
( |
) |
[protected, virtual] |
Destroys the text output stream
Member Function Documentation
| void MQUALIFIER TTextOutputStream::flush |
( |
) |
[virtual] |
returns the encoding type
| Retval MQUALIFIER TTextOutputStream::write |
( |
const char * |
pBuffer, |
|
|
Int |
iBufferSize |
|
) |
| [virtual] |
| virtual Retval MQUALIFIER zeus::TTextOutputStream::writeArray |
( |
const IByteArray & |
rData ) |
[inline, protected, virtual] |
| virtual Retval MQUALIFIER zeus::TTextOutputStream::writeBool |
( |
bool |
bData ) |
[inline, protected, virtual] |
| virtual Retval MQUALIFIER zeus::TTextOutputStream::writeFloat32 |
( |
Float32 |
fData ) |
[inline, protected, virtual] |
| virtual Retval MQUALIFIER zeus::TTextOutputStream::writeFloat64 |
( |
const Float64 & |
rdData ) |
[inline, protected, virtual] |
| virtual Retval MQUALIFIER zeus::TTextOutputStream::writeInt16 |
( |
Int16 |
sData ) |
[inline, protected, virtual] |
| virtual Retval MQUALIFIER zeus::TTextOutputStream::writeInt32 |
( |
Int32 |
lData ) |
[inline, protected, virtual] |
| virtual Retval MQUALIFIER zeus::TTextOutputStream::writeInt64 |
( |
const Int64 & |
rldData ) |
[inline, protected, virtual] |
| Retval MQUALIFIER TTextOutputStream::writeInt8 |
( |
Int8 |
cData ) |
[virtual] |
| Retval TTextOutputStream::writeLine |
( |
const IString & |
rLine ) |
|
Writes a text line to the text file stream
- Parameters:
-
- Return values:
-
| RET_NOERROR | : Text writed |
| RET_REQUEST_FAILED | : Could not write the text. Bad stream or convertion problems from Unicode string to ISO 8859-1 |
| virtual Retval MQUALIFIER zeus::TTextOutputStream::writeString |
( |
const IString & |
rData ) |
[inline, protected, virtual] |
| Retval TTextOutputStream::writeText |
( |
const IString & |
rText ) |
|
Writes a text to the text file stream. This will not change the carrige returns according to the m_bUseCarrigeReturn flag.
- Parameters:
-
- Return values:
-
| RET_NOERROR | : Text writed |
| RET_REQUEST_FAILED | : Could not write the text. Bad stream or convertion problems from Unicode string to ISO 8859-1 |
| virtual Retval MQUALIFIER zeus::TTextOutputStream::writeUint16 |
( |
Uint16 |
usData ) |
[inline, protected, virtual] |
| virtual Retval MQUALIFIER zeus::TTextOutputStream::writeUint32 |
( |
Uint32 |
ulData ) |
[inline, protected, virtual] |
| virtual Retval MQUALIFIER zeus::TTextOutputStream::writeUint64 |
( |
const Uint64 & |
ruldData ) |
[inline, protected, virtual] |
The documentation for this class was generated from the following files: