MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / create

Method create

QtNodeEditor/src/DataModelRegistry.cpp:11–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using QtNodes::TypeConverter;
10
11std::unique_ptr<NodeDataModel>
12DataModelRegistry::
13create(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
32DataModelRegistry::RegisteredModelCreatorsMap const &

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected