X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ffetch_list_of_active_groups.h;fp=bigscreen%2Ffetch_list_of_active_groups.h;h=113160d85f5b69f21357e132a11946e8dc9b0f05;hp=0000000000000000000000000000000000000000;hb=44f3ad694f8fe5dd76602d30c9bc1f3de9650f97;hpb=c582866b27054fcbce6fcde40dbec73c7ae9d91d diff --git a/bigscreen/fetch_list_of_active_groups.h b/bigscreen/fetch_list_of_active_groups.h new file mode 100644 index 0000000..113160d --- /dev/null +++ b/bigscreen/fetch_list_of_active_groups.h @@ -0,0 +1,21 @@ +#ifndef _FETCH_LIST_OF_ACTIVE_GROUPS_H +#define _FETCH_LIST_OF_ACTIVE_GROUPS_H 1 + +#include +#include + +struct Group { + unsigned tournament, round, parallel; +}; + +/* A transactor that fetches the current list of active groups. */ +class FetchListOfActiveGroups : public pqxx::transactor<> { +private: + std::vector *active; + +public: + FetchListOfActiveGroups(std::vector *active); + void operator() (pqxx::transaction<> &t); +}; + +#endif /* !defined(_FETCH_LIST_OF_ACTIVE_GROUPS_H) */