Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
deck_tag_serialization.h File Reference
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonValue>
#include <QString>
#include <QStringList>
Include dependency graph for deck_tag_serialization.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

QString serializeDeckTags (const QStringList &tags)
 Encodes deck tags as a compact JSON array for storage in a text column.
QStringList deserializeDeckTags (const QString &serialized)
 Decodes deck tags previously written by serializeDeckTags.

Function Documentation

◆ deserializeDeckTags()

QStringList deserializeDeckTags ( const QString & serialized)
inline

Decodes deck tags previously written by serializeDeckTags.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ serializeDeckTags()

QString serializeDeckTags ( const QStringList & tags)
inline

Encodes deck tags as a compact JSON array for storage in a text column.

Deck tags are stored as JSON (rather than a delimited string) so tag names may contain any character, and decoded uniformly everywhere they are read.

Here is the call graph for this function:
Here is the caller graph for this function: