2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: txtstrm.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxTextInputStream
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2008-05-20 03:48:30 -04:00
|
|
|
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
|
|
|
@class wxTextInputStream
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-05-20 03:48:30 -04:00
|
|
|
This class provides functions that reads text data using an input stream,
|
|
|
|
allowing you to read text, floats, and integers.
|
|
|
|
|
|
|
|
The wxTextInputStream correctly reads text files (or streams) in DOS,
|
|
|
|
Macintosh and Unix formats and reports a single newline char as a line
|
|
|
|
ending.
|
|
|
|
|
|
|
|
wxTextInputStream::operator>>() is overloaded and you can use this class
|
|
|
|
like a standard C++ iostream. Note, however, that the arguments are the
|
|
|
|
fixed size types wxUint32, wxInt32 etc and on a typical 32-bit computer,
|
|
|
|
none of these match to the "long" type (wxInt32 is defined as int on 32-bit
|
|
|
|
architectures) so that you cannot use long. To avoid problems (here and
|
|
|
|
elsewhere), make use of wxInt32, wxUint32 and similar types.
|
|
|
|
|
|
|
|
If you're scanning through a file using wxTextInputStream, you should check
|
|
|
|
for @c EOF @b before reading the next item (word / number), because
|
|
|
|
otherwise the last item may get lost. You should however be prepared to
|
|
|
|
receive an empty item (empty string / zero number) at the end of file,
|
|
|
|
especially on Windows systems. This is unavoidable because most (but not
|
|
|
|
all) files end with whitespace (i.e. usually a newline).
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
For example:
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@code
|
|
|
|
wxFileInputStream input( "mytext.txt" );
|
2008-05-20 03:48:30 -04:00
|
|
|
wxTextInputStream text( input );
|
|
|
|
wxUint8 i1;
|
|
|
|
float f2;
|
2015-06-22 07:41:11 -04:00
|
|
|
wxString word;
|
2008-05-20 03:48:30 -04:00
|
|
|
|
|
|
|
text >> i1; // read a 8 bit integer.
|
|
|
|
text >> i1 >> f2; // read a 8 bit integer followed by float.
|
2015-06-22 07:41:11 -04:00
|
|
|
text >> word; // read a word
|
2008-03-08 08:52:38 -05:00
|
|
|
@endcode
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxbase}
|
|
|
|
@category{streams}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-05-20 03:48:30 -04:00
|
|
|
@see wxTextOutputStream
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-08 09:43:31 -05:00
|
|
|
class wxTextInputStream
|
2008-03-08 08:52:38 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
Constructs a text stream associated to the given input stream.
|
2008-03-20 09:45:17 -04:00
|
|
|
|
2008-03-08 09:43:31 -05:00
|
|
|
@param stream
|
2008-03-09 08:33:59 -04:00
|
|
|
The underlying input stream.
|
2008-03-08 09:43:31 -05:00
|
|
|
@param sep
|
2008-03-09 08:33:59 -04:00
|
|
|
The initial string separator characters.
|
2008-03-08 09:43:31 -05:00
|
|
|
@param conv
|
2008-05-20 03:48:30 -04:00
|
|
|
<b>In Unicode build only:</b> The encoding converter used to
|
|
|
|
convert the bytes in the underlying input stream to characters.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-10-14 15:48:14 -04:00
|
|
|
wxTextInputStream(wxInputStream& stream, const wxString& sep = " \t",
|
2008-05-20 03:48:30 -04:00
|
|
|
const wxMBConv& conv = wxConvAuto());
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2008-05-20 03:48:30 -04:00
|
|
|
Destructor.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
~wxTextInputStream();
|
|
|
|
|
2011-03-22 13:15:45 -04:00
|
|
|
/**
|
|
|
|
Returns a pointer to the underlying input stream object.
|
|
|
|
|
|
|
|
@since 2.9.2
|
|
|
|
*/
|
|
|
|
const wxInputStream& GetInputStream() const;
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2008-05-20 03:48:30 -04:00
|
|
|
Reads a character, returns 0 if there are no more characters in the
|
|
|
|
stream.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxChar GetChar();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Reads a unsigned 16 bit integer from the stream.
|
2008-05-20 03:48:30 -04:00
|
|
|
|
|
|
|
See Read8() for the description of the @a base parameter.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxUint16 Read16(int base = 10);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Reads a signed 16 bit integer from the stream.
|
2008-05-20 03:48:30 -04:00
|
|
|
|
|
|
|
See Read8() for the description of the @a base parameter.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxInt16 Read16S(int base = 10);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Reads a 32 bit unsigned integer from the stream.
|
2008-05-20 03:48:30 -04:00
|
|
|
|
|
|
|
See Read8() for the description of the @a base parameter.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxUint32 Read32(int base = 10);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Reads a 32 bit signed integer from the stream.
|
2008-05-20 03:48:30 -04:00
|
|
|
|
|
|
|
See Read8() for the description of the @a base parameter.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxInt32 Read32S(int base = 10);
|
|
|
|
|
2014-03-19 18:57:44 -04:00
|
|
|
/**
|
|
|
|
Reads a 64 bit unsigned integer from the stream.
|
|
|
|
|
|
|
|
See Read8() for the description of the @a base parameter.
|
|
|
|
|
|
|
|
@since 3.1.0
|
|
|
|
*/
|
|
|
|
wxUint64 Read64(int base = 10);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Reads a 64 bit signed integer from the stream.
|
|
|
|
|
|
|
|
See Read8() for the description of the @a base parameter.
|
|
|
|
|
|
|
|
@since 3.1.0
|
|
|
|
*/
|
|
|
|
wxInt64 Read64S(int base = 10);
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2008-05-20 03:48:30 -04:00
|
|
|
Reads a single unsigned byte from the stream, given in base @a base.
|
|
|
|
|
2008-03-09 08:33:59 -04:00
|
|
|
The value of @a base must be comprised between 2 and 36, inclusive, or
|
2008-05-20 03:48:30 -04:00
|
|
|
be a special value 0 which means that the usual rules of C numbers are
|
2008-03-08 08:52:38 -05:00
|
|
|
applied: if the number starts with @c 0x it is considered to be in base
|
2008-05-20 03:48:30 -04:00
|
|
|
16, if it starts with 0 - in base 8 and in base 10 otherwise. Note that
|
|
|
|
you may not want to specify the base 0 if you are parsing the numbers
|
|
|
|
which may have leading zeroes as they can yield unexpected (to the user
|
|
|
|
not familiar with C) results.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxUint8 Read8(int base = 10);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Reads a single signed byte from the stream.
|
2008-05-20 03:48:30 -04:00
|
|
|
|
|
|
|
See Read8() for the description of the @a base parameter.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxInt8 Read8S(int base = 10);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Reads a double (IEEE encoded) from the stream.
|
|
|
|
*/
|
|
|
|
double ReadDouble();
|
|
|
|
|
|
|
|
/**
|
2008-05-20 03:48:30 -04:00
|
|
|
Reads a line from the input stream and returns it (without the end of
|
|
|
|
line character).
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxString ReadLine();
|
|
|
|
|
|
|
|
/**
|
2008-05-20 03:48:30 -04:00
|
|
|
@deprecated Use ReadLine() or ReadWord() instead.
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
Same as ReadLine().
|
|
|
|
*/
|
|
|
|
wxString ReadString();
|
|
|
|
|
|
|
|
/**
|
2008-05-20 03:48:30 -04:00
|
|
|
Reads a word (a sequence of characters until the next separator) from
|
|
|
|
the input stream.
|
2008-03-20 09:45:17 -04:00
|
|
|
|
2008-03-09 08:33:59 -04:00
|
|
|
@see SetStringSeparators()
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxString ReadWord();
|
|
|
|
|
|
|
|
/**
|
2008-03-08 09:43:31 -05:00
|
|
|
Sets the characters which are used to define the word boundaries in
|
2008-03-08 08:52:38 -05:00
|
|
|
ReadWord().
|
2008-05-20 03:48:30 -04:00
|
|
|
|
|
|
|
The default separators are the @c space and @c TAB characters.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
void SetStringSeparators(const wxString& sep);
|
2015-06-22 07:41:11 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
Uses ReadWord() to extract @a word.
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(wxString& word);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Extracts the next char in the stream.
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(char& c);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses GetChar() to extract @a wc.
|
|
|
|
@note Only available in Unicode builds.
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(wchar_t& wc);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Read16S() to extract @a i.
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(wxInt16& i);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Read32S() to extract @a i.
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(wxInt32& i);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Read64S() to extract @a i.
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(wxInt64& i);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Read16() to extract @a i.
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(wxUint16& i);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Read32() to extract @a i.
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(wxUint32& i);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Read64() to extract @a i.
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(wxUint64& i);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses ReadDouble() to extract @a i.
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(double& i);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses truncated result of ReadDouble() to extract @a f.
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(float& f);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Calls @c func(*this).
|
|
|
|
*/
|
|
|
|
wxTextInputStream& operator>>(__wxTextInputManip func);
|
2008-03-08 08:52:38 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-05-20 03:48:30 -04:00
|
|
|
/**
|
|
|
|
Specifies the end-of-line characters to use with wxTextOutputStream.
|
|
|
|
*/
|
2016-02-06 18:11:25 -05:00
|
|
|
enum wxEOL
|
2008-05-20 03:48:30 -04:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
Specifies wxTextOutputStream to use the native end-of-line characters.
|
|
|
|
*/
|
|
|
|
wxEOL_NATIVE,
|
|
|
|
|
|
|
|
/**
|
|
|
|
Specifies wxTextOutputStream to use Unix end-of-line characters.
|
|
|
|
*/
|
|
|
|
wxEOL_UNIX,
|
|
|
|
|
|
|
|
/**
|
|
|
|
Specifies wxTextOutputStream to use Mac end-of-line characters.
|
|
|
|
*/
|
|
|
|
wxEOL_MAC,
|
|
|
|
|
|
|
|
/**
|
|
|
|
Specifies wxTextOutputStream to use DOS end-of-line characters.
|
|
|
|
*/
|
|
|
|
wxEOL_DOS
|
2016-02-06 18:11:25 -05:00
|
|
|
};
|
2008-05-20 03:48:30 -04:00
|
|
|
|
2008-03-10 11:24:38 -04:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
|
|
|
@class wxTextOutputStream
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-05-31 23:09:25 -04:00
|
|
|
This class provides functions that write text data using an output stream,
|
2008-05-20 03:48:30 -04:00
|
|
|
allowing you to write text, floats, and integers.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-05-31 23:09:25 -04:00
|
|
|
You can also simulate the C++ @c std::cout class:
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@code
|
|
|
|
wxFFileOutputStream output( stderr );
|
2008-05-20 03:48:30 -04:00
|
|
|
wxTextOutputStream cout( output );
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-05-20 03:48:30 -04:00
|
|
|
cout << "This is a text line" << endl;
|
|
|
|
cout << 1234;
|
|
|
|
cout << 1.23456;
|
2008-03-08 08:52:38 -05:00
|
|
|
@endcode
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2015-11-28 17:34:42 -05:00
|
|
|
The wxTextOutputStream writes text files (or streams) on Windows or Unix in
|
|
|
|
their native formats (concerning the line ending).
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxbase}
|
|
|
|
@category{streams}
|
2008-05-20 03:48:30 -04:00
|
|
|
|
|
|
|
@see wxTextInputStream
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-08 09:43:31 -05:00
|
|
|
class wxTextOutputStream
|
2008-03-08 08:52:38 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
Constructs a text stream object associated to the given output stream.
|
2008-03-20 09:45:17 -04:00
|
|
|
|
2008-03-08 09:43:31 -05:00
|
|
|
@param stream
|
2008-03-09 08:33:59 -04:00
|
|
|
The output stream.
|
2008-03-08 09:43:31 -05:00
|
|
|
@param mode
|
2008-05-20 03:48:30 -04:00
|
|
|
The end-of-line mode. One of ::wxEOL_NATIVE, ::wxEOL_DOS,
|
|
|
|
::wxEOL_MAC and ::wxEOL_UNIX.
|
2008-03-08 09:43:31 -05:00
|
|
|
@param conv
|
2008-05-20 03:48:30 -04:00
|
|
|
<b>In Unicode build only:</b> The object used to convert
|
2008-03-09 08:33:59 -04:00
|
|
|
Unicode text into ASCII characters written to the output stream.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxTextOutputStream(wxOutputStream& stream,
|
2008-05-20 03:48:30 -04:00
|
|
|
wxEOL mode = wxEOL_NATIVE,
|
|
|
|
const wxMBConv& conv = wxConvAuto());
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Destroys the wxTextOutputStream object.
|
2008-05-31 23:09:25 -04:00
|
|
|
|
|
|
|
Also calls Flush().
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-09-27 07:21:10 -04:00
|
|
|
virtual ~wxTextOutputStream();
|
2008-03-08 08:52:38 -05:00
|
|
|
|
2008-05-31 23:09:25 -04:00
|
|
|
/**
|
|
|
|
Flushes the stream.
|
|
|
|
|
|
|
|
This method should be called when using stateful encodings (currently
|
|
|
|
the only example of such encoding in wxWidgets is wxMBConvUTF7) to
|
|
|
|
write the end of the encoded data to the stream.
|
|
|
|
|
|
|
|
@since 2.9.0
|
|
|
|
*/
|
|
|
|
void Flush();
|
|
|
|
|
2011-03-22 13:15:45 -04:00
|
|
|
/**
|
|
|
|
Returns a pointer to the underlying output stream object.
|
|
|
|
|
|
|
|
@since 2.9.2
|
|
|
|
*/
|
|
|
|
const wxOutputStream& GetOutputStream() const;
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2008-05-20 03:48:30 -04:00
|
|
|
Returns the end-of-line mode. One of ::wxEOL_DOS, ::wxEOL_MAC and
|
|
|
|
::wxEOL_UNIX.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxEOL GetMode();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Writes a character to the stream.
|
|
|
|
*/
|
2008-10-29 11:34:31 -04:00
|
|
|
wxTextOutputStream& PutChar(wxChar c);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2008-05-20 03:48:30 -04:00
|
|
|
Set the end-of-line mode. One of ::wxEOL_NATIVE, ::wxEOL_DOS,
|
|
|
|
::wxEOL_MAC and ::wxEOL_UNIX.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
void SetMode(wxEOL mode = wxEOL_NATIVE);
|
|
|
|
|
2015-06-22 07:41:11 -04:00
|
|
|
/**
|
|
|
|
Writes @a i to the stream using wxString::operator<<().
|
|
|
|
|
|
|
|
@since 3.1.0
|
|
|
|
*/
|
|
|
|
template<typename T>
|
|
|
|
void Write(const T& i);
|
|
|
|
|
2015-06-22 07:41:11 -04:00
|
|
|
/**
|
|
|
|
Writes the 64 bit unsigned integer @a i64 to the stream.
|
2014-03-19 18:57:44 -04:00
|
|
|
|
|
|
|
@since 3.1.0
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2014-03-19 18:57:44 -04:00
|
|
|
void Write64(wxUint64 i64);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2015-06-22 07:41:11 -04:00
|
|
|
Writes the 32 bit unsigned integer @a i32 to the stream.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
void Write32(wxUint32 i32);
|
|
|
|
|
2014-03-19 18:57:44 -04:00
|
|
|
/**
|
2015-06-22 07:41:11 -04:00
|
|
|
Writes the 16 bit unsigned integer @a i16 to the stream.
|
2014-03-19 18:57:44 -04:00
|
|
|
*/
|
|
|
|
void Write16(wxUint16 i16);
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2015-06-22 07:41:11 -04:00
|
|
|
Writes the single unsigned byte @a i8 to the stream.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
void Write8(wxUint8 i8);
|
|
|
|
|
|
|
|
/**
|
2008-03-09 08:33:59 -04:00
|
|
|
Writes the double @a f to the stream using the IEEE format.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
virtual void WriteDouble(double f);
|
|
|
|
|
|
|
|
/**
|
2008-03-09 08:33:59 -04:00
|
|
|
Writes @a string as a line. Depending on the end-of-line mode the end of
|
2008-05-20 03:48:30 -04:00
|
|
|
line ('\\n') characters in the string are converted to the correct line
|
|
|
|
ending terminator.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
virtual void WriteString(const wxString& string);
|
2015-06-22 07:41:11 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
Uses WriteString() to insert @a string.
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(const wxString& string);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses WriteString() to insert @a c as ASCII.
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(char c);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses PutChar() to insert @a wc.
|
|
|
|
@note Only available in Unicode builds.
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(wchar_t wc);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Write() to insert @a c.
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(wxInt16 c);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Write() to insert @a c.
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(wxInt32 c);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Write() to insert @a c.
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(wxInt64 c);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Write() to insert @a c.
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(wxUint16 c);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Write() to insert @a c.
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(wxUint32 c);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Write() to insert @a c.
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(wxUint64 c);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Write() to insert @a f.
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(double f);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uses Write() to insert @a f.
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(float f);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Calls @c func(*this).
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& operator<<(__wxTextOutputManip func);
|
2008-03-08 08:52:38 -05:00
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|
2015-06-22 07:41:11 -04:00
|
|
|
|
|
|
|
/** @addtogroup group_funcmacro_misc */
|
|
|
|
//@{
|
|
|
|
|
|
|
|
/**
|
|
|
|
Writes @c '\\n' to @a stream.
|
|
|
|
|
|
|
|
@header{wx/textstrm.h}
|
|
|
|
*/
|
|
|
|
wxTextOutputStream& endl(wxTextOutputStream& stream);
|
|
|
|
|
|
|
|
//@}
|