#pragma once #include #include #include #include "format_string.h" class CountersClient { static std::set _events; std::string _url; simple_logger* _logger; public: CountersClient(std::string baseUrl, std::string key, simple_logger* logger); ~CountersClient() {} void registerEvent(std::wstring eventName, bool fireImmediately = true); void reportEvents(); private: void reportEvents(std::set &events); };