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