| 152 | } |
| 153 | |
| 154 | Engine::ProcessingStep* Engine::getOutputNode(const std::string& id) |
| 155 | { |
| 156 | ProcessFlow::Node* n = m_graph->getNode(id); |
| 157 | if (n==NULL) |
| 158 | return NULL; |
| 159 | if (n->v.m_id!="Output") |
| 160 | { |
| 161 | cerr << "WARNING: node '" << id << "' is not an output node !" << endl; |
| 162 | return NULL; |
| 163 | } |
| 164 | assert(n->v.m_input.size()==1); |
| 165 | assert(n->v.m_output.size()==0); |
| 166 | return &(n->v); |
| 167 | } |
| 168 | |
| 169 | OutputBuffer* Engine::getInput(const std::string& id) |
| 170 | { |