| 204 | } |
| 205 | |
| 206 | Ref<ViewFactory> ViewNodeTree::getViewFactory(const StringBox& viewClassName) const { |
| 207 | const auto& it = _viewFactories.find(viewClassName); |
| 208 | if (it == _viewFactories.end()) { |
| 209 | return nullptr; |
| 210 | } |
| 211 | |
| 212 | return it->second; |
| 213 | } |
| 214 | |
| 215 | Ref<ViewFactory> ViewNodeTree::getOrCreateViewFactory(const StringBox& viewClassName) { |
| 216 | auto viewFactory = getViewFactory(viewClassName); |