Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DeckList::Metadata Struct Reference

#include <deck_list.h>

Collaboration diagram for DeckList::Metadata:
[legend]

Public Member Functions

bool isEmpty () const
 Checks if all values (except for lastLoadedTimestamp) in the metadata is empty.
bool readElement (QXmlStreamReader *xml, const QString &childName)
 Reads a single deck metadata element from a Cockatrice deck XML stream.
void write (QXmlStreamWriter *xml) const
 Writes the deck metadata section of a Cockatrice deck XML file.

Public Attributes

QString name
 User-defined deck name.
QString comments
 Free-form comments or notes.
QString gameFormat
 The name of the game format this deck contains legal cards for.
CardRef bannerCard
 Optional representative card for the deck.
QStringList tags
 User-defined tags for deck classification.
QString lastLoadedTimestamp
 Timestamp string of last load.
PlaymatInfo playmat
 Optional playmat background for table+stack zones.

Member Function Documentation

◆ isEmpty()

bool DeckList::Metadata::isEmpty ( ) const

Checks if all values (except for lastLoadedTimestamp) in the metadata is empty.

Here is the call graph for this function:

◆ readElement()

bool DeckList::Metadata::readElement ( QXmlStreamReader * xml,
const QString & childName )

Reads a single deck metadata element from a Cockatrice deck XML stream.

Parameters
xmlReader positioned at the element.
childNameName of the current element.
Returns
true if a metadata element was consumed, false if childName is not a metadata element.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void DeckList::Metadata::write ( QXmlStreamWriter * xml) const

Writes the deck metadata section of a Cockatrice deck XML file.

Parameters
xmlWriter to append the metadata elements to.
Here is the caller graph for this function:

Member Data Documentation

◆ bannerCard

CardRef DeckList::Metadata::bannerCard

Optional representative card for the deck.

◆ comments

QString DeckList::Metadata::comments

Free-form comments or notes.

◆ gameFormat

QString DeckList::Metadata::gameFormat

The name of the game format this deck contains legal cards for.

◆ lastLoadedTimestamp

QString DeckList::Metadata::lastLoadedTimestamp

Timestamp string of last load.

◆ name

QString DeckList::Metadata::name

User-defined deck name.

◆ playmat

PlaymatInfo DeckList::Metadata::playmat

Optional playmat background for table+stack zones.

◆ tags

QStringList DeckList::Metadata::tags

User-defined tags for deck classification.


The documentation for this struct was generated from the following files:
  • libcockatrice_deck_list/libcockatrice/deck_list/deck_list.h
  • libcockatrice_deck_list/libcockatrice/deck_list/deck_list.cpp