1#ifndef COCKATRICE_PRINTING_INFO_H
2#define COCKATRICE_PRINTING_INFO_H
9#include <QSharedPointer>
105 [[nodiscard]] QString
getProperty(
const QString &propertyName)
const
118 void setProperty(
const QString &_name,
const QString &_value);
125 [[nodiscard]] QString
getUuid()
const;
QMap< QString, QList< PrintingInfo > > SetToPrintingsMap
Definition card_info.h:29
QSharedPointer< CardSet > CardSetPtr
Definition card_info.h:27
A property map that can lazily deserialize blobs to avoid loading overhead.
Definition lazy_properties_hash.h:17
Represents metadata for a specific variation of a card within a set.
Definition printing_info.h:28
CardSetPtr getSet() const
Returns the set this printing belongs to.
Definition printing_info.h:79
QString getFlavorName() const
Returns the flavorName for this printing.
Definition printing_info.cpp:26
LazyPropertiesHash properties
Key-value store for variation-specific attributes.
Definition printing_info.h:71
bool operator==(const PrintingInfo &other) const
Equality operator.
Definition printing_info.h:54
QString getProperty(const QString &propertyName) const
Retrieves the value of a specific property.
Definition printing_info.h:105
void setProperty(const QString &_name, const QString &_value)
Sets or updates the value of a specific property.
Definition printing_info.cpp:13
PrintingInfo(const CardSetPtr &_set=nullptr, const LazyPropertiesHash &_properties={})
Constructs a PrintingInfo associated with a specific set.
Definition printing_info.cpp:8
bool isEmpty() const
check if the info is empty, as if default constructed.
Definition printing_info.h:64
const QHash< QString, QString > & getPropertiesHash() const
Definition printing_info.h:94
QString getUuid() const
Returns the providerID for this printing.
Definition printing_info.cpp:21
QStringList getProperties() const
Returns the list of property names defined for this printing.
Definition printing_info.h:89
QString getArtist() const
Returns the artist name credited for this printing's artwork.
Definition printing_info.h:141
~PrintingInfo()=default
Destroys the PrintingInfo.
CardSetPtr set
The set this variation belongs to.
Definition printing_info.h:70