|
Cute Chess
0.1
|
Formatter for chess tournament results. More...
#include <tournament.h>
Public Member Functions | |
| QString | entry (const QMap< int, QString > &data) const |
| QString | entryFormat () const |
| ResultFormatter (const QMap< QString, int > &tokenMap, const QString &format=QString(), QObject *parent=nullptr) | |
| void | setEntryFormat (const QString &format) |
Formatter for chess tournament results.
| ResultFormatter::ResultFormatter | ( | const QMap< QString, int > & | tokenMap, |
| const QString & | format = QString(), |
||
| QObject * | parent = nullptr |
||
| ) |
The ResultFormatter uses a reference to a map of available tokens tokenMap to generate a tournament result list.
Returns a line of tournament results
| QString ResultFormatter::entryFormat | ( | ) | const |
Returns format for a line of tournament results
| void ResultFormatter::setEntryFormat | ( | const QString & | format | ) |
Sets the output format of an entry in a tournament result list.
1.8.14