HephAudio v3.1.0
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{
18 {
19 private:
20 std::unordered_map<std::string, void*> argsMap;
21
22 public:
28 void* operator[](const std::string& key) const;
29
34 size_t Size() const;
35
41 bool Exists(const std::string& key) const;
42
48 void Add(const std::string& key, void* pUserArg);
49
54 void Remove(const std::string& key);
55
60 void Clear();
61 };
62}
#define HEPH_API
Definition HephShared.h:124
class for passing custom data to the event handlers as key/value pairs.
Definition UserEventArgs.h:18
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