choice: added getIntValue()

This commit is contained in:
Raphael Coeffic
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent dd543c151b
commit 309e672622
+5
View File
@@ -136,6 +136,11 @@ class Choice: public ChoiceBase {
return value;
}
int getIntValue() const
{
return getValue();
}
unsigned getValuesCount() const
{
return getIndexFromValue(vmax + 1);