* \brief Apply a property map to \p targetList. * * Honors `_loadstyle` (Replace clears the list first; Modify merges on top * of whatever is already in the list), resolves `_file` references, and * skips / warns about other `_`-meta keys. */
| 378 | * skips / warns about other `_`-meta keys. |
| 379 | */ |
| 380 | void ApplyPropertyMap(mitk::PropertyList &targetList, |
| 381 | const json &mapJson, |
| 382 | const fs::path &basePath, |
| 383 | const std::string &context) |
| 384 | { |
| 385 | const json resolved = ResolvePropertyMap(mapJson, basePath, context); |
| 386 | const LoadStyle style = ParseLoadStyle(resolved, context); |
| 387 | |
| 388 | if (style == LoadStyle::Replace) |
| 389 | { |
| 390 | targetList.Clear(); |
| 391 | } |
| 392 | |
| 393 | ApplyResolvedPropertyMap(targetList, resolved, context); |
| 394 | } |
| 395 | |
| 396 | /** |
| 397 | * \brief Extract the integer `layer` property value from a node JSON object |
no test coverage detected