]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOTreeLevelDescriptor.h
*** empty log message ***
[creaImageIO.git] / src2 / creaImageIOTreeLevelDescriptor.h
index 905a7e45ea30304d836ca73d1789f4fc54727722..693933e415adc4a0c3eedd002e8554e0f7dd89e0 100644 (file)
@@ -29,19 +29,34 @@ namespace creaImageIO
       unsigned int GetNumberOfAttributes() 
       { return mAttributeDescriptorList.size(); }
 
+      /// Adds the AttributeDescriptor to the list
+      /// WARNING : You MUST use this method and NOT push_back directly in list
+      /// ad IdentifierList and LabelList are also updated
+      void Add(AttributeDescriptor);
+
       /// The type of attribute container
       typedef std::vector<AttributeDescriptor> AttributeDescriptorListType;
       /// Returns the list of AttributeDescriptor
-      AttributeDescriptorListType& GetAttributeDescriptorList() 
-      { return mAttributeDescriptorList; }
+      //AttributeDescriptorListType& GetAttributeDescriptorList() 
+      //{ return mAttributeDescriptorList; }
       /// Returns the list of AttributeDescriptor (const)
       const AttributeDescriptorListType& GetAttributeDescriptorList() const 
       { return mAttributeDescriptorList; }
 
+     /// \return The list of attributes with flag IDENTIFIER set
+     const std::vector<std::string>& GetIdentifierList() const 
+      { return mIdentifierList; }
+      /// \return The list of attributes with flag LABEL set
+      const std::vector<std::string>& GetLabelList() const 
+      { return mLabelList; }
+
     private:
       std::string mName;
       AttributeDescriptorListType mAttributeDescriptorList;
-
+      /// The list of attributes with flag IDENTIFIER set
+      std::vector<std::string> mIdentifierList;
+      /// The list of attributes with flag LABEL set
+      std::vector<std::string> mLabelList;
 
     };
     // EO class LevelDescriptor