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

Method RedrawCaBlock

lib/mdflib/mdfviewer/src/childframe.cpp:594–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592}
593
594void ChildFrame::RedrawCaBlock(const Ca4Block &ca4, const wxTreeItemId &root) {
595 const std::string type = ca4.TypeAsString();
596 const std::string storage = ca4.StorageAsString();
597
598 std::ostringstream sub_string;
599 sub_string << type << "/" << storage;
600
601
602 std::ostringstream label;
603 label << ca4.BlockType()
604 << " (" << sub_string.str() << ") "
605 << ca4.DimensionAsString();
606
607 left_->AppendItem(root, wxString::FromUTF8(label.str()), TREE_CA, TREE_CA,
608 new BlockAddress(ca4.FilePosition()));
609}
610
611void ChildFrame::RedrawCnList(const detail::Cg3Block &cg3, const wxTreeItemId &root) {
612 if (cg3.Cn3().empty()) {

Callers

nothing calls this directly

Calls 5

TypeAsStringMethod · 0.80
StorageAsStringMethod · 0.80
DimensionAsStringMethod · 0.80
BlockTypeMethod · 0.45
FilePositionMethod · 0.45

Tested by

no test coverage detected