]> git.sesse.net Git - ccbs/blob - bigscreen/fetch_list_of_active_groups.h
Adjusted the fade times a bit.
[ccbs] / bigscreen / fetch_list_of_active_groups.h
1 #ifndef _FETCH_LIST_OF_ACTIVE_GROUPS_H
2 #define _FETCH_LIST_OF_ACTIVE_GROUPS_H 1
3
4 #include <pqxx/transactor>
5 #include <vector>
6
7 struct SkeletonGroup {
8         unsigned tournament, round, parallel;
9 };
10
11 /* A transactor that fetches the current list of active groups. */
12 class FetchListOfActiveGroups : public pqxx::transactor<> {
13 private:
14         std::vector<SkeletonGroup> *active;
15
16 public:
17         FetchListOfActiveGroups(std::vector<SkeletonGroup> *active);
18         void operator() (pqxx::transaction<> &t);
19 };
20
21 #endif /* !defined(_FETCH_LIST_OF_ACTIVE_GROUPS_H) */