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