]> git.sesse.net Git - ccbs/blob - bigscreen/fetch_group.h
Start gettextifying Perl scripts (and thus titles) as well.
[ccbs] / bigscreen / fetch_group.h
1 #ifndef _FETCH_GROUP_H
2 #define _FETCH_GROUP_H 1
3
4 #include <pqxx/transactor>
5 #include "group.h"
6
7 /* A transactor that fetches a group, all its scores etc. */
8 class FetchGroup : public pqxx::transactor<> {
9 private:
10         unsigned tournament, round, parallel;
11         Group *dest_group;
12         Group curr_group;
13
14 public:
15         FetchGroup(unsigned tournament, unsigned round, unsigned parallel, Group *group);
16         void operator() (pqxx::transaction<> &t);
17         void OnCommit();
18 };
19
20 #endif /* !defined(_FETCH_CURRENT_TOURNAMENT_H) */