Load this collection from disk. */
| 381 | |
| 382 | /** Load this collection from disk. */ |
| 383 | void load(const char* path) |
| 384 | { |
| 385 | #if HAVE_GOOGLE_SPARSE_HASH_MAP |
| 386 | FILE* f = fopen(path, "r"); |
| 387 | if (f == NULL) { |
| 388 | perror(path); |
| 389 | exit(EXIT_FAILURE); |
| 390 | } |
| 391 | m_data.read_metadata(f); |
| 392 | m_data.read_nopointer_data(f); |
| 393 | fclose(f); |
| 394 | m_adjacencyLoaded = true; |
| 395 | #else |
| 396 | (void)path; |
| 397 | // Not supported. |
| 398 | assert(false); |
| 399 | exit(EXIT_FAILURE); |
| 400 | #endif |
| 401 | } |
| 402 | |
| 403 | /** Indicate that this is a colour-space collection. */ |
| 404 | void setColourSpace(bool flag) |
no test coverage detected