MCPcopy Create free account
hub / github.com/avast/retdec / presentSimple

Function presentSimple

src/fileinfo/file_presentation/plain_presentation.cpp:62–76  ·  view source on GitHub ↗

* Simple presentation of information * @param desc Descriptors of information * @param info Vector of information * @param space Print empty line before first item */

Source from the content-addressed store, hash-verified

60 * @param space Print empty line before first item
61 */
62void presentSimple(const std::vector<std::string> &desc, const std::vector<std::string> &info, bool space)
63{
64 for(std::size_t i = 0, e = std::min(desc.size(), info.size()); i < e; ++i)
65 {
66 if(!desc[i].empty() && !info[i].empty())
67 {
68 if(space)
69 {
70 Log::info() << "\n";
71 space = false;
72 }
73 Log::info() << desc[i] << info[i] << "\n";
74 }
75 }
76}
77
78/**
79 * Present information from simple getter

Callers 2

presentMethod · 0.70

Calls 4

presentTitleFunction · 0.85
sizeMethod · 0.45
emptyMethod · 0.45
loadInformationMethod · 0.45

Tested by

no test coverage detected