X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeLevelDescriptor.h;h=f9470346f62a4dd2bfc65b009a4cc021de528528;hb=e4a54c9026a2a0c17e3be0b5915c34688a9385ad;hp=95b284be09b2d1b70820f8395ee0a3b6704754a4;hpb=cbf693fa62cd51f4ca5c881838bbb609edc447b0;p=creaImageIO.git diff --git a/src2/creaImageIOTreeLevelDescriptor.h b/src2/creaImageIOTreeLevelDescriptor.h index 95b284b..f947034 100644 --- a/src2/creaImageIOTreeLevelDescriptor.h +++ b/src2/creaImageIOTreeLevelDescriptor.h @@ -9,8 +9,11 @@ namespace creaImageIO namespace tree { + /** + * \ingroup Tree + */ //===================================================================== - /// Descriptor of a level of a tree (name, attributes, ...) + /// Descriptor of a level of a Tree (name, attributes, ...) class LevelDescriptor { public: @@ -20,25 +23,36 @@ namespace creaImageIO ~LevelDescriptor() {} /// Returns the name of the level - const std::string& GetName() { return mName; } + const std::string& GetName() const { return mName; } /// Returns the number of attributes of the level - unsigned int GetNumberOfAttributes() + unsigned int GetNumberOfAttributes() const { return mAttributeDescriptorList.size(); } - /// The type of attribute container + /// Adds the AttributeDescriptor to the list + void Add(const AttributeDescriptor&); + + /// The type of attribute container typedef std::vector AttributeDescriptorListType; - /// Returns the list of AttributeDescriptor - 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& GetIdentifierList() const + { return mIdentifierList; } + /// \return The list of attributes with flag LABEL set + const std::vector& GetLabelList() const + { return mLabelList; } + private: std::string mName; AttributeDescriptorListType mAttributeDescriptorList; - + /// The list of attributes with flag IDENTIFIER set + std::vector mIdentifierList; + /// The list of attributes with flag LABEL set + std::vector mLabelList; }; // EO class LevelDescriptor