Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DeckListPlainText Namespace Reference

Functions

bool parse (QTextStream &in, const std::function< QString(const QString &)> &cardNameNormalizer, DeckList::Metadata &metadata, DecklistNodeTree &tree)
 Parses a plain-text deck list into a tree and its metadata.

Function Documentation

◆ parse()

bool DeckListPlainText::parse ( QTextStream & in,
const std::function< QString(const QString &)> & cardNameNormalizer,
DeckList::Metadata & metadata,
DecklistNodeTree & tree )

Parses a plain-text deck list into a tree and its metadata.

Clears the tree first, then fills both from the text.

Parameters
inThe text to load
cardNameNormalizerFunction that takes the parsed card name string in the text and returns the name to store
metadataDeck metadata written by the parser
treeDeck tree the parser adds cards to
Returns
False if the input was empty, true otherwise.
Here is the call graph for this function:
Here is the caller graph for this function: