MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / toString

Method toString

isis/src/core/src/Table.cpp:547–556  ·  view source on GitHub ↗

* Convert the data from a Table into a string. * * This method will convert all of the Table's records and fields into a * string but will not serialze any label information. See TableRecord::toString * for how the records are converted into a string. * * @param table The Table to serialize * @param fieldDelimiter The delimiter to use between fields * * @return @b QStrin

Source from the content-addressed store, hash-verified

545 * @return @b QString The Table data as a string
546 */
547 QString Table::toString(Table table, QString fieldDelimiter) {
548 QString tableValues;
549 // add the first record with header, the given delimiter, and a new line after each record
550 tableValues += TableRecord::toString(table[0], fieldDelimiter, true, true);
551 // add remaining records without header, the same delimeter, and new line after each record
552 for (int recordIndex = 1; recordIndex < table.Records(); recordIndex++) {
553 tableValues += TableRecord::toString(table[recordIndex], fieldDelimiter);
554 }
555 return tableValues;
556 }
557
558}

Callers 15

tgocassismosFunction · 0.45
getValueMethod · 0.45
leisa2isisFunction · 0.45
IString.cppFile · 0.45
TESTFunction · 0.45
mainFunction · 0.45
TestVersioningFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
computeFocalLengthMethod · 0.45
IsisMainFunction · 0.45

Calls 2

RecordsMethod · 0.80
toStringFunction · 0.70

Tested by 15

TESTFunction · 0.36
mainFunction · 0.36
TestVersioningFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36