X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ffetch_group.h;fp=bigscreen%2Ffetch_group.h;h=78b943ed6e4b6af2bee00346bbf47e84cafd9ad9;hp=0000000000000000000000000000000000000000;hb=8970b43d021e65f07ed4d279185c5062b4f9ee4a;hpb=81ad870bd72d346453a18f69cd83dd7b2383a75f diff --git a/bigscreen/fetch_group.h b/bigscreen/fetch_group.h new file mode 100644 index 0000000..78b943e --- /dev/null +++ b/bigscreen/fetch_group.h @@ -0,0 +1,20 @@ +#ifndef _FETCH_GROUP_H +#define _FETCH_GROUP_H 1 + +#include +#include "group.h" + +/* A transactor that fetches a group, all its scores etc. */ +class FetchGroup : public pqxx::transactor<> { +private: + unsigned tournament, round, parallel; + Group *dest_group; + Group curr_group; + +public: + FetchGroup(unsigned tournament, unsigned round, unsigned parallel, Group *group); + void operator() (pqxx::transaction<> &t); + void OnCommit(); +}; + +#endif /* !defined(_FETCH_CURRENT_TOURNAMENT_H) */