]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOTree.h
new Output format and structure for Gimmick. Based on creaImageIO Output document...
[creaImageIO.git] / src / creaImageIOTree.h
index de5b94a062c84b57a4b42f913e71ff6dcfbf44df..c7b65b4014630e27eb38e524b9171cf9426bfd61 100644 (file)
@@ -55,12 +55,27 @@ namespace creaImageIO
       { return GetDescriptor().GetLevelDescriptor(level); }
 
       /// Returns the AttributeDescriptorList of a given level (const ref)
+         /// type = 0 all attributes
+         /// type = 1 without ID and PATIENT_ID
       const LevelDescriptor::AttributeDescriptorListType& 
-      GetAttributeDescriptorList(int level) const
-      { return GetDescriptor().GetAttributeDescriptorList(level); }
+      GetAttributeDescriptorList(int level, int type = 0) const
+      { return GetDescriptor().GetAttributeDescriptorList(level, type); }
   
       virtual void Print() const;
 
+
+         /// Copy descriptor list without ID tag
+         void CopyAttributeDescriptorList(int level)
+         {
+                 GetDescriptor().CopyAttributeDescriptorList(level);
+         }
+         
+         /// Test if this attribute is available in this tree description
+         const std::string isAttributeExist(const std::string i_attr)
+         {
+                 return mDescriptor.isExist(i_attr);
+         }
+
     private:
       Descriptor mDescriptor;