Refactored enum serialization/deserialization

This commit is contained in:
Daniel Wolf
2016-04-14 22:14:20 +02:00
parent 44d18d00f8
commit 8d2d100376
13 changed files with 246 additions and 263 deletions

View File

@@ -275,7 +275,7 @@ Timeline<Phone> getPhoneAlignment(const vector<s3wid_t>& wordIds, unique_ptr<Aud
// Add entry
centiseconds start(phoneEntry->start);
centiseconds duration(phoneEntry->duration);
Timed<Phone> timedPhone(start, start + duration, parseEnum<Phone>(phoneName));
Timed<Phone> timedPhone(start, start + duration, PhoneConverter::get().parse(phoneName));
result.set(timedPhone);
logging::logTimedEvent("phone", timedPhone);