X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ffetch_max_score_for_player.h;fp=bigscreen%2Ffetch_max_score_for_player.h;h=36122b4f2e292432a7bcd223d81cca11dc324c43;hp=0000000000000000000000000000000000000000;hb=76518bb5379322ff9015d8cb4eb019724b31c8ec;hpb=6cf5f0348c59d9e8e4d740572b5bfbaa74b9bf56 diff --git a/bigscreen/fetch_max_score_for_player.h b/bigscreen/fetch_max_score_for_player.h new file mode 100644 index 0000000..36122b4 --- /dev/null +++ b/bigscreen/fetch_max_score_for_player.h @@ -0,0 +1,16 @@ +#ifndef _FETCH_MAX_SCORE_FOR_PLAYER_H +#define _FETCH_MAX_SCORE_FOR_PLAYER_H 1 + +#include + +/* A transactor that fetches the maximum score for a song */ +class FetchMaxScoreForPlayer : public pqxx::transactor<> { +private: + unsigned tournament, player, round, *score; + +public: + FetchMaxScoreForPlayer(unsigned tournament, unsigned player, unsigned round, unsigned *score); + void operator() (pqxx::transaction<> &t); +}; + +#endif /* !defined(_FETCH_MAX_SCORE_FOR_PLAYER_H) */