The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
MHAEvents::emitter_t Class Reference

Class for emitting openMHA events. More...

Public Member Functions

 ~emitter_t ()
 
void operator() ()
 Emit an event without parameter. More...
 
void operator() (const std::string &)
 Emit an event with string parameter. More...
 
void operator() (const std::string &, unsigned int, unsigned int)
 Emit an event with string parameter and two unsigned int parameters. More...
 
void connect (connector_base_t *)
 
void disconnect (connector_base_t *)
 

Private Attributes

std::list< connector_base_t * > connections
 

Detailed Description

Class for emitting openMHA events.

Use the template claas MHAEvents::patchbay_t for connecting to an emitter.

Constructor & Destructor Documentation

◆ ~emitter_t()

MHAEvents::emitter_t::~emitter_t ( )

Member Function Documentation

◆ operator()() [1/3]

void MHAEvents::emitter_t::operator() ( )

Emit an event without parameter.

◆ operator()() [2/3]

void MHAEvents::emitter_t::operator() ( const std::string &  arg)

Emit an event with string parameter.

◆ operator()() [3/3]

void MHAEvents::emitter_t::operator() ( const std::string &  arg,
unsigned int  arg2,
unsigned int  arg3 
)

Emit an event with string parameter and two unsigned int parameters.

◆ connect()

void MHAEvents::emitter_t::connect ( connector_base_t c)

◆ disconnect()

void MHAEvents::emitter_t::disconnect ( connector_base_t c)

Member Data Documentation

◆ connections

std::list<connector_base_t*> MHAEvents::emitter_t::connections
private

The documentation for this class was generated from the following files: