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

Method parent

src/model/OutputMeter.cpp:59–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 4

installLocationTypeMethod · 0.95
valueMethod · 0.45
modelMethod · 0.45
buildingMethod · 0.45

Tested by

no test coverage detected