| 9 | using QtNodes::TypeConverter; |
| 10 | |
| 11 | std::unique_ptr<NodeDataModel> |
| 12 | DataModelRegistry:: |
| 13 | create(QString const &modelName) |
| 14 | { |
| 15 | auto it = _registeredItemCreators.find(modelName); |
| 16 | |
| 17 | if (it != _registeredItemCreators.end()) |
| 18 | { |
| 19 | return it->second(); |
| 20 | } |
| 21 | |
| 22 | qDebug() << "DataModelRegistry::create : unable to create [" << |
| 23 | modelName << "]\nCandidates are:\n"; |
| 24 | for(auto& creator_it: _registeredItemCreators) |
| 25 | { |
| 26 | qDebug() << " " << creator_it.first; |
| 27 | } |
| 28 | return nullptr; |
| 29 | } |
| 30 | |
| 31 | |
| 32 | DataModelRegistry::RegisteredModelCreatorsMap const & |
nothing calls this directly
no outgoing calls
no test coverage detected