Audacity  2.2.0
CommandMisc.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity - A Digital Audio Editor
4  Copyright 1999-2009 Audacity Team
5  License: GPL v2 - see LICENSE.txt
6 
7  Dan Horgan
8 
9 ******************************************************************//*******************************************************************/
15 
16 #ifndef __COMMANDMISC__
17 #define __COMMANDMISC__
18 
19 #include <map>
20 #include <wx/string.h>
21 #include <wx/variant.h>
22 #include "Validators.h"
24 
25 // Map from parameter name to the value of the parameter
26 // to do: use hash
27 typedef std::map<wxString, wxVariant> ParamValueMap;
28 
29 // Map from parameter name to a suitable Validator
30 // to do: use hash
31 typedef std::map<wxString, movable_ptr<Validator>> ValidatorMap;
32 
33 // Map from command name to type
34 // to do: use hash
35 typedef std::map<wxString, movable_ptr<CommandType>> CommandMap;
36 
37 #endif /* End of include guard: __COMMANDMISC__ */
std::map< wxString, wxVariant > ParamValueMap
Definition: CommandMisc.h:23
Contains declarations and definitions for Validator, OptionValidator, BoolValidator, DoubleValidator, RangeValidator, IntValidator and AndValidator classes.
Base class for containing data common to all commands of a given type. Also acts as a factory...
Definition: CommandType.h:29
std::map< wxString, movable_ptr< Validator > > ValidatorMap
Definition: CommandMisc.h:31
std::map< wxString, movable_ptr< CommandType > > CommandMap
Definition: CommandMisc.h:35