Input stream class to operate on ASCII files.
More...
#include <easy3d/util/line_stream.h>
|
| | LineInputStream (std::istream &in) |
| | Constructor.
|
| |
|
| ~LineInputStream () |
| | Destructor.
|
| |
| bool | eof () const |
| | Check if the end of the file has been reached.
|
| |
| bool | eol () const |
| | Check if the end of the line has been reached.
|
| |
| bool | fail () const |
| | Check if the stream has failed.
|
| |
|
void | get_line () |
| | Read the next line from the input stream.
|
| |
| std::istream & | line () |
| | Get the current line as an input stream.
|
| |
| const std::string & | current_line () const |
| | Get the current line as a string.
|
| |
| template<class T> |
| LineInputStream & | operator>> (T ¶m) |
| | Extract a value from the current line.
|
| |
Input stream class to operate on ASCII files.
◆ LineInputStream()
◆ current_line()
| const std::string & current_line |
( |
| ) |
const |
|
inline |
Get the current line as a string.
- Returns
- The current line as a string.
◆ eof()
Check if the end of the file has been reached.
- Returns
- True if the end of the file has been reached, false otherwise.
◆ eol()
Check if the end of the line has been reached.
- Returns
- True if the end of the line has been reached, false otherwise.
◆ fail()
Check if the stream has failed.
- Returns
- True if the stream has failed, false otherwise.
◆ line()
Get the current line as an input stream.
- Returns
- The current line as an input stream.
◆ operator>>()
Extract a value from the current line.
- Template Parameters
-
| T | The type of the value to extract. |
- Parameters
-
| param | The value to extract. |
- Returns
- A reference to the LineInputStream object.
The documentation for this class was generated from the following file: