|
EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
|
Manages channels for WorkerResult message routing. More...
#include <WorkerResultDespatcher.hpp>
Public Member Functions | |
| void | publish (WorkerResult &&result) |
| Publish new WorkerResult message on the suitable channel. | |
Public Attributes | |
| ResultChannel< DFTResult > | dft_finished_channel |
| Channel to indicate completion of DFTTask. | |
| ResultChannel< DownsampleResult > | downsample_finished_channel |
| Channel to indicate completion of DownsampleTask. | |
| ResultChannel< LoadProjectResult > | load_project_finished_channel |
| Channel to indicate completion of LoadProjectTask. | |
| ResultChannel< LoadSignalFileResult > | load_signal_file_channel |
| Channel to indicate completion of LoadSignalFileTask. | |
| ResultChannel< const ErrorResult > | error_channel |
| Channel to indicate emission of ErrorResult. | |
Private Member Functions | |
| void | publish_payload (DFTResult &&payload) |
| void | publish_payload (DownsampleResult &&payload) |
| void | publish_payload (LoadProjectResult &&payload) |
| void | publish_payload (LoadSignalFileResult &&payload) |
| void | publish_payload (const ErrorResult &payload) |
Manages channels for WorkerResult message routing.
A receiver of WorkerResult objects publishes messages through the WorkerResultDespatcher, which routes it to the correct ResultChannel. The ResultChannel forwards the WorkerResult to all subscribers and transfers ownership of the object to the nominated consumer.
Definition at line 26 of file WorkerResultDespatcher.hpp.
| void echomap::WorkerResultDespatcher::publish | ( | WorkerResult && | result | ) |
Publish new WorkerResult message on the suitable channel.
| result | The message to publish. |
Definition at line 20 of file WorkerResultDespatcher.cpp.
|
private |
Definition at line 60 of file WorkerResultDespatcher.cpp.
|
private |
Definition at line 32 of file WorkerResultDespatcher.cpp.
|
private |
Definition at line 39 of file WorkerResultDespatcher.cpp.
|
private |
Definition at line 46 of file WorkerResultDespatcher.cpp.
|
private |
Definition at line 53 of file WorkerResultDespatcher.cpp.
| ResultChannel<DFTResult> echomap::WorkerResultDespatcher::dft_finished_channel |
Channel to indicate completion of DFTTask.
Definition at line 39 of file WorkerResultDespatcher.hpp.
| ResultChannel<DownsampleResult> echomap::WorkerResultDespatcher::downsample_finished_channel |
Channel to indicate completion of DownsampleTask.
Definition at line 44 of file WorkerResultDespatcher.hpp.
| ResultChannel<const ErrorResult> echomap::WorkerResultDespatcher::error_channel |
Channel to indicate emission of ErrorResult.
Definition at line 59 of file WorkerResultDespatcher.hpp.
| ResultChannel<LoadProjectResult> echomap::WorkerResultDespatcher::load_project_finished_channel |
Channel to indicate completion of LoadProjectTask.
Definition at line 49 of file WorkerResultDespatcher.hpp.
| ResultChannel<LoadSignalFileResult> echomap::WorkerResultDespatcher::load_signal_file_channel |
Channel to indicate completion of LoadSignalFileTask.
Definition at line 54 of file WorkerResultDespatcher.hpp.