| 88 | } |
| 89 | |
| 90 | bool cEventList::LoadEventFile(const cString& filename, const cString& working_dir, Feedback& feedback, const Apto::Map<Apto::String, Apto::String>* defs) |
| 91 | { |
| 92 | cInitFile event_file(filename, working_dir, NULL, defs); |
| 93 | |
| 94 | if (!event_file.WasOpened()) return false; |
| 95 | |
| 96 | // Loop through the line_list and change the lines to events. |
| 97 | for (int line_id = 0; line_id < event_file.GetNumLines(); line_id++) { |
| 98 | if (!AddEventFileFormat(event_file.GetLine(line_id), feedback)) |
| 99 | return false; |
| 100 | } |
| 101 | |
| 102 | return true; |
| 103 | } |
| 104 | |
| 105 | |
| 106 | void cEventList::Delete(cEventListEntry* entry) |
no test coverage detected