EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
WorkerResultDespatcher.hpp
Go to the documentation of this file.
1
9
10#ifndef ECHOMAP_WORKERRESULTDESPATCHER_HPP
11#define ECHOMAP_WORKERRESULTDESPATCHER_HPP
12
13#include "ResultChannel.hpp"
15
16namespace echomap
17{
18
27{
28public:
34 void publish(WorkerResult&& result);
35
40
45
50
55
60
61private:
62 void publish_payload(DFTResult&& payload);
63 void publish_payload(DownsampleResult&& payload);
64 void publish_payload(LoadProjectResult&& payload);
65 void publish_payload(LoadSignalFileResult&& payload);
66 void publish_payload(const ErrorResult& payload);
67};
68
69} // namespace echomap
70
71#endif // ECHOMAP_WORKERRESULTDESPATCHER_HPP
ResultChannel specification.
WorkerResult specification.
Denotes a completed DFT computation from a DFTTask.
Definition DFTResult.hpp:27
Denotes a completed for a downsampled Signal produced by a DownsampleTask job.
Indicates that an ITask did not successfully complete.
Denotes a loaded Project completed by a LoadProjectTask job.
Maintains a type-safe multi-observer single-consumer message bus for WorkerResult objects.
Manages channels for WorkerResult message routing.
ResultChannel< const ErrorResult > error_channel
Channel to indicate emission of ErrorResult.
ResultChannel< DownsampleResult > downsample_finished_channel
Channel to indicate completion of DownsampleTask.
ResultChannel< DFTResult > dft_finished_channel
Channel to indicate completion of DFTTask.
ResultChannel< LoadSignalFileResult > load_signal_file_channel
Channel to indicate completion of LoadSignalFileTask.
void publish(WorkerResult &&result)
Publish new WorkerResult message on the suitable channel.
ResultChannel< LoadProjectResult > load_project_finished_channel
Channel to indicate completion of LoadProjectTask.
The main EchoMap outermost namespace for all non-exported symbols.
std::variant< ErrorResult, DFTResult, DownsampleResult, LoadProjectResult, LoadSignalFileResult > WorkerResult
Issued once an ITask has completed its Worker cycle.