X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ffetch_current_tournament.h;fp=bigscreen%2Ffetch_current_tournament.h;h=4700871c4d4b8181daf706e2d7ca99fb1cceeb14;hp=0000000000000000000000000000000000000000;hb=2561f34f160440e5df8c3891a50d6e3c2b83c715;hpb=141adc9f5acb9ed1e98a206abb0d2e9cfdce6d2f diff --git a/bigscreen/fetch_current_tournament.h b/bigscreen/fetch_current_tournament.h new file mode 100644 index 0000000..4700871 --- /dev/null +++ b/bigscreen/fetch_current_tournament.h @@ -0,0 +1,23 @@ +#ifndef _FETCH_CURRENT_TOURNAMENT_H +#define _FETCH_CURRENT_TOURNAMENT_H 1 + +#include +#include "widestring.h" + +class Tournament { +public: + int id; + widestring name; +}; + +/* A transactor that fetches the current tournament and some information about it. */ +class FetchCurrentTournament : public pqxx::transactor<> { +private: + Tournament *tourn; + +public: + FetchCurrentTournament(Tournament *tourn); + void operator() (pqxx::transaction<> &t); +}; + +#endif /* !defined(_FETCH_CURRENT_TOURNAMENT_H) */