gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

parameterregion.h (673B)


      1 #pragma once
      2 
      3 #include <string>
      4 #include <unordered_map>
      5 
      6 #include "parameterdescription.h"
      7 
      8 namespace pluginLib
      9 {
     10 	class ParameterRegion
     11 	{
     12 	public:
     13 		ParameterRegion(std::string _id, std::string _name, std::unordered_map<std::string, const Description*>&& _params);
     14 
     15 		const auto& getId() const { return m_id; }
     16 		const auto& getName() const { return m_name; }
     17 		const auto& getParams() const { return m_params; }
     18 
     19 		bool containsParameter(const std::string& _name) const
     20 		{
     21 			return m_params.find(_name) != m_params.end();
     22 		}
     23 
     24 	private:
     25 		const std::string m_id;
     26 		const std::string m_name;
     27 		const std::unordered_map<std::string, const Description*> m_params;
     28 	};
     29 }