Add wxTextOutputStream::Write<>().

The new method allows to write into wxTextOutputStream anything that can be
streamed into wxString and allows to simplify the existing code.
This commit is contained in:
Catalin
2015-06-22 14:41:11 +03:00
committed by Vadim Zeitlin
parent aa62a65130
commit a2ebc9daf6
3 changed files with 25 additions and 16 deletions

View File

@@ -123,6 +123,15 @@ public:
void SetMode( wxEOL mode = wxEOL_NATIVE );
wxEOL GetMode() { return m_mode; }
template<typename T>
void Write(const T& i)
{
wxString str;
str << i;
WriteString(str);
}
void Write64(wxUint64 i);
void Write32(wxUint32 i);
void Write16(wxUint16 i);