| 152 | } |
| 153 | |
| 154 | void 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 | |
| 172 | std::string GetKey(GeomType type) |
| 173 | { |
no outgoing calls
no test coverage detected