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
HephCommon
HeaderFiles
UserEventArgs.h
Go to the documentation of this file.
1
#pragma once
2
#include "
HephShared.h
"
3
#include <string>
4
#include <unordered_map>
5
8
namespace
Heph
9
{
17
class
HEPH_API
UserEventArgs
final
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
}
HephShared.h
HEPH_API
#define HEPH_API
Definition
HephShared.h:124
Heph::UserEventArgs
class for passing custom data to the event handlers as key/value pairs.
Definition
UserEventArgs.h:18
Heph::UserEventArgs::Remove
void Remove(const std::string &key)
Heph::UserEventArgs::operator[]
void * operator[](const std::string &key) const
Heph::UserEventArgs::Size
size_t Size() const
Heph::UserEventArgs::Add
void Add(const std::string &key, void *pUserArg)
Heph::UserEventArgs::Clear
void Clear()
Heph::UserEventArgs::Exists
bool Exists(const std::string &key) const
Generated by
1.11.0