| 61 | } |
| 62 | |
| 63 | void Comment::OnAllConfigLoaded() |
| 64 | { |
| 65 | ConfigObject::OnAllConfigLoaded(); |
| 66 | |
| 67 | Host::Ptr host = Host::GetByName(GetHostName()); |
| 68 | |
| 69 | if (GetServiceName().IsEmpty() || ! host) |
| 70 | m_Checkable = host; |
| 71 | else |
| 72 | m_Checkable = host->GetServiceByShortName(GetServiceName()); |
| 73 | |
| 74 | if (!m_Checkable) |
| 75 | BOOST_THROW_EXCEPTION(ScriptError("Comment '" + GetName() + "' references a host/service which doesn't exist.", GetDebugInfo())); |
| 76 | } |
| 77 | |
| 78 | void Comment::Start(bool runtimeCreated) |
| 79 | { |
nothing calls this directly
no test coverage detected