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

Method Unit

lib/mdflib/mdflib/src/cc4block.cpp:74–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72std::string Cc4Block::Name() const { return name_; }
73
74void Cc4Block::Unit(const std::string& unit) {
75 CcUnit cc_unit;
76 cc_unit.Comment(MdString(unit));
77 unit_ = std::make_unique<Md4Block>(cc_unit.ToXml());
78}
79
80std::string Cc4Block::Unit() const {
81 if (!unit_) {

Callers

nothing calls this directly

Calls 6

MdStringClass · 0.85
IsTxtBlockMethod · 0.80
CommentMethod · 0.45
ToXmlMethod · 0.45
TextMethod · 0.45
TxCommentMethod · 0.45

Tested by

no test coverage detected