56 virtual std::streamsize
xsputn(
const char* pc_message,
57 std::streamsize un_size) {
59 m_strBuffer.append(pc_message, pc_message + un_size);
63 nPos = m_strBuffer.find(
'\n');
64 if (nPos != std::string::npos) {
67 std::string strTmp(m_strBuffer.begin(), m_strBuffer.begin() + nPos);
71 strTmp =
"<b>[t=" +
ToString(m_cSpace.GetSimulationClock()) +
"]</b> " + strTmp;
73 m_pcTextEdit->append(strTmp.c_str());
75 m_strBuffer.erase(m_strBuffer.begin(), m_strBuffer.begin() + nPos + 1);
77 }
while (nPos != std::string::npos);