| 29 | { } |
| 30 | |
| 31 | Table::Ptr Table::GetByName(const String& name, const String& compat_log_path, const unsigned long& from, const unsigned long& until) |
| 32 | { |
| 33 | if (name == "status") |
| 34 | return new StatusTable(); |
| 35 | else if (name == "contactgroups") |
| 36 | return new ContactGroupsTable(); |
| 37 | else if (name == "contacts") |
| 38 | return new ContactsTable(); |
| 39 | else if (name == "hostgroups") |
| 40 | return new HostGroupsTable(); |
| 41 | else if (name == "hosts") |
| 42 | return new HostsTable(); |
| 43 | else if (name == "hostsbygroup") |
| 44 | return new HostsTable(LivestatusGroupByHostGroup); |
| 45 | else if (name == "servicegroups") |
| 46 | return new ServiceGroupsTable(); |
| 47 | else if (name == "services") |
| 48 | return new ServicesTable(); |
| 49 | else if (name == "servicesbygroup") |
| 50 | return new ServicesTable(LivestatusGroupByServiceGroup); |
| 51 | else if (name == "servicesbyhostgroup") |
| 52 | return new ServicesTable(LivestatusGroupByHostGroup); |
| 53 | else if (name == "commands") |
| 54 | return new CommandsTable(); |
| 55 | else if (name == "comments") |
| 56 | return new CommentsTable(); |
| 57 | else if (name == "downtimes") |
| 58 | return new DowntimesTable(); |
| 59 | else if (name == "timeperiods") |
| 60 | return new TimePeriodsTable(); |
| 61 | else if (name == "log") |
| 62 | return new LogTable(compat_log_path, from, until); |
| 63 | else if (name == "statehist") |
| 64 | return new StateHistTable(compat_log_path, from, until); |
| 65 | else if (name == "endpoints") |
| 66 | return new EndpointsTable(); |
| 67 | else if (name == "zones") |
| 68 | return new ZonesTable(); |
| 69 | |
| 70 | return nullptr; |
| 71 | } |
| 72 | |
| 73 | void Table::AddColumn(const String& name, const Column& column) |
| 74 | { |
nothing calls this directly
no outgoing calls
no test coverage detected