Hello,

I want to check if a node with a certain name is already on the data
Storage. So far, I retrieve all the nodes on the data storage using:

   mitk::DataStorage::SetOfObjects::ConstPointer allNodes =
this->GetDataStorage()->GetAll();


However, I do not know how to iterate through the set of objects. I have
tried creating a loop with a constant iterator, like:

 for ( mitk::DataStorage::SetOfObjects::ConstIterator it =
allNodes->Begin(); it != allNodes->End(); ++it){


}


I do not know how to iterathe through the different names of the objects
and compare with a string, given the iterator. How could I do it?

Cheers,
Albert.
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to