MCPcopy Create free account
hub / github.com/MITK/MITK / DeserializeProperties

Function DeserializeProperties

Modules/SceneSerialization/src/mitkSceneReaderV1.cpp:57–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
78bool mitk::SceneReaderV1::LoadScene(tinyxml2::XMLDocument &document, const std::string &workingDirectory, DataStorage *storage)

Callers 1

LoadSceneMethod · 0.85

Calls 4

NewFunction · 0.50
emptyMethod · 0.45
DeserializeMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected