EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
echomap::CompleteProjectLoadNotification Struct Reference

A notification indicating that a pending Project is ready to be loaded. More...

#include <CompleteProjectLoadNotification.hpp>

Public Member Functions

 CompleteProjectLoadNotification (id_type project_id)
 Create a CompleteProjectLoadNotification to indicate that the referenced Project is ready to be loaded.
void verify_project (const PartialProject *context) const
 Verify that the given Project matches the intended target.

Public Attributes

id_type project_id
 The ID of the Project to be loaded.

Detailed Description

A notification indicating that a pending Project is ready to be loaded.

Produced by the IndividualUploadModal once the user has prepared a sufficient set of VFS mappings, such that all externally sourced files are associated with uploads in the WebAssembly VFS.

Definition at line 30 of file CompleteProjectLoadNotification.hpp.

Constructor & Destructor Documentation

◆ CompleteProjectLoadNotification()

echomap::CompleteProjectLoadNotification::CompleteProjectLoadNotification ( id_type project_id)
explicit

Create a CompleteProjectLoadNotification to indicate that the referenced Project is ready to be loaded.

Parameters
project_idThe ID of the Project to be loaded.

Definition at line 20 of file CompleteProjectLoadNotification.cpp.

22 :
24{
25}
id_type project_id
The ID of the Project to be loaded.

Member Function Documentation

◆ verify_project()

void echomap::CompleteProjectLoadNotification::verify_project ( const PartialProject * context) const

Verify that the given Project matches the intended target.

Parameters
contextThe context to which the notification will apply.
Exceptions
IgnoredWarningThe notification does not apply to the given context and should be ignored.

Definition at line 27 of file CompleteProjectLoadNotification.cpp.

30{
31 if (context == nullptr)
32 throw IgnoredWarning("Dropping CompleteProjectLoadNotification due to empty project.");
33
34 if (context->get_id() != project_id)
35 throw IgnoredWarning(
37 "Dropping CompleteProjectLoadNotification due to invalid project: requested {}, but have {}.",
39 context->get_id()
40 )
41 );
42}
T format(T... args)

Member Data Documentation

◆ project_id

id_type echomap::CompleteProjectLoadNotification::project_id

The ID of the Project to be loaded.

Definition at line 47 of file CompleteProjectLoadNotification.hpp.


The documentation for this struct was generated from the following files: