wxtextoutputstreamthis class provides functions that write text datas using an output stream. so, you can write text floats, integers. you can also simulate the c++ cout class:
wxffileoutputstream output( stderr ); wxtextoutputstream cout( output ); cout << "this is a text line" << endl; cout << 1234; cout << 1.23456;the wxtextoutputstream writes text files (or streams) on dos, macintosh and unix in their native formats (concerning the line ending). include files <wx/txtstrm.h> members
wxtextoutputstream::wxtextoutputstream
wxtextoutputstream::wxtextoutputstreamwxtextoutputstream(wxoutputstream& stream, wxeol mode = wxeol_native, wxmbconv& conv = wxconvutf8) constructs a text stream object associated to the given output stream. parameters stream
mode
conv
wxtextoutputstream::~wxtextoutputstream~wxtextoutputstream() destroys the wxtextoutputstream object.
wxtextoutputstream::getmodewxeol getmode() returns the end-of-line mode. one of wxeol_dos, wxeol_mac and wxeol_unix.
wxtextoutputstream::putcharvoid putchar(wxchar c) writes a character to the stream.
wxtextoutputstream::setmodevoid setmode(wxeol mode = wxeol_native) set the end-of-line mode. one of wxeol_native, wxeol_dos, wxeol_mac and wxeol_unix.
wxtextoutputstream::write8void write8(wxuint8 i8) writes the single byte i8 to the stream.
wxtextoutputstream::write16void write16(wxuint16 i16) writes the 16 bit integer i16 to the stream.
wxtextoutputstream::write32void write32(wxuint32 i32) writes the 32 bit integer i32 to the stream.
wxtextoutputstream::writedoublevirtual void writedouble(double f) writes the double f to the stream using the ieee format.
wxtextoutputstream::writestringvirtual void writestring(const wxstring& 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.
|