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
RegisterVFSMappingNotification.cpp
Go to the documentation of this file.
1
9
10
#if defined(__EMSCRIPTEN__) || defined(__DOXYGEN__)
11
12
#include "
RegisterVFSMappingNotification.hpp
"
13
14
#include "
../../errors/IgnoredWarning.hpp
"
15
#include "
../../objects/web/PartialProject.hpp
"
16
17
namespace
echomap
18
{
19
20
RegisterVFSMappingNotification::RegisterVFSMappingNotification
(
21
const
id_type
project_id
,
22
std::filesystem::path
external
,
23
std::filesystem::path
internal
24
) :
25
project_id
(
project_id
),
26
external
(
std
::move(
external
)),
27
internal
(
std
::move(
internal
))
28
{
29
}
30
31
void
RegisterVFSMappingNotification::verify_project
(
32
const
PartialProject
*
const
context
33
)
const
34
{
35
if
(context ==
nullptr
)
36
throw
IgnoredWarning
(
"Dropping RegisterVFSMappingNotification due to empty project."
);
37
38
if
(context->get_id() !=
project_id
)
39
throw
IgnoredWarning
(
40
std::format
(
41
"Dropping RegisterVFSMappingNotification due to invalid project: requested {}, but have {}."
,
42
project_id
,
43
context->get_id()
44
)
45
);
46
}
47
48
}
// namespace echomap
49
50
#endif
// __EMSCRIPTEN__
IgnoredWarning.hpp
IgnoredWarning specification.
PartialProject.hpp
PartialProject specification.
RegisterVFSMappingNotification.hpp
RegisterVFSMappingNotification 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
std
STL namespace.
std::filesystem::path
echomap::RegisterVFSMappingNotification::RegisterVFSMappingNotification
RegisterVFSMappingNotification(id_type project_id, std::filesystem::path external, std::filesystem::path internal)
Creates a new RegisterVFSMappingNotification to express a mapping between the external and internal p...
Definition
RegisterVFSMappingNotification.cpp:20
echomap::RegisterVFSMappingNotification::verify_project
void verify_project(const PartialProject *context) const
Verify that the given Project matches the intended target.
Definition
RegisterVFSMappingNotification.cpp:31
echomap::RegisterVFSMappingNotification::external
std::filesystem::path external
The path on the external file system.
Definition
RegisterVFSMappingNotification.hpp:56
echomap::RegisterVFSMappingNotification::project_id
id_type project_id
The ID of the Project to which the mapping relates.
Definition
RegisterVFSMappingNotification.hpp:55
echomap::RegisterVFSMappingNotification::internal
std::filesystem::path internal
The path on the internal file system.
Definition
RegisterVFSMappingNotification.hpp:57
src
notifications
web
RegisterVFSMappingNotification.cpp
Generated by
1.17.0