Audacity 3.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 or later - see LICENSE.txt
6
7 Dan Horgan
8
9******************************************************************//*******************************************************************/
15
16#ifndef __COMMANDMISC__
17#define __COMMANDMISC__
18
19#include <map>
20#include "Validators.h"
21
22class wxVariant;
24
25// Map from parameter name to the value of the parameter
26// to do: use hash
27typedef std::map<wxString, wxVariant> ParamValueMap;
28typedef std::map<wxString, bool> ParamBoolMap;
29
30// Map from parameter name to a suitable Validator
31// to do: use hash
32typedef std::map<wxString, std::unique_ptr<Validator>> ValidatorMap;
33
34// Map from command name to type
35// to do: use hash
36typedef std::map<wxString, std::unique_ptr<OldStyleCommandType>> CommandMap;
37
38#endif /* End of include guard: __COMMANDMISC__ */
std::map< wxString, std::unique_ptr< OldStyleCommandType > > CommandMap
Definition: CommandMisc.h:36
std::map< wxString, std::unique_ptr< Validator > > ValidatorMap
Definition: CommandMisc.h:32
std::map< wxString, wxVariant > ParamValueMap
Definition: CommandMisc.h:23
std::map< wxString, bool > ParamBoolMap
Definition: CommandMisc.h:28
Contains declarations and definitions for Validator, OptionValidator, BoolValidator,...
Base class for containing data common to all commands of a given type. Also acts as a factory.
Definition: CommandType.h:45