EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
ModifySensorPositionNotification.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* context
31) const
32{
33 if (context == nullptr)
34 throw IgnoredWarning("Dropping ModifySensorPositionNotification due to empty project.");
35
36 if (context->get_id() != project_id)
37 throw IgnoredWarning(
39 "Dropping ModifySensorPositionNotification due to invalid project: requested {}, but have {}.",
41 context->get_id()
42 )
43 );
44}
45
46} // namespace echomap
IgnoredWarning specification.
ModifySensorPositionNotification 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.
ModifySensorPositionNotification(id_type project_id, id_type sensor_id, const Position &position)
Create a new ModifySensorPositionNotification to indicate that a Sensor has moved.
id_type project_id
The ID of the Project which owns the updated Sensor.
Position position
The new Position of the referenced Sensor.
void verify_project(const Project *context) const
Verify that the given Project matches the intended target.
A generic 3D position structure.
Definition Position.hpp:20