MCPcopy Create free account
hub / github.com/comaps/comaps / PrintInfo

Function PrintInfo

generator/statistics.cpp:154–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void PrintInfo(std::ostream & os, std::string const & prefix, GeneralInfo const & info, uint8_t prefixWidth = 1,
155 bool names = false, bool measurements = false)
156{
157 os << std::setw(prefixWidth) << prefix << ": size = " << std::setw(9) << info.m_size
158 << "; features = " << std::setw(7) << info.m_count << "; bytes/feats = " << std::setw(6)
159 << info.m_size / static_cast<double>(info.m_count);
160
161 if (measurements)
162 {
163 os << "; length = " << std::setw(10) << static_cast<uint64_t>(info.m_length) << " m; area = " << std::setw(10)
164 << static_cast<uint64_t>(info.m_area) << " m²";
165 }
166 if (names)
167 os << "; w/names = " << std::setw(8) << info.m_names;
168
169 os << "\n";
170}
171
172std::string GetKey(GeomType type)
173{

Callers 3

PrintTopFunction · 0.85
PrintStatsFunction · 0.85
PrintTypeStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected