mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-09 18:45:22 +02:00
More work on the new param system
This commit is contained in:
@ -48,7 +48,6 @@ public:
|
||||
}
|
||||
|
||||
CLIArg(char al, std::string desc, std::string s) {
|
||||
printf("String const called\n");
|
||||
alias = al;
|
||||
description = desc;
|
||||
type = CLI_ARG_TYPE_STRING;
|
||||
@ -56,7 +55,6 @@ public:
|
||||
}
|
||||
|
||||
CLIArg(char al, std::string desc, const char* s) {
|
||||
printf("String const called\n");
|
||||
alias = al;
|
||||
description = desc;
|
||||
type = CLI_ARG_TYPE_STRING;
|
||||
@ -108,6 +106,8 @@ public:
|
||||
aliases[shortName] = name;
|
||||
}
|
||||
|
||||
void defineAll();
|
||||
|
||||
template<class T>
|
||||
void define(char shortName, std::string name, std::string desc, T defValue) {
|
||||
args[name] = CLIArg(shortName, desc, defValue);
|
||||
|
Reference in New Issue
Block a user