| 88 | } |
| 89 | |
| 90 | Service::Ptr Service::GetByNamePair(const String& hostName, const String& serviceName) |
| 91 | { |
| 92 | if (!hostName.IsEmpty()) { |
| 93 | Host::Ptr host = Host::GetByName(hostName); |
| 94 | |
| 95 | if (!host) |
| 96 | return nullptr; |
| 97 | |
| 98 | return host->GetServiceByShortName(serviceName); |
| 99 | } else { |
| 100 | return Service::GetByName(serviceName); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | Host::Ptr Service::GetHost() const |
| 105 | { |
nothing calls this directly
no test coverage detected