| 191 | } |
| 192 | |
| 193 | std::set<std::string> DataTable::getColumnNames(const FIELD_SELECTION selection) const |
| 194 | { |
| 195 | std::set<std::string> header; |
| 196 | if (selection == FIELD_SELECTION::ALL) |
| 197 | { |
| 198 | for (const auto& entry : m_column_order) |
| 199 | { |
| 200 | header.insert(entry.first); |
| 201 | } |
| 202 | } |
| 203 | else if (selection == FIELD_SELECTION::INVISIBLE) |
| 204 | { |
| 205 | for (const std::map<std::string, size_t>::iterator& it : m_invisible_columns) |
| 206 | { |
| 207 | header.insert(it->first); |
| 208 | } |
| 209 | } |
| 210 | else |
| 211 | { |
| 212 | for (size_t column = 0; column < m_visible_columns.size(); ++column) |
| 213 | { |
| 214 | header.insert(m_visible_columns[column]->first); |
| 215 | } |
| 216 | } |
| 217 | return header; |
| 218 | } |
| 219 | |
| 220 | void DataTable::setColumnAsInvisible(const std::string column) |
| 221 | { |
no test coverage detected