void print_header(std::ostream& stream) { print_horizontal_line(stream); if (rows.size() > 0) { print_row(0, stream, 10); print_horizontal_line(stream); } }
void table_printer::print_header() { print_horizontal_line(); *m_out_stream << "|"; for (int i=0; i < get_num_columns(); ++i) { *m_out_stream << std::setw(m_column_widths.at(i)) << m_column_headers.at(i).substr(0, m_column_widths.at(i)); if (i != get_num_columns() - 1) { *m_out_stream << m_separator; } } *m_out_stream << "|\n"; print_horizontal_line(); }
/** * prints the adjacency matrix. */ void ShortPath::print(){ cout << '\t'; for (vector<Dijkstra>::iterator it = elements.begin() ; it != elements.end(); ++it){ cout << it->get_name() << '\t'; } cout << endl; print_horizontal_line(); cout << endl; for (vector<Dijkstra>::iterator it = elements.begin() ; it != elements.end(); ++it){ it->print_distances(); } cout << endl; erfasse_enter(); }
void print_footer(std::ostream& stream) { print_horizontal_line(stream); }
void table_printer::print_footer() { print_horizontal_line(); }