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