]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOTreeDescriptor.h
new Output format and structure for Gimmick. Based on creaImageIO Output document...
[creaImageIO.git] / src / creaImageIOTreeDescriptor.h
index a7e5b94da131cdc6f04676d475ddc02bf64d0c33..39b4180240bb1372739ba601f1f849e2339aea8d 100644 (file)
@@ -40,10 +40,18 @@ namespace creaImageIO
       { return mLevelDescriptorList[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 mLevelDescriptorList[level].GetAttributeDescriptorList(); }
+      GetAttributeDescriptorList(int level, int type = 0) const
+      { return mLevelDescriptorList[level].GetAttributeDescriptorList(type); }
   
+         
+      /// Copy the AttributeDescriptorList without ID tag
+         void CopyAttributeDescriptorList(int level)
+         {
+                 mLevelDescriptorList[level].CopyAttributeDescriptorList();
+         }
 
       /// Adds a LevelDescriptor at the end of the list
       void Add(const LevelDescriptor&);
@@ -67,6 +75,11 @@ namespace creaImageIO
          //Create Attribute Descriptors from a file
        void createDescriptorfromFile(const std::string &i_file);
 
+
+       /// test if an attribute is present in DescriptionList
+       /// return level's name
+       const std::string Descriptor::isExist(const std::string i_attr);
+
     private:
       LevelDescriptorListType mLevelDescriptorList;
       /// Creates the mandatory level 0 descriptor called "Root"