MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / setEndUseType

Method setEndUseType

src/model/OutputMeter.cpp:253–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>();

Callers 6

translateSDDMethod · 0.80
consumptionMeterMethod · 0.80
peakDemandMeterMethod · 0.80
TEST_FFunction · 0.80
test_vt_fuelTypeRenamesFunction · 0.80

Calls 1

setStringMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
test_vt_fuelTypeRenamesFunction · 0.64