50 print_to_ostream( out, tax, 0, lines );
56 std::ostringstream res;
67 bool PrinterNested::print_to_ostream(
74 if( depth_limit_ > -1 && depth >
static_cast< size_t >( depth_limit_ )) {
79 auto in = std::string( depth,
'\t' );
82 for(
auto const& t : tax ) {
83 if( line_limit_ > -1 && lines >=
static_cast< size_t >( line_limit_ ) ) {
88 out << in << t.name();
89 if(( print_ranks_ && t.rank() !=
"" ) || ( print_ids_ && t.id() !=
"" )) {
92 if( print_ranks_ && t.rank() !=
"" ) {
95 if( print_ids_ && t.id() !=
"" ) {
96 if( print_ranks_ && t.rank() !=
"" ) {
101 if(( print_ranks_ && t.rank() !=
"" ) || ( print_ids_ && t.id() !=
"" )) {
108 finished &= print_to_ostream( out, t, depth + 1, lines );
111 if( depth == 0 && ! finished ) {
134 depth_limit_ = value;
145 print_ranks_ = value;