Audacity  3.2.0
Registrar.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  Registrar.h
6 
7  James Crook
8 
9 *******************************************************************/
20 #ifndef __AUDACITY_REGISTRAR__
21 #define __AUDACITY_REGISTRAR__
22 
23 
24 
25 #include <memory>
26 
27 class AudacityCommand;
28 class LoadableModule;
29 class ComponentInterface;
30 class Effect;
31 
32 class REGISTRIES_API Registrar
33 {
34 public:
36  bWantsModules = false;
37  bWantsCommands= false;
38  bWantsCommandTypes= false;
39  bWantsEffects= false;
40  }
45  virtual void AddCommandType(std::unique_ptr<ComponentInterface> && WXUNUSED(comDef) ){;};
46  virtual void AddCommand(std::unique_ptr<AudacityCommand> && WXUNUSED(command) ){;};
47  virtual void AddModule(std::unique_ptr<LoadableModule> && WXUNUSED(module) ){;};
48  virtual void AddEffect(std::unique_ptr<Effect> && WXUNUSED(effect) ){;};
49 };
50 
51 #endif
Registrar::Registrar
Registrar()
Definition: Registrar.h:35
Effect
An Effect object is at once host and client: it is self-hosting.
Definition: Effect.h:77
Registrar::AddCommandType
virtual void AddCommandType(std::unique_ptr< ComponentInterface > &&WXUNUSED(comDef))
Definition: Registrar.h:45
Registrar::AddCommand
virtual void AddCommand(std::unique_ptr< AudacityCommand > &&WXUNUSED(command))
Definition: Registrar.h:46
Registrar::bWantsModules
bool bWantsModules
Definition: Registrar.h:41
Registrar::bWantsEffects
bool bWantsEffects
Definition: Registrar.h:44
Registrar
Base class for registration callback. Audacity will call providers RegisterNameOfThing() functions wi...
Definition: Registrar.h:33
Registrar::bWantsCommandTypes
bool bWantsCommandTypes
Definition: Registrar.h:43
AudacityCommand
Base class for command in Audacity.
Definition: AudacityCommand.h:40
Registrar::bWantsCommands
bool bWantsCommands
Definition: Registrar.h:42
Registrar::AddModule
virtual void AddModule(std::unique_ptr< LoadableModule > &&WXUNUSED(module))
Definition: Registrar.h:47
ComponentInterface
ComponentInterface provides name / vendor / version functions to identify plugins....
Definition: ComponentInterface.h:62
Registrar::AddEffect
virtual void AddEffect(std::unique_ptr< Effect > &&WXUNUSED(effect))
Definition: Registrar.h:48