#ifndef CHOICEPARAMETER_H #define CHOICEPARAMETER_H #include "DeviceParameter.h" template class ChoiceParameter : public Parameter { public: typedef vector Choices; ChoiceParameter(string id, Choices& choices, unsigned value, CallBack* callBack): Parameter(id, callBack), _choices(), _value(value) { if (_value > choices.size()) { throw Error(""); } } private: Choices _choices; unsigned _value; }; #endif // CHOICEPARAMETER_H