| 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; |
nothing calls this directly
no test coverage detected