12 #ifndef ZYPP_BASE_IOSTREAM_H
13 #define ZYPP_BASE_IOSTREAM_H
16 #include <boost/io/ios_state.hpp>
45 std::string
getline( std::istream & str );
50 inline std::ostream &
copy( std::istream & from_r, std::ostream & to_r )
55 while ( from_r && from_r.get( ch ) )
64 inline std::ostream &
copyIndent( std::istream & from_r, std::ostream & to_r,
const std::string & indent_r =
"> " )
70 while ( from_r && from_r.get( ch ) )
74 indent = ( ch ==
'\n' );
84 inline void tee( std::istream & from_r, std::ostream & to1_r, std::ostream & to2_r )
86 if ( from_r && ( to1_r ||to2_r ) )
89 while ( from_r && from_r.get( ch ) )
115 EachLine( std::istream & str_r,
unsigned lineNo_r = 0 );
153 while ( num_r-- &&
next() )
185 int forEachLine( std::istream & str_r,
function<
bool(
int, std::string)> consume_r );
200 int simpleParseFile( std::istream & str_r, ParseFlags flags_r,
function<
bool(
int, std::string)> consume_r );
203 inline int simpleParseFile( std::istream & str_r,
function<
bool(
int, std::string)> consume_r )
212 #endif // ZYPP_BASE_IOSTREAM_H