| 56 | } |
| 57 | |
| 58 | boost::optional<ModelObject> Connection_Impl::targetObject() const { |
| 59 | if (boost::optional<WorkspaceObject> oCandidate = getTarget(openstudio::OS_ConnectionFields::TargetObject)) { |
| 60 | return oCandidate->optionalCast<ModelObject>(); |
| 61 | } |
| 62 | return boost::none; |
| 63 | } |
| 64 | |
| 65 | boost::optional<unsigned> Connection_Impl::targetObjectPort() const { |
| 66 | return this->getUnsigned(openstudio::OS_ConnectionFields::InletPort).get(); |
no outgoing calls
no test coverage detected