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

Method ClonePropertyList

Modules/Persistence/src/mitkPersistenceService.cpp:90–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void mitk::PersistenceService::ClonePropertyList(mitk::PropertyList *from, mitk::PropertyList *to) const
91{
92 to->Clear();
93
94 const std::map<std::string, BaseProperty::Pointer> *propMap = from->GetMap();
95 auto propMapIt = propMap->begin();
96 while (propMapIt != propMap->end())
97 {
98 mitk::BaseProperty::Pointer clonedProp = (*propMapIt).second->Clone();
99 to->SetProperty((*propMapIt).first, clonedProp);
100 ++propMapIt;
101 }
102}
103
104bool mitk::PersistenceService::Save(const std::string &fileName, bool appendChanges)
105{

Callers 2

GetDataNodesMethod · 0.95

Calls 5

ClearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
CloneMethod · 0.45
SetPropertyMethod · 0.45

Tested by

no test coverage detected