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

Function FormatArray

lib/mdflib/mdflib/src/ichannelobserver.cpp:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8namespace {
9std::string FormatArray(const mdf::IChannelArray& array, uint16_t dimension) {
10 const auto dimensions = array.Dimensions();
11 std::ostringstream output;
12 output << "[";
13 output << array.DimensionSize(dimension);
14 output << "]";
15 ++dimension;
16 if (dimension < dimensions) {
17 output << FormatArray(array, dimension);
18 }
19 return output.str();
20}
21
22} // empty namespace
23

Callers

nothing calls this directly

Calls 2

DimensionsMethod · 0.80
DimensionSizeMethod · 0.80

Tested by

no test coverage detected