EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
AddChannelMappingNotification.cpp
Go to the documentation of this file.
1
9
11
13#include "../objects/Project.hpp"
14
15namespace echomap
16{
17
28
30 const Project* const context
31) const
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}
45
46} // namespace echomap
AddChannelMappingNotification specification.
IgnoredWarning specification.
Exception class to indicate a non-fatal warning indicating an exceptional case of dropping some notif...
T format(T... args)
The main EchoMap outermost namespace for all non-exported symbols.
void verify_project(const Project *context) const
Verify that the given Project matches the intended target.
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 sh...
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.