Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
card_database_cache.h
Go to the documentation of this file.
1#ifndef CARDDATABASE_CACHE_H
2#define CARDDATABASE_CACHE_H
3
4#include <QString>
5
7class QByteArray;
9
11{
19bool write(const QString &cachePath, const CardDatabaseData &data, const QByteArray &sourceHash);
20
29bool read(const QString &cachePath,
30 CardDatabaseData &data,
31 const QByteArray &sourceHash,
32 ICardSetPriorityController *priorityController);
33} // namespace CardDatabaseCache
34
35#endif // CARDDATABASE_CACHE_H
Definition interface_card_set_priority_controller.h:8
Definition card_database_cache.h:11
bool write(const QString &cachePath, const CardDatabaseData &data, const QByteArray &sourceHash)
Writes a fully-built database snapshot to a binary cache file.
Definition card_database_cache.cpp:410
bool read(const QString &cachePath, CardDatabaseData &data, const QByteArray &sourceHash, ICardSetPriorityController *priorityController)
Reads a database snapshot from a binary cache file.
Definition card_database_cache.cpp:447
Value type holding the full parsed state of a card database.
Definition card_database_data.h:17