]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOTreeLevelDescriptor.cpp
*** empty log message ***
[creaImageIO.git] / src / creaImageIOTreeLevelDescriptor.cpp
index 46eb41a568937d0af9322b673295a2b3d00ccbd7..531b7151ef97228bcb20b45a77dacd4f934a31a1 100644 (file)
@@ -25,7 +25,30 @@ namespace creaImageIO
        }
     }
 
-       
+       // Copy the descriptor List without ID and PATIENT_ID attributes
+       void LevelDescriptor::CopyAttributeDescriptorList() 
+      { 
+                 mAttributeDescriptorListWID = mAttributeDescriptorList; 
+                 for(AttributeDescriptorListType::iterator it = mAttributeDescriptorListWID.begin();
+                         it != mAttributeDescriptorListWID.end(); it++)
+                 {
+                         if((*it).GetKey() == "ID")
+                         {
+                                       mAttributeDescriptorListWID.erase(it);
+                                       break;
+                         }
+                 }
+
+                 for(AttributeDescriptorListType::iterator it = mAttributeDescriptorListWID.begin();
+                         it != mAttributeDescriptorListWID.end(); it++)
+                 {
+                         if((*it).GetKey() == "PARENT_ID")
+                         {
+                                       mAttributeDescriptorListWID.erase(it);
+                                       break;
+                         }
+                 }
+        }
 
   }
 }