HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
class for passing custom data to the event handlers as key/value pairs. More...
#include <UserEventArgs.h>
Public Member Functions | |
void * | operator[] (const std::string &key) const |
size_t | Size () const |
bool | Exists (const std::string &key) const |
void | Add (const std::string &key, void *pUserArg) |
void | Remove (const std::string &key) |
void | Clear () |
class for passing custom data to the event handlers as key/value pairs.
void * Heph::UserEventArgs::operator[] | ( | const std::string & | key | ) | const |
gets the argument with the provided key.
size_t Heph::UserEventArgs::Size | ( | ) | const |
gets the number of arguments stored.
bool Heph::UserEventArgs::Exists | ( | const std::string & | key | ) | const |
checks whether an argument exists with the provided key.
void Heph::UserEventArgs::Add | ( | const std::string & | key, |
void * | pUserArg ) |
adds a new argument with the provided key. If an argument with the key already exists, modifies it.
void Heph::UserEventArgs::Remove | ( | const std::string & | key | ) |
removes the user argument that corresponds to the provided key.
void Heph::UserEventArgs::Clear | ( | ) |
removes all arguments.