Set the Output Variable of Meter Name at index. Indexing starts at 0. */
| 161 | |
| 162 | /** Set the Output Variable of Meter Name at index. Indexing starts at 0. */ |
| 163 | bool MeterCustom_Impl::setOutputVariableorMeterName(unsigned index, const std::string& str) { |
| 164 | IdfExtensibleGroup eg = getExtensibleGroup(index); |
| 165 | if (!eg.empty()) { |
| 166 | return eg.setString(OS_Meter_CustomExtensibleFields::OutputVariableorMeterName, str); |
| 167 | } else { |
| 168 | StringVector values(2u); |
| 169 | values[OS_Meter_CustomExtensibleFields::OutputVariableorMeterName] = str; |
| 170 | return !insertExtensibleGroup(index, values).empty(); |
| 171 | } |
| 172 | OS_ASSERT(false); |
| 173 | return false; |
| 174 | } |
| 175 | |
| 176 | } // namespace detail |
| 177 |