| 244 | } |
| 245 | |
| 246 | Result Model::addInput(const std::string& featureName, |
| 247 | FeatureType featureType) { |
| 248 | Specification::ModelDescription* interface = m_spec->mutable_description(); |
| 249 | Specification::FeatureDescription *arg = interface->add_input(); |
| 250 | arg->set_name(featureName); |
| 251 | arg->set_allocated_type(featureType.allocateCopy()); |
| 252 | return Result(); |
| 253 | } |
| 254 | |
| 255 | Result Model::addOutput(const std::string& targetName, |
| 256 | FeatureType targetType) { |