mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-09 02:25:24 +02:00
bunch of bugfix and new features
This commit is contained in:
@ -6,6 +6,8 @@
|
||||
template <class K, class T>
|
||||
class OptionList {
|
||||
public:
|
||||
OptionList() { updateText(); }
|
||||
|
||||
void define(K key, std::string name, T value) {
|
||||
if (keyExists(key)) { throw std::runtime_error("Key already exists"); }
|
||||
if (nameExists(name)) { throw std::runtime_error("Name already exists"); }
|
||||
|
Reference in New Issue
Block a user