]> git.sesse.net Git - ccbs/blob - bigscreen/group.h
Registration now supports countries and clubs.
[ccbs] / bigscreen / group.h
1 #ifndef _GROUP_H
2 #define _GROUP_H 1
3
4 #include <vector>
5 #include "widestring.h"
6
7 /* This more or less mimics the structures from show-tournament.pl */
8 struct Song {
9         int id;
10         widestring title, short_title, artist;
11 };
12 struct Score {
13         Song song;
14         bool chosen;
15         int score;
16 };
17 struct Player {
18         unsigned id, position;
19         widestring nick;
20         unsigned total, rank;
21         
22         std::vector<Score> scores;
23 };
24
25 struct Group {
26         unsigned tournament, round, parallel;
27         unsigned num_qualifying;
28         std::vector<Player> players;
29 };
30
31 #endif /* !defined(_GROUPSCREEN_H) */