X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ffetch_list_of_finished_groups.h;fp=bigscreen%2Ffetch_list_of_finished_groups.h;h=598086d09b578542f72b500692d759f2df0fc6d5;hp=0000000000000000000000000000000000000000;hb=295701bd0835259dcf72b57779e77eeded720baa;hpb=bb5b7a03fb40583ab3f7cfeabe17739c970d8c69 diff --git a/bigscreen/fetch_list_of_finished_groups.h b/bigscreen/fetch_list_of_finished_groups.h new file mode 100644 index 0000000..598086d --- /dev/null +++ b/bigscreen/fetch_list_of_finished_groups.h @@ -0,0 +1,22 @@ +#ifndef _FETCH_LIST_OF_FINISHED_GROUPS_H +#define _FETCH_LIST_OF_FINISHED_GROUPS_H 1 + +#include +#include +#include "fetch_list_of_active_groups.h" + +/* + * A transactor that fetches the current list of finished groups (ie. parallels + * with no non-NULL scores, that are not shown elsewhere on the bigscreen). + */ +class FetchListOfFinishedGroups : public pqxx::transactor<> { +private: + unsigned tournament; + std::vector *active; + +public: + FetchListOfFinishedGroups(unsigned tournament, std::vector *active); + void operator() (pqxx::transaction<> &t); +}; + +#endif /* !defined(_FETCH_LIST_OF_FINISHED_GROUPS_H) */