Writes a map of name of access entity to UUID for access entities of some type to a file.
| 296 | |
| 297 | /// Writes a map of name of access entity to UUID for access entities of some type to a file. |
| 298 | void writeListFile(const String & file_path, const std::vector<std::pair<UUID, std::string_view>> & id_name_pairs) |
| 299 | { |
| 300 | WriteBufferFromFile out(file_path); |
| 301 | writeVarUInt(id_name_pairs.size(), out); |
| 302 | for (const auto & [id, name] : id_name_pairs) |
| 303 | { |
| 304 | writeStringBinary(name, out); |
| 305 | writeUUIDText(id, out); |
| 306 | } |
| 307 | out.close(); |
| 308 | } |
| 309 | |
| 310 | |
| 311 | /// Calculates the path for storing a map of name of access entity to UUID for access entities of some type. |
no test coverage detected