EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
echomap::AddChannelMappingNotification Struct Reference

A notification indicating that a new channel mapping should be established. More...

#include <AddChannelMappingNotification.hpp>

Public Member Functions

 AddChannelMappingNotification (id_type project_id, id_type signal_id, id_type sensor_id)
 Create a new AddChannelMappingNotification to indicate that the Signal and Sensor within a Project should be mapped.
void verify_project (const Project *context) const
 Verify that the given Project matches the intended target.

Public Attributes

id_type project_id
 The ID of the Project detaining the Signal and Sensor.
id_type signal_id
 The ID of the participating Signal.
id_type sensor_id
 The ID of the participating Sensor.

Detailed Description

A notification indicating that a new channel mapping should be established.

Definition at line 25 of file AddChannelMappingNotification.hpp.

Constructor & Destructor Documentation

◆ AddChannelMappingNotification()

echomap::AddChannelMappingNotification::AddChannelMappingNotification ( id_type project_id,
id_type signal_id,
id_type sensor_id )

Create a new AddChannelMappingNotification to indicate that the Signal and Sensor within a Project should be mapped.

Parameters
project_idThe ID of the Project detaining the Signal and Sensor.
signal_idThe ID of the participating Signal.
sensor_idThe ID of the participating Sensor.

Definition at line 18 of file AddChannelMappingNotification.cpp.

22 :
26{
27}
id_type project_id
The ID of the Project detaining the Signal and Sensor.
id_type signal_id
The ID of the participating Signal.
id_type sensor_id
The ID of the participating Sensor.

Member Function Documentation

◆ verify_project()

void echomap::AddChannelMappingNotification::verify_project ( const Project * context) const

Verify that the given Project matches the intended target.

Parameters
contextThe context to which the notification will apply.
Exceptions
IgnoredWarningThe notification does not apply to the given context and should be ignored.

Definition at line 29 of file AddChannelMappingNotification.cpp.

32{
33 if (context == nullptr)
34 throw IgnoredWarning("Dropping AddChannelMappingNotification due to empty project.");
35
36 if (context->get_id() != project_id)
37 throw IgnoredWarning(
39 "Dropping AddChannelMappingNotification due to invalid project: requested {}, but have {}.",
41 context->get_id()
42 )
43 );
44}
T format(T... args)

Member Data Documentation

◆ project_id

id_type echomap::AddChannelMappingNotification::project_id

The ID of the Project detaining the Signal and Sensor.

Definition at line 49 of file AddChannelMappingNotification.hpp.

◆ sensor_id

id_type echomap::AddChannelMappingNotification::sensor_id

The ID of the participating Sensor.

Definition at line 51 of file AddChannelMappingNotification.hpp.

◆ signal_id

id_type echomap::AddChannelMappingNotification::signal_id

The ID of the participating Signal.

Definition at line 50 of file AddChannelMappingNotification.hpp.


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