]> git.sesse.net Git - ccbs/blob - bigscreen/fetch_max_score_for_player.h
Make the "red stuff is new stuff" fade a lot prettier.
[ccbs] / bigscreen / fetch_max_score_for_player.h
1 #ifndef _FETCH_MAX_SCORE_FOR_PLAYER_H
2 #define _FETCH_MAX_SCORE_FOR_PLAYER_H 1
3
4 #include <pqxx/transactor>
5
6 /* A transactor that fetches the maximum score for a song */
7 class FetchMaxScoreForPlayer : public pqxx::transactor<> {
8 private:
9         unsigned tournament, player, round, *score;
10
11 public:
12         FetchMaxScoreForPlayer(unsigned tournament, unsigned player, unsigned round, unsigned *score);
13         void operator() (pqxx::transaction<> &t);
14 };
15
16 #endif /* !defined(_FETCH_MAX_SCORE_FOR_PLAYER_H) */