Only allocate space for four digits in the score screen -- if somebody actually gets...
[ccbs] / bigscreen / flagtrigger.cpp
1 #include "flagtrigger.h"
2
3 FlagTrigger::FlagTrigger(pqxx::connection_base &conn, const PGSTD::string &name)
4         : pqxx::trigger(conn, name), flag(false) {}
5 FlagTrigger::~FlagTrigger() throw () {}
6         
7 void FlagTrigger::operator() (int pid)
8 {
9         flag = true;
10         std::fprintf(stderr, "Received a flag trigger from pid %u\n", pid);
11 }
12
13 bool FlagTrigger::get_flag() const
14 {
15         return flag;
16 }
17
18 void FlagTrigger::reset_flag()
19 {
20         flag = false;
21 }