X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeLevelDescriptor.h;h=f9470346f62a4dd2bfc65b009a4cc021de528528;hb=6b60375e24eb65bde68033daa2618d1f95b5d3ed;hp=c99c4ab27f5f1e0911de09c02f3739d3579c8ce2;hpb=f7c6131e319e426656a0b3b066b96236ee66bb3c;p=creaImageIO.git diff --git a/src2/creaImageIOTreeLevelDescriptor.h b/src2/creaImageIOTreeLevelDescriptor.h index c99c4ab..f947034 100644 --- a/src2/creaImageIOTreeLevelDescriptor.h +++ b/src2/creaImageIOTreeLevelDescriptor.h @@ -10,7 +10,7 @@ namespace creaImageIO namespace tree { /** - * \ingroup Model + * \ingroup Tree */ //===================================================================== /// Descriptor of a level of a Tree (name, attributes, ...) @@ -23,28 +23,24 @@ 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(); } /// 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); + void Add(const AttributeDescriptor&); - /// The type of attribute container + /// 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 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