| 292 | return GetPersistencePropertyName(); |
| 293 | } |
| 294 | mitk::DataStorage::SetOfObjects::Pointer mitk::PersistenceService::GetDataNodes(mitk::DataStorage *ds) |
| 295 | { |
| 296 | this->Initialize(); |
| 297 | DataStorage::SetOfObjects::Pointer set = DataStorage::SetOfObjects::New(); |
| 298 | |
| 299 | std::map<std::string, mitk::PropertyList::Pointer>::const_iterator it = m_PropertyLists.begin(); |
| 300 | while (it != m_PropertyLists.end()) |
| 301 | { |
| 302 | mitk::DataNode::Pointer node = mitk::DataNode::New(); |
| 303 | const std::string &name = (*it).first; |
| 304 | |
| 305 | this->ClonePropertyList((*it).second, node->GetPropertyList()); |
| 306 | |
| 307 | node->SetName(name); |
| 308 | MITK_DEBUG << "Persistence Property Name: " << GetPersistencePropertyName().c_str(); |
| 309 | // node->SetBoolProperty( PERSISTENCE_PROPERTY_NAME.c_str() , true ); //see bug 17729 |
| 310 | node->SetBoolProperty(GetPersistencePropertyName().c_str(), true); |
| 311 | |
| 312 | ds->Add(node); |
| 313 | set->push_back(node); |
| 314 | ++it; |
| 315 | } |
| 316 | |
| 317 | return set; |
| 318 | } |
| 319 | |
| 320 | bool mitk::PersistenceService::RestorePropertyListsFromPersistentDataNodes(const DataStorage *storage) |
| 321 | { |
no test coverage detected