MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / Label

Method Label

lib/mdflib/mdfviewer/src/util/csvwriter.cpp:194–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194const std::string CsvWriter::Label(size_t index) const {
195 std::ostringstream temp;
196 temp << Name(index);
197 const auto unit = Unit(index);
198 if (!unit.empty()) {
199 temp << " [" << unit << "]";
200 }
201 return temp.str();
202}
203
204const std::string &CsvWriter::Name(size_t index) const {
205 return index < header_list_.size() ? header_list_[index].name : kEmptyString;

Callers 1

RedrawListViewMethod · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected