]> git.sesse.net Git - ccbs/blob - bigscreen/fetch_max_score_for_songs.h
DDR Europe tournament parser now by default sets all players to Norway. Syntax fixes...
[ccbs] / bigscreen / fetch_max_score_for_songs.h
1 #ifndef _FETCH_MAX_SCORE_FOR_SONGS_H
2 #define _FETCH_MAX_SCORE_FOR_SONGS_H 1
3
4 #include <pqxx/transactor>
5 #include <map>
6
7 /* A transactor that fetches the maximum score for all songs */
8 class FetchMaxScoreForSongs : public pqxx::transactor<> {
9 private:
10         unsigned tournament;
11         std::map<unsigned, unsigned> *score;
12
13 public:
14         FetchMaxScoreForSongs(unsigned tournament, std::map<unsigned, unsigned> *score);
15         void operator() (pqxx::transaction<> &t);
16 };
17
18 #endif /* !defined(_FETCH_MAX_SCORE_FOR_SONGS_H) */