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
CancelProjectLoadNotification.cpp
Go to the documentation of this file.
1
9
10
#include "
CancelProjectLoadNotification.hpp
"
11
12
#include "
../../errors/IgnoredWarning.hpp
"
13
#include "
../../objects/web/PartialProject.hpp
"
14
15
namespace
echomap
16
{
17
18
CancelProjectLoadNotification::CancelProjectLoadNotification
(
19
const
id_type
project_id
20
) :
21
project_id
(
project_id
)
22
{
23
}
24
25
void
CancelProjectLoadNotification::verify_project
(
26
const
PartialProject
*
const
context
27
)
const
28
{
29
if
(context ==
nullptr
)
30
throw
IgnoredWarning
(
"Dropping CancelProjectLoadNotification due to empty project."
);
31
32
if
(context->get_id() !=
project_id
)
33
throw
IgnoredWarning
(
34
std::format
(
35
"Dropping CancelProjectLoadNotification due to invalid project: requested {}, but have {}."
,
36
project_id
,
37
context->get_id()
38
)
39
);
40
}
41
42
}
// namespace echomap
CancelProjectLoadNotification.hpp
CancelProjectLoadNotification specification.
IgnoredWarning.hpp
IgnoredWarning specification.
PartialProject.hpp
PartialProject specification.
echomap::IgnoredWarning
Exception class to indicate a non-fatal warning indicating an exceptional case of dropping some notif...
Definition
IgnoredWarning.hpp:22
echomap::PartialProject
A Project with semantics for expressing an incomplete set of owned Signal objects.
Definition
PartialProject.hpp:32
std::format
T format(T... args)
echomap
The main EchoMap outermost namespace for all non-exported symbols.
Definition
ActionController.hpp:20
echomap::CancelProjectLoadNotification::project_id
id_type project_id
The ID of the partially loaded Project to cancel.
Definition
CancelProjectLoadNotification.hpp:42
echomap::CancelProjectLoadNotification::verify_project
void verify_project(const PartialProject *context) const
Verify that the given Project matches the intended target.
Definition
CancelProjectLoadNotification.cpp:25
echomap::CancelProjectLoadNotification::CancelProjectLoadNotification
CancelProjectLoadNotification(id_type project_id)
Create a new CancelProjectLoadNotification to indicate that the identified Project should be cancelle...
Definition
CancelProjectLoadNotification.cpp:18
src
notifications
web
CancelProjectLoadNotification.cpp
Generated by
1.17.0