| 286 | */ |
| 287 | template <class DataType> |
| 288 | DataType *GetNamedDerivedObject(const char *name, |
| 289 | const DataNode *sourceNode, |
| 290 | bool onlyDirectDerivations = true) const |
| 291 | { |
| 292 | if (name == nullptr) |
| 293 | return nullptr; |
| 294 | DataNode *n = this->GetNamedDerivedNode(name, sourceNode, onlyDirectDerivations); |
| 295 | if (n == nullptr) |
| 296 | return nullptr; |
| 297 | else |
| 298 | return dynamic_cast<DataType *>(n->GetData()); |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * \brief Generate a unique node name by appending an incrementing number if necessary. |
nothing calls this directly
no test coverage detected