21 #ifndef otbWrapperChoiceParameter_h
22 #define otbWrapperChoiceParameter_h
56 void AddChoice(std::string choicekey, std::string choiceName);
59 std::string GetChoiceKey(
int i)
const;
62 std::vector<std::string> GetChoiceKeys();
65 std::string GetChoiceName(
int i);
68 std::vector<std::string> GetChoiceNames();
77 std::vector<std::string> GetParametersKeys();
80 unsigned int GetNbChoices(
void);
83 virtual void SetValue(
unsigned int v);
86 virtual void SetValue(std::string choiceKey);
89 virtual unsigned int GetValue()
const;
91 bool HasValue()
const override;
92 void ClearValue()
override;
96 int ToInt()
const override;
97 void FromInt(
int value)
override;
99 std::string ToString()
const override;
100 void FromString(
const std::string& value)
override;