This class is a helper-class that converts narrow string data read from an object of type std::istream
to the default character type.
- See also
- Further explanations are given with sibling class StringWriter.
Definition at line 286 of file stdiostream.mpp.
◆ converter
NAString alib::strings::compatibility::std::StringReader::converter |
|
protected |
◆ readOp
The input stream as provided with SetStream. Will be set to the std::cin
, respectively std::win
in the constructor.
Definition at line 294 of file stdiostream.mpp.
◆ StringReader()
alib::strings::compatibility::std::StringReader::StringReader |
( |
| ) |
|
|
inline |
◆ GetStream()
::std::istream * alib::strings::compatibility::std::StringReader::GetStream |
( |
| ) |
|
|
inline |
◆ IsEOF()
bool alib::strings::compatibility::std::StringReader::IsEOF |
( |
| ) |
|
|
inline |
Returns true
if the input stream signaled its end, false
otherwise.
- Returns
true
if the input stream is known to be at its end, false
otherwise.
Definition at line 325 of file stdiostream.mpp.
◆ Read() [1/2]
void alib::strings::compatibility::std::StringReader::Read |
( |
NAString & | target | ) |
|
|
inline |
Reads one line of text from the input stream into a narrow string.
- Parameters
-
target | The storage buffer for the string to read. This string will be cleared independent of the availability of input data. |
Definition at line 334 of file stdiostream.mpp.
◆ Read() [2/2]
void alib::strings::compatibility::std::StringReader::Read |
( |
WAString & | target | ) |
|
|
inline |
Reads one line of text from the internal input stream into a wide string.
- Parameters
-
target | The storage buffer for the string to read. This string will be cleared independent of the availability of input data. |
Definition at line 345 of file stdiostream.mpp.
◆ SetStream()
void alib::strings::compatibility::std::StringReader::SetStream |
( |
::std::istream * | is | ) |
|
|
inline |
Sets the input stream.
- Parameters
-
is | Pointer to the input stream to read from to. |
Definition at line 311 of file stdiostream.mpp.
The documentation for this class was generated from the following file: