| 45 | } |
| 46 | |
| 47 | boost::optional<ModelObject> Connection_Impl::sourceObject() const { |
| 48 | if (boost::optional<WorkspaceObject> oCandidate = getTarget(openstudio::OS_ConnectionFields::SourceObject)) { |
| 49 | return oCandidate->optionalCast<ModelObject>(); |
| 50 | } |
| 51 | return boost::none; |
| 52 | } |
| 53 | |
| 54 | boost::optional<unsigned> Connection_Impl::sourceObjectPort() const { |
| 55 | return this->getUnsigned(openstudio::OS_ConnectionFields::OutletPort); |
no outgoing calls
no test coverage detected