]> git.sesse.net Git - ccbs/blob - bigscreen/fetch_list_of_finished_groups.h
There is no freshcolumnheading.
[ccbs] / bigscreen / fetch_list_of_finished_groups.h
1 #ifndef _FETCH_LIST_OF_FINISHED_GROUPS_H
2 #define _FETCH_LIST_OF_FINISHED_GROUPS_H 1
3
4 #include <pqxx/transactor>
5 #include <vector>
6 #include "fetch_list_of_active_groups.h"
7
8 /*
9  * A transactor that fetches the current list of finished groups (ie. parallels
10  * with no non-NULL scores, that are not shown elsewhere on the bigscreen).
11  */
12 class FetchListOfFinishedGroups : public pqxx::transactor<> {
13 private:
14         unsigned tournament;
15         std::vector<SkeletonGroup> *active;
16
17 public:
18         FetchListOfFinishedGroups(unsigned tournament, std::vector<SkeletonGroup> *active);
19         void operator() (pqxx::transaction<> &t);
20 };
21
22 #endif /* !defined(_FETCH_LIST_OF_FINISHED_GROUPS_H) */