1 #ifndef __creaImageIOTreeLevelDescriptor_h_INCLUDED__
2 #define __creaImageIOTreeLevelDescriptor_h_INCLUDED__
4 #include <creaImageIOTreeAttributeDescriptor.h>
15 //=====================================================================
16 /// Descriptor of a level of a Tree (name, attributes, ...)
21 LevelDescriptor(const std::string& name) : mName(name) {}
25 /// Returns the name of the level
26 const std::string& GetName() const { return mName; }
28 /// Returns the number of attributes of the level
29 unsigned int GetNumberOfAttributes() const
30 { return mAttributeDescriptorList.size(); }
32 /// Adds the AttributeDescriptor to the list
33 void Add(const AttributeDescriptor&);
35 /// The type of attribute container
36 typedef std::vector<AttributeDescriptor> AttributeDescriptorListType;
38 /// Returns the list of AttributeDescriptor (const)
39 const AttributeDescriptorListType& GetAttributeDescriptorList() const
40 { return mAttributeDescriptorList; }
42 /// \return The list of attributes with flag IDENTIFIER set
43 const std::vector<std::string>& GetIdentifierList() const
44 { return mIdentifierList; }
45 /// \return The list of attributes with flag LABEL set
46 const std::vector<std::string>& GetLabelList() const
47 { return mLabelList; }
51 AttributeDescriptorListType mAttributeDescriptorList;
52 /// The list of attributes with flag IDENTIFIER set
53 std::vector<std::string> mIdentifierList;
54 /// The list of attributes with flag LABEL set
55 std::vector<std::string> mLabelList;
58 // EO class LevelDescriptor
59 //=====================================================================
63 } // EO namespace creaImageIO