Miscellany
public text v1 · immutableint curr_machine_id = 0;
map<int,int>::iterator iter = m_machines->begin();
while(iter != m_machines->end() && (*iter).first != o->MachName())
{
++iter;
}
if ((*iter).first == o->MachName()) {
curr_machine_id = (*iter).second;
} else {
throw logic_error("jsp1::recalc2 machine not found!");
}