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

Method MdText

lib/mdflib/mdflib/src/mdfblock.cpp:600–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600std::string MdfBlock::MdText() const {
601 if (!md_comment_) {
602 return {};
603 }
604 if (const auto *md4 = dynamic_cast<const Md4Block *>(md_comment_.get());
605 md4 != nullptr ) {
606 return md4->TxComment();
607 }
608
609 const auto *tx = dynamic_cast<const Tx4Block *>(md_comment_.get());
610 return tx == nullptr ? std::string() : tx->Text();
611}
612
613uint64_t MdfBlock::Write(std::streambuf& buffer) {
614 SetLastFilePosition(buffer);

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
TxCommentMethod · 0.45
TextMethod · 0.45

Tested by

no test coverage detected