| 57 | } |
| 58 | |
| 59 | boost::optional<ParentObject> OutputMeter_Impl::parent() const { |
| 60 | boost::optional<ParentObject> result; |
| 61 | boost::optional<InstallLocationType> installLocationType = this->installLocationType(); |
| 62 | if (installLocationType) { |
| 63 | switch (installLocationType->value()) { |
| 64 | case InstallLocationType::Facility: |
| 65 | result = this->model().getOptionalUniqueModelObject<Facility>(); |
| 66 | break; |
| 67 | case InstallLocationType::Building: |
| 68 | result = this->model().building(); |
| 69 | break; |
| 70 | default:; |
| 71 | } |
| 72 | } |
| 73 | return result; |
| 74 | } |
| 75 | |
| 76 | std::vector<openstudio::IdfObject> OutputMeter_Impl::remove() { |
| 77 | //Note: Cant do /object-list implementation for EMS Sensor since Auto Naming of Objects causes issues. |
nothing calls this directly
no test coverage detected