back to io 

wxTextOutputStream

generated from ../src/mod_io/tostream.cpp

This class provides functions that write text datas using an output stream. So, you can write text, floats and integers. An example:


   textout.writeString("The value of x:");
   textout.write32(x);
  
This example can also be written as follows: textout.writeString("The value of x:" + x);

Constants

wxEol

Name Description
NATIVE
UNIX
MAC
DOS

Constructor

wxTextOutputStream

wxTextOutputStream(Output, 
                   Mode = wxEol.NATIVE, 
                   Encoding = UTF-8)
 
Name Type Default Description
Output wxOutputStream An output stream
Mode wxEol wxEol.NATIVE The end-of-line mode
Encoding String UTF-8 The encoding to use

Constructs a new wxTextOutputStream object.

Properties

Name Type Description
mode Integer Gets/Sets the end-of-line mode. See wxEol.

Methods

write16

write16(Value)
 
Name Type Default Description
Value Integer

Writes a 16 bit integer to the stream.

write32

write32(Value)
 
Name Type Default Description
Value Integer

Writes a 32 bit integer to the stream.

write8

write8(Value)
 
Name Type Default Description
Value Integer

Writes a 8 bit integer to the stream.

writeDouble

writeDouble(Value)
 
Name Type Default Description
Value Double

Writes a double (IEEE encoded) to a stream.

writeString

writeString(Value)
 
Name Type Default Description
Value String

Writes string as a line. Depending on the end-of-line mode the end of line ('\n') characters in the string are converted to the correct line ending terminator.



SourceForge.net Logo Support This Project

Table of Contents

Constructor

wxTextOutputStream

Properties

mode

Methods

write16
write32
write8
writeDouble
writeString


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.