in jobs/source/JobStatus.cpp [55:101]
JobStatus FromString(const Crt::String &str)
{
size_t hash = Crt::HashString(str.c_str());
if (hash == QUEUED_HASH)
{
return JobStatus::QUEUED;
}
if (hash == IN_PROGRESS_HASH)
{
return JobStatus::IN_PROGRESS;
}
if (hash == TIMED_OUT_HASH)
{
return JobStatus::TIMED_OUT;
}
if (hash == FAILED_HASH)
{
return JobStatus::FAILED;
}
if (hash == SUCCEEDED_HASH)
{
return JobStatus::SUCCEEDED;
}
if (hash == CANCELED_HASH)
{
return JobStatus::CANCELED;
}
if (hash == REJECTED_HASH)
{
return JobStatus::REJECTED;
}
if (hash == REMOVED_HASH)
{
return JobStatus::REMOVED;
}
assert(0);
return static_cast<JobStatus>(-1);
}