Audacity  2.3.1
CommandDirectory.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity - A Digital Audio Editor
4  Copyright 1999-2009 Audacity Team
5  License: wxWidgets
6 
7  Dan Horgan
8 
9 ******************************************************************//*******************************************************************/
22 
23 #ifndef __COMMANDDIRECTORY__
24 #define __COMMANDDIRECTORY__
25 
26 #include "../MemoryX.h"
27 #include "CommandMisc.h"
28 #include "CommandType.h"
29 
30 class Command;
32 
34 {
35 private:
36  static std::unique_ptr<CommandDirectory> mInstance;
38 public:
40 
44  OldStyleCommandType *LookUp(const wxString &cmdName) const;
45 
47  void AddCommand(std::unique_ptr<OldStyleCommandType> &&type);
48 
50  static CommandDirectory *Get();
51 
52 private:
54 };
55 
56 #endif /* End of include guard: __COMMANDDIRECTORY__ */
static CommandDirectory * Get()
Get a pointer to the singleton instance.
CommandOutputTargets a mix of three output classes to output progress indication, status messages and...
static std::unique_ptr< CommandDirectory > mInstance
Contains declarations for CommandType class.
Base class for containing data common to all commands of a given type. Also acts as a factory...
Definition: CommandType.h:44
std::map< wxString, std::unique_ptr< OldStyleCommandType > > CommandMap
Definition: CommandMisc.h:36
Allows registration and lookup (by name) of command types.
void AddCommand(std::unique_ptr< OldStyleCommandType > &&type)
Register a type of command with the directory.
OldStyleCommandType * LookUp(const wxString &cmdName) const