Cockatrice 2026-09-01-Development-3.1.0-beta.10
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
5
6#include <QByteArray>
8
10{
18bool write(const QString &cachePath, const CardDatabaseData &data, const QByteArray &sourceHash);
19
28bool read(const QString &cachePath,
29 CardDatabaseData &data,
30 const QByteArray &sourceHash,
31 ICardSetPriorityController *priorityController);
32} // namespace CardDatabaseCache
33
34#endif // CARDDATABASE_CACHE_H
Definition interface_card_set_priority_controller.h:7
Definition card_database_cache.h:10
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:349
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:386
Value type holding the full parsed state of a card database.
Definition card_database_data.h:17