Audacity  3.0.3
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 38 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 }

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

Here is the call graph for this function:

The documentation for this struct was generated from the following files:
Journal::anonymous_namespace{JournalRegistry.cpp}::sDictionary
static Dictionary & sDictionary()
Definition: JournalRegistry.cpp:22
Journal::SetError
void SetError()
Definition: JournalRegistry.cpp:35
name
const TranslatableString name
Definition: Distortion.cpp:98