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() { return mName; }
28 /// Returns the number of attributes of the level
29 unsigned int GetNumberOfAttributes()
30 { return mAttributeDescriptorList.size(); }
32 /// The type of attribute container
33 typedef std::vector<AttributeDescriptor> AttributeDescriptorListType;
34 /// Returns the list of AttributeDescriptor
35 AttributeDescriptorListType& GetAttributeDescriptorList()
36 { return mAttributeDescriptorList; }
37 /// Returns the list of AttributeDescriptor (const)
38 const AttributeDescriptorListType& GetAttributeDescriptorList() const
39 { return mAttributeDescriptorList; }
43 AttributeDescriptorListType mAttributeDescriptorList;
47 // EO class LevelDescriptor
48 //=====================================================================
52 } // EO namespace creaImageIO