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

Function MakeFlagString

lib/mdflib/mdflib/src/cc4block.cpp:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49std::string MakeFlagString(uint16_t flag) {
50 std::ostringstream s;
51 if (flag & 0x0001) {
52 s << "Decimal";
53 }
54 if (flag & 0x0002) {
55 s << (s.str().empty() ? "Range" : ",Range");
56 }
57 if (flag & 0x0004) {
58 s << (s.str().empty() ? "Status" : ",Status");
59 }
60 return s.str();
61}
62} // namespace
63
64namespace mdf::detail {

Callers 1

GetBlockPropertyMethod · 0.70

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected