EchoMap
2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Toggle main menu visibility
Loading...
Searching...
No Matches
AddChannelMappingNotification.cpp
Go to the documentation of this file.
1
9
10
#include "
AddChannelMappingNotification.hpp
"
11
12
#include "
../errors/IgnoredWarning.hpp
"
13
#include "../objects/Project.hpp"
14
15
namespace
echomap
16
{
17
18
AddChannelMappingNotification::AddChannelMappingNotification
(
19
const
id_type
project_id
,
20
const
id_type
signal_id
,
21
const
id_type
sensor_id
22
) :
23
project_id
(
project_id
),
24
signal_id
(
signal_id
),
25
sensor_id
(
sensor_id
)
26
{
27
}
28
29
void
AddChannelMappingNotification::verify_project
(
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
(
38
std::format
(
39
"Dropping AddChannelMappingNotification due to invalid project: requested {}, but have {}."
,
40
project_id
,
41
context->get_id()
42
)
43
);
44
}
45
46
}
// namespace echomap
AddChannelMappingNotification.hpp
AddChannelMappingNotification specification.
IgnoredWarning.hpp
IgnoredWarning specification.
echomap::IgnoredWarning
Exception class to indicate a non-fatal warning indicating an exceptional case of dropping some notif...
Definition
IgnoredWarning.hpp:22
echomap::Project
Definition
Project.hpp:26
std::format
T format(T... args)
echomap
The main EchoMap outermost namespace for all non-exported symbols.
Definition
ActionController.hpp:20
echomap::AddChannelMappingNotification::verify_project
void verify_project(const Project *context) const
Verify that the given Project matches the intended target.
Definition
AddChannelMappingNotification.cpp:29
echomap::AddChannelMappingNotification::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 sh...
Definition
AddChannelMappingNotification.cpp:18
echomap::AddChannelMappingNotification::project_id
id_type project_id
The ID of the Project detaining the Signal and Sensor.
Definition
AddChannelMappingNotification.hpp:49
echomap::AddChannelMappingNotification::signal_id
id_type signal_id
The ID of the participating Signal.
Definition
AddChannelMappingNotification.hpp:50
echomap::AddChannelMappingNotification::sensor_id
id_type sensor_id
The ID of the participating Sensor.
Definition
AddChannelMappingNotification.hpp:51
src
notifications
AddChannelMappingNotification.cpp
Generated by
1.17.0