Audacity 3.2.0
Public Member Functions | List of all members
Journal::RegisteredCommand Struct Reference

#include <JournalRegistry.h>

Inheritance diagram for Journal::RegisteredCommand:
[legend]

Public Member Functions

 RegisteredCommand (const wxString &name, Dispatcher dispatcher)
 

Detailed Description

Definition at line 40 of file JournalRegistry.h.

Constructor & Destructor Documentation

◆ RegisteredCommand()

Journal::RegisteredCommand::RegisteredCommand ( const wxString &  name,
Dispatcher  dispatcher 
)
explicit

Definition at line 40 of file JournalRegistry.cpp.

42{
43 if ( !sDictionary().insert( { name, dispatcher } ).second ) {
44 wxLogDebug( wxString::Format (
45 wxT("Duplicated registration of Journal command name %s"),
46 name
47 ) );
48 // Cause failure of startup of journalling and graceful exit
49 SetError();
50 }
51}
wxT("CloseDown"))
wxString name
Definition: TagsEditor.cpp:166
void SetError()

References name, Journal::anonymous_namespace{JournalRegistry.cpp}::sDictionary(), Journal::SetError(), and wxT().

Here is the call graph for this function:

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