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
CompleteProjectLoadNotification.cpp
Go to the documentation of this file.
1
9
10
#if defined(__EMSCRIPTEN__) || defined(__DOXYGEN__)
11
12
#include "
CompleteProjectLoadNotification.hpp
"
13
14
#include "
../../errors/IgnoredWarning.hpp
"
15
#include "
../../objects/web/PartialProject.hpp
"
16
17
namespace
echomap
18
{
19
20
CompleteProjectLoadNotification::CompleteProjectLoadNotification
(
21
const
id_type
project_id
22
) :
23
project_id
(
project_id
)
24
{
25
}
26
27
void
CompleteProjectLoadNotification::verify_project
(
28
const
PartialProject
*
const
context
29
)
const
30
{
31
if
(context ==
nullptr
)
32
throw
IgnoredWarning
(
"Dropping CompleteProjectLoadNotification due to empty project."
);
33
34
if
(context->get_id() !=
project_id
)
35
throw
IgnoredWarning
(
36
std::format
(
37
"Dropping CompleteProjectLoadNotification due to invalid project: requested {}, but have {}."
,
38
project_id
,
39
context->get_id()
40
)
41
);
42
}
43
44
}
// namespace echomap
45
46
#endif
// __EMSCRIPTEN__
CompleteProjectLoadNotification.hpp
CompleteProjectLoadNotification 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::CompleteProjectLoadNotification::CompleteProjectLoadNotification
CompleteProjectLoadNotification(id_type project_id)
Create a CompleteProjectLoadNotification to indicate that the referenced Project is ready to be loade...
Definition
CompleteProjectLoadNotification.cpp:20
echomap::CompleteProjectLoadNotification::verify_project
void verify_project(const PartialProject *context) const
Verify that the given Project matches the intended target.
Definition
CompleteProjectLoadNotification.cpp:27
echomap::CompleteProjectLoadNotification::project_id
id_type project_id
The ID of the Project to be loaded.
Definition
CompleteProjectLoadNotification.hpp:47
src
notifications
web
CompleteProjectLoadNotification.cpp
Generated by
1.17.0