* Returns the content of a cell of headerRow. * If returnEmpty is false: Instead of an empty cell, the generic column name is returned (used for draw_cell and sort) */
| 89 | * If returnEmpty is false: Instead of an empty cell, the generic column name is returned (used for draw_cell and sort) |
| 90 | */ |
| 91 | std::string CsvTable::getHeaderCell(table_index_t c, bool returnEmpty) { |
| 92 | if( c >= 0 && c < (table_index_t) headerRow->size() ) { |
| 93 | if( hasCustomHeaderRow && (headerRow->at(c) != "" || returnEmpty) ) { |
| 94 | return headerRow->at(c); |
| 95 | } else { |
| 96 | return Helper::createGenericColumnNames(c); |
| 97 | } |
| 98 | } else { |
| 99 | return "COL"; |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | |
| 104 | std::string CsvTable::getCell(table_index_t row, table_index_t col) { |
no test coverage detected