Simple lineparser: Traverse each line in a file.
More...
#include <base/IOStream.h>
Simple lineparser: Traverse each line in a file.
std::ifstream
infile(
"somefile" );
{
}
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Simple lineparser: Traverse each line in a file.
Definition at line 111 of file IOStream.h.
◆ EachLine()
| zypp::iostr::EachLine::EachLine |
( |
std::istream & | str_r, |
|
|
unsigned | lineNo_r = 0 ) |
Ctor taking a stream and reading the 1st line from it.
Definition at line 58 of file IOStream.cc.
◆ valid()
| bool zypp::iostr::EachLine::valid |
( |
| ) |
const |
|
inline |
Whether this contains a valid line to consume.
Definition at line 118 of file IOStream.h.
◆ operator bool()
| zypp::iostr::EachLine::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Evaluate class in a boolean context.
Definition at line 122 of file IOStream.h.
◆ lineNo()
| unsigned zypp::iostr::EachLine::lineNo |
( |
| ) |
const |
|
inline |
Return the current line number.
Definition at line 126 of file IOStream.h.
◆ lineStart()
| std::streamoff zypp::iostr::EachLine::lineStart |
( |
| ) |
const |
|
inline |
◆ setLineNo()
| void zypp::iostr::EachLine::setLineNo |
( |
unsigned | lineNo_r | ) |
|
|
inline |
Set current line number.
Definition at line 133 of file IOStream.h.
◆ operator*() [1/2]
| const std::string & zypp::iostr::EachLine::operator* |
( |
| ) |
const |
|
inline |
Access the current line.
Definition at line 137 of file IOStream.h.
◆ operator*() [2/2]
| std::string & zypp::iostr::EachLine::operator* |
( |
| ) |
|
|
inline |
◆ operator->()
| const std::string * zypp::iostr::EachLine::operator-> |
( |
| ) |
const |
|
inline |
Access the current line.
Definition at line 144 of file IOStream.h.
◆ next() [1/2]
| bool zypp::iostr::EachLine::next |
( |
| ) |
|
◆ next() [2/2]
| bool zypp::iostr::EachLine::next |
( |
unsigned | num_r | ) |
|
|
inline |
◆ _str
| std::istream& zypp::iostr::EachLine::_str |
|
private |
◆ _line
| std::string zypp::iostr::EachLine::_line |
|
private |
◆ _lineStart
| std::streamoff zypp::iostr::EachLine::_lineStart |
|
private |
◆ _lineNo
| unsigned zypp::iostr::EachLine::_lineNo |
|
private |
◆ _valid
| bool zypp::iostr::EachLine::_valid |
|
private |
The documentation for this class was generated from the following files: