X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOTreeDescriptor.h;h=d36e9d667c2d0a748aa15cefe484f30c0164b100;hb=8120e03448d7547167fdced4351a91b07a27f72f;hp=a7e5b94da131cdc6f04676d475ddc02bf64d0c33;hpb=3a22e19184c369b130d4caa992a8e98e50c7a0ee;p=creaImageIO.git diff --git a/src/creaImageIOTreeDescriptor.h b/src/creaImageIOTreeDescriptor.h index a7e5b94..d36e9d6 100644 --- a/src/creaImageIOTreeDescriptor.h +++ b/src/creaImageIOTreeDescriptor.h @@ -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 isExist(const std::string i_attr); + private: LevelDescriptorListType mLevelDescriptorList; /// Creates the mandatory level 0 descriptor called "Root"