Remove the (Key, Var) group at given index
| 86 | |
| 87 | // Remove the (Key, Var) group at given index |
| 88 | bool MeterCustom_Impl::removeKeyVarGroup(unsigned groupIndex) { |
| 89 | bool ok = false; |
| 90 | unsigned numberofDataPairs = numExtensibleGroups(); |
| 91 | // Only delete if the index is smaller than the number of groups |
| 92 | if (groupIndex < numberofDataPairs) { |
| 93 | getObject<ModelObject>().eraseExtensibleGroup(groupIndex); |
| 94 | ok = true; |
| 95 | } |
| 96 | |
| 97 | return ok; |
| 98 | } |
| 99 | |
| 100 | // Remove all the (Key, Var) groups |
| 101 | void MeterCustom_Impl::removeAllKeyVarGroups() { |