mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
21 lines
488 B
C++
21 lines
488 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <set>
|
|
#include <stdarg.h>
|
|
#include "format_string.h"
|
|
|
|
class CountersClient
|
|
{
|
|
static std::set<std::wstring> _events;
|
|
std::string _url;
|
|
simple_logger<wchar_t>* _logger;
|
|
public:
|
|
CountersClient(std::string baseUrl, std::string key, simple_logger<wchar_t>* logger);
|
|
~CountersClient() {}
|
|
|
|
void registerEvent(std::wstring eventName, bool fireImmediately = true);
|
|
void reportEvents();
|
|
private:
|
|
void reportEvents(std::set<std::wstring> &events);
|
|
}; |