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
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
{
16
class
HEPH_API
UserEventArgs
final
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
}
HephShared.h
HEPH_API
#define HEPH_API
Definition
HephShared.h:132
Heph::UserEventArgs
class for passing custom data to the event handlers as key/value pairs.
Definition
UserEventArgs.h:17
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