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