HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
UserEventArgs.h
Go to the documentation of this file.
1#pragma once
2#include "HephShared.h"
3#include <string>
4#include <unordered_map>
5
8namespace Heph
9{
17 {
18 private:
19 std::unordered_map<std::string, void*> argsMap;
20
21 public:
27 void* operator[](const std::string& key) const;
28
33 size_t Size() const;
34
40 bool Exists(const std::string& key) const;
41
47 void Add(const std::string& key, void* pUserArg);
48
53 void Remove(const std::string& key);
54
59 void Clear();
60 };
61}
#define HEPH_API
Definition HephShared.h:132
class for passing custom data to the event handlers as key/value pairs.
Definition UserEventArgs.h:17
void Remove(const std::string &key)
void * operator[](const std::string &key) const
size_t Size() const
void Add(const std::string &key, void *pUserArg)
bool Exists(const std::string &key) const