X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOTreeLevelDescriptor.h;h=be2a3d81ee955897b1278e849d9a501e4fd8ef22;hb=8120e03448d7547167fdced4351a91b07a27f72f;hp=f9470346f62a4dd2bfc65b009a4cc021de528528;hpb=3a22e19184c369b130d4caa992a8e98e50c7a0ee;p=creaImageIO.git diff --git a/src/creaImageIOTreeLevelDescriptor.h b/src/creaImageIOTreeLevelDescriptor.h index f947034..be2a3d8 100644 --- a/src/creaImageIOTreeLevelDescriptor.h +++ b/src/creaImageIOTreeLevelDescriptor.h @@ -36,8 +36,17 @@ namespace creaImageIO typedef std::vector 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& 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 mIdentifierList; /// The list of attributes with flag LABEL set