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

Method remove

src/model/Generator.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 Generator_Impl::Generator_Impl(const Generator_Impl& other, Model_Impl* model, bool keepHandles) : ParentObject_Impl(other, model, keepHandles) {}
35
36 std::vector<openstudio::IdfObject> Generator_Impl::remove() {
37 boost::optional<ElectricLoadCenterDistribution> elcd = this->electricLoadCenterDistribution();
38 if (elcd) {
39 elcd->removeGenerator(getObject<Generator>());
40 }
41 return ParentObject_Impl::remove();
42 }
43
44 boost::optional<ElectricLoadCenterDistribution> Generator_Impl::electricLoadCenterDistribution() const {
45 boost::optional<ElectricLoadCenterDistribution> result;

Callers

nothing calls this directly

Calls 2

removeGeneratorMethod · 0.80

Tested by

no test coverage detected