#ifndef MYGRATE_EVENTCOUNTER_H #define MYGRATE_EVENTCOUNTER_H #include "mariadb_repl.h" #include namespace MyGrate { class EventCounter { public: using Counters = std::array; void tick(mariadb_rpl_event); const Counters & getAll() const; unsigned long get(mariadb_rpl_event) const; bool operator>=(const EventCounter &) const; protected: Counters counters {}; }; } #endif