| 135 | } |
| 136 | |
| 137 | Engine::ProcessingStep* Engine::getInputNode(const std::string& id) |
| 138 | { |
| 139 | ProcessFlow::Node* n = m_graph->getNode(id); |
| 140 | if (n==NULL) { |
| 141 | cerr << "WARNING: node '" << id << "' does not exist !" << endl; |
| 142 | return NULL; |
| 143 | } |
| 144 | if (n->v.m_id!="Input") |
| 145 | { |
| 146 | cerr << "WARNING: node '" << id << "' is not an input node !" << endl; |
| 147 | return NULL; |
| 148 | } |
| 149 | assert(n->v.m_input.size()==0); |
| 150 | assert(n->v.m_output.size()==1); |
| 151 | return &(n->v); |
| 152 | } |
| 153 | |
| 154 | Engine::ProcessingStep* Engine::getOutputNode(const std::string& id) |
| 155 | { |