]> git.sesse.net Git - ccbs/blob - bigscreen/fetch_max_score_for_song.h
Correct the logic for finding out what songs a player can choose (only random songs...
[ccbs] / bigscreen / fetch_max_score_for_song.h
1 #ifndef _FETCH_MAX_SCORE_FOR_SONG_H
2 #define _FETCH_MAX_SCORE_FOR_SONG_H 1
3
4 #include <pqxx/transactor>
5
6 /* A transactor that fetches the maximum score for a song */
7 class FetchMaxScoreForSong : public pqxx::transactor<> {
8 private:
9         unsigned tournament, song, *score;
10
11 public:
12         FetchMaxScoreForSong(unsigned tournament, unsigned song, unsigned *score);
13         void operator() (pqxx::transaction<> &t);
14 };
15
16 #endif /* !defined(_FETCH_MAX_SCORE_FOR_SONG_H) */