| 245 | } |
| 246 | |
| 247 | bool COutputStream::GetNextLine(tstring& strLine)// const |
| 248 | { |
| 249 | tstring::iterator it = std::search(m_spPimpl->m_itCurrentPos, m_spPimpl->m_vBuffer.end(), m_spPimpl->mc_strEolCharacterSequence.begin(), m_spPimpl->mc_strEolCharacterSequence.end()); |
| 250 | if( it == m_spPimpl->m_vBuffer.end() ) |
| 251 | return false; |
| 252 | |
| 253 | strLine.assign(m_spPimpl->m_itCurrentPos, it); |
| 254 | |
| 255 | m_spPimpl->m_itCurrentPos = it + m_spPimpl->mc_strEolCharacterSequence.size(); |
| 256 | |
| 257 | return true; |
| 258 | } |
| 259 | |
| 260 | tstring COutputStream::GetLocalStreamName() const |
| 261 | { |