Only allocate space for four digits in the score screen -- if somebody actually gets...
[ccbs] / bigscreen / fetch_current_tournament.h
1 #ifndef _FETCH_CURRENT_TOURNAMENT_H
2 #define _FETCH_CURRENT_TOURNAMENT_H 1
3
4 #include <pqxx/transactor>
5 #include "widestring.h"
6
7 class Tournament {
8 public:
9         int id;
10         widestring name;
11 };
12
13 /* A transactor that fetches the current tournament and some information about it. */
14 class FetchCurrentTournament : public pqxx::transactor<> {
15 private:
16         Tournament *tourn;
17
18 public:
19         FetchCurrentTournament(Tournament *tourn);
20         void operator() (pqxx::transaction<> &t);
21 };
22
23 #endif /* !defined(_FETCH_CURRENT_TOURNAMENT_H) */