/********************************************************************** Audacity - A Digital Audio Editor Copyright 1999-2009 Audacity Team License: wxwidgets Dan Horgan ******************************************************************//** \file CommandSignature.h \brief Declaration of CommandSignature class \class CommandSignature \brief Class that maps parameter names to default values and validators *//*******************************************************************/ #ifndef __COMMANDSIGNATURE__ #define __COMMANDSIGNATURE__ #include "CommandMisc.h" class wxString; class wxVariant; class Validator; class CommandSignature { private: ParamValueMap mDefaults; ValidatorMap mValidators; explicit CommandSignature(const CommandSignature &other) { } public: explicit CommandSignature() { } ~CommandSignature(); // Add a parameter to the signature. // name: the parameter name (case-sensitive) // dft: a default value // valid: a suitable validator (caller doesn't need to delete it) void AddParameter(const wxString &name, const wxVariant &dft, Validator *valid); // Methods for accessing the signature ParamValueMap GetDefaults() const; Validator &GetValidator(const wxString ¶mName); }; #endif /* End of include guard: __COMMANDSIGNATURE__ */ // Indentation settings for Vim and Emacs and unique identifier for Arch, a // version control system. Please do not modify past this point. // // Local Variables: // c-basic-offset: 3 // indent-tabs-mode: nil // End: // // vim: et sts=3 sw=3 // arch-tag: TBD