| 55 | } |
| 56 | |
| 57 | mitk::PropertyList::Pointer DeserializeProperties(const tinyxml2::XMLElement *propertiesElement, const fs::path& basePath) |
| 58 | { |
| 59 | if (propertiesElement == nullptr) |
| 60 | return nullptr; |
| 61 | |
| 62 | fs::path path(propertiesElement->Attribute("file")); |
| 63 | |
| 64 | if (path.empty()) |
| 65 | return nullptr; |
| 66 | |
| 67 | if (!basePath.empty()) |
| 68 | path = basePath / path; |
| 69 | |
| 70 | auto deserializer = mitk::PropertyListDeserializer::New(); |
| 71 | deserializer->SetFilename(path.string()); |
| 72 | deserializer->Deserialize(); |
| 73 | |
| 74 | return deserializer->GetOutput(); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | bool mitk::SceneReaderV1::LoadScene(tinyxml2::XMLDocument &document, const std::string &workingDirectory, DataStorage *storage) |
no test coverage detected