MCPcopy Create free account
hub / github.com/devosoft/avida / LoadEventFile

Method LoadEventFile

avida-core/source/main/cEventList.cc:90–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90bool 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
106void cEventList::Delete(cEventListEntry* entry)

Callers 1

setupMethod · 0.80

Calls 3

WasOpenedMethod · 0.80
GetNumLinesMethod · 0.80
GetLineMethod · 0.45

Tested by

no test coverage detected