MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / getColumnNames

Method getColumnNames

ASAP/worklist_interface/Data/DataTable.cpp:193–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 5

getWorklistHeadersMethod · 0.80
getPatientHeadersMethod · 0.80
getStudyHeadersMethod · 0.80
getImageHeadersMethod · 0.80
refreshTablesMethod · 0.80

Calls 2

insertMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected