1 #ifndef _FETCH_TOP_CHOSEN_SONGS_FOR_TOURNAMENT_H
2 #define _FETCH_TOP_CHOSEN_SONGS_FOR_TOURNAMENT_H 1
4 #include <pqxx/transactor>
6 #include "widestring.h"
9 widestring title, shorttitle;
12 bool operator< (const TopChosen &other) const;
15 /* A transactor that fetches the best N scores for a given tournament */
16 class FetchTopChosenSongsForTournament : public pqxx::transactor<> {
18 unsigned tournament, num;
19 std::vector<TopChosen> *chosen;
22 FetchTopChosenSongsForTournament(unsigned tournament, unsigned num, std::vector<TopChosen> *chosen);
23 void operator() (pqxx::transaction<> &t);
26 #endif /* !defined(_FETCH_TOP_CHOSEN_SONGS_FOR_TOURNAMENT_H) */