#ifndef __creaImageIOTreeLevelDescriptor_h_INCLUDED__ #define __creaImageIOTreeLevelDescriptor_h_INCLUDED__ #include #include namespace creaImageIO { namespace tree { /** * \ingroup Model */ //===================================================================== /// Descriptor of a level of a tree (name, attributes, ...) class LevelDescriptor { public: /// Ctor with name LevelDescriptor(const std::string& name) : mName(name) {} /// Destructor ~LevelDescriptor() {} /// Returns the name of the level const std::string& GetName() { return mName; } /// Returns the number of attributes of the level unsigned int GetNumberOfAttributes() { return mAttributeDescriptorList.size(); } /// 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; } private: std::string mName; AttributeDescriptorListType mAttributeDescriptorList; }; // EO class LevelDescriptor //===================================================================== }// EO namespace tree } // EO namespace creaImageIO // EOF #endif