1 #ifndef _FETCH_MAX_SCORE_FOR_SONGS_H
2 #define _FETCH_MAX_SCORE_FOR_SONGS_H 1
4 #include <pqxx/transactor>
7 /* A transactor that fetches the maximum score for all songs */
8 class FetchMaxScoreForSongs : public pqxx::transactor<> {
11 std::map<unsigned, unsigned> *score;
14 FetchMaxScoreForSongs(unsigned tournament, std::map<unsigned, unsigned> *score);
15 void operator() (pqxx::transaction<> &t);
18 #endif /* !defined(_FETCH_MAX_SCORE_FOR_SONGS_H) */