QcLoadWarnings Class
The warnings of reading a world's saved chunks (blocks, entity and block entity records): the readers add to it as they go, so what they found before a damaged part stays. More...
| Header: | #include <server/storage/QcLoadWarnings.h> |
Public Functions
| void | add(const QString &text) |
| void | add(const QStringList &texts) |
| void | addOnce(const QString &subject, const QString &text) |
| QStringList | takeTexts() |
| const QStringList & | texts() const |
Detailed Description
A subject (an unknown block, item or creature, keyed with its kind: "block:", "item:", ...) is reported once for as long as the object lives: once per world, as QcChunkIo holds one.
Member Function Documentation
void QcLoadWarnings::add(const QString &text)
Adds text.
void QcLoadWarnings::add(const QStringList &texts)
Adds texts.
void QcLoadWarnings::addOnce(const QString &subject, const QString &text)
Adds text unless subject was reported before; subjects name their kind ("item:stone"), so a block and an item of the same name are two subjects.
QStringList QcLoadWarnings::takeTexts()
Returns the warnings added since the last call; the subjects stay reported.
const QStringList &QcLoadWarnings::texts() const
Returns the warnings added since the last takeTexts().