]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOTreeLevelDescriptor.h
new Output format and structure for Gimmick. Based on creaImageIO Output document...
[creaImageIO.git] / src / creaImageIOTreeLevelDescriptor.h
index f9470346f62a4dd2bfc65b009a4cc021de528528..be2a3d81ee955897b1278e849d9a501e4fd8ef22 100644 (file)
@@ -36,8 +36,17 @@ namespace creaImageIO
       typedef std::vector<AttributeDescriptor> AttributeDescriptorListType;
  
       /// Returns the list of AttributeDescriptor (const)
-      const AttributeDescriptorListType& GetAttributeDescriptorList() const 
-      { return mAttributeDescriptorList; }
+           /// type = 0 all attributes
+         /// type = 1 without ID and PATIENT_ID
+      const AttributeDescriptorListType& GetAttributeDescriptorList(int type = 0) const 
+      {        if (type == 0)
+                 return mAttributeDescriptorList; 
+               else 
+                       return mAttributeDescriptorListWID;
+         }
+
+         /// Copy the original list of attributes
+         void CopyAttributeDescriptorList();
 
       /// \return The list of attributes with flag IDENTIFIER set
       const std::vector<std::string>& GetIdentifierList() const 
@@ -48,7 +57,10 @@ namespace creaImageIO
 
     private:
       std::string mName;
+         // Attributes List for this level
       AttributeDescriptorListType mAttributeDescriptorList;
+         // Attributes List for this level without ID and PARENT_ID attributes
+         AttributeDescriptorListType mAttributeDescriptorListWID;
       /// The list of attributes with flag IDENTIFIER set
       std::vector<std::string> mIdentifierList;
       /// The list of attributes with flag LABEL set