1 #ifndef __creaImageIOTreeLevelDescriptor_h_INCLUDED__
2 #define __creaImageIOTreeLevelDescriptor_h_INCLUDED__
4 #include <creaImageIOTreeAttributeDescriptor.h>
12 //=====================================================================
13 /// Descriptor of a level of a tree (name, attributes, ...)
18 LevelDescriptor(const std::string& name) : mName(name) {}
22 /// Returns the name of the level
23 const std::string& GetName() { return mName; }
25 /// Returns the number of attributes of the level
26 unsigned int GetNumberOfAttributes()
27 { return mAttributeDescriptorList.size(); }
29 /// The type of attribute container
30 typedef std::vector<AttributeDescriptor> AttributeDescriptorListType;
31 /// Returns the list of AttributeDescriptor
32 AttributeDescriptorListType& GetAttributeDescriptorList()
33 { return mAttributeDescriptorList; }
34 /// Returns the list of AttributeDescriptor (const)
35 const AttributeDescriptorListType& GetAttributeDescriptorList() const
36 { return mAttributeDescriptorList; }
40 AttributeDescriptorListType mAttributeDescriptorList;
44 // EO class LevelDescriptor
45 //=====================================================================
49 } // EO namespace creaImageIO