| 251 | } |
| 252 | |
| 253 | bool OutputMeter_Impl::setEndUseType(EndUseType type) { |
| 254 | auto object = getObject<ModelObject>(); |
| 255 | |
| 256 | std::string name = OutputMeter::getName(specificEndUse(), type, fuelType(), installLocationType(), specificInstallLocation()); |
| 257 | |
| 258 | bool result = object.setString(OS_Output_MeterFields::Name, name); |
| 259 | if (!result) { |
| 260 | LOG(Error, "Could not set name to '" << name << "'"); |
| 261 | } |
| 262 | |
| 263 | return result; |
| 264 | } |
| 265 | |
| 266 | bool OutputMeter_Impl::resetEndUseType() { |
| 267 | auto object = getObject<ModelObject>(); |