| 318 | } |
| 319 | |
| 320 | inline bool Engine::processStep(ProcessFlow::Node& step) { |
| 321 | #ifdef DEBUG |
| 322 | if (verboseFlag) |
| 323 | cerr << "process step " << step.v.m_id << endl; |
| 324 | #endif |
| 325 | if (!step.v.hasInputAvailable()) |
| 326 | return false; |
| 327 | #ifdef WITH_TIMERS |
| 328 | Timer* t = Timer::get_timer(step.v.m_id); |
| 329 | t->start(); |
| 330 | bool res = step.v.m_component->process(step.v.m_input, step.v.m_output); |
| 331 | t->stop(); |
| 332 | return res; |
| 333 | #else |
| 334 | return (step.v.m_component->process(step.v.m_input, step.v.m_output)); |
| 335 | #endif |
| 336 | } |
| 337 | |
| 338 | inline bool Engine::flushStep(ProcessFlow::Node& step) { |
| 339 | if (step.v.m_component!=NULL) { |
nothing calls this directly
no test coverage detected