]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOTreeDescriptor.h
*** empty log message ***
[creaImageIO.git] / src2 / creaImageIOTreeDescriptor.h
index 29f0ba88b7d9f33cc2afaea99d88d40d7ae87890..765b73f1ae61cc8e03a4c43ac1e07c4b847720af 100644 (file)
@@ -1,23 +1,24 @@
 #ifndef __creaImageIOTreeDescriptor_h_INCLUDED__
 #define __creaImageIOTreeDescriptor_h_INCLUDED__
 
+#include <creaImageIOTreeAttributeMapType.h>
 #include <creaImageIOTreeLevelDescriptor.h>
-#include <map>
+
 
 namespace creaImageIO
 {
 
   namespace tree
   {
-
-         /**
-       * \ingroup Model
-       */
-    //=====================================================================
-    /// Descriptor of the structure a tree 
-/// (number of levels, descriptors of each level, ...).
-/// Any tree has at least one level (level 0) of name "Root"
-class Descriptor
+    
+    /**
+     * \ingroup Tree
+     */
+    
+       ///Descriptor of the structure of a Tree (number of levels, descriptors of each level, ...). 
+         //Any Tree has at least one level (level 0) of name "Root"
+     
+    class Descriptor
     {
     public:
       /// Ctor : creates the mandatory level 0 descriptor called "Root"
@@ -46,13 +47,13 @@ class Descriptor
       GetAttributeDescriptorList(int level) const
       { return mLevelDescriptorList[level].GetAttributeDescriptorList(); }
       /// Returns the AttributeDescriptorList of a given level (ref)
-      LevelDescriptor::AttributeDescriptorListType& 
-      GetAttributeDescriptorList(int level) 
-      { return mLevelDescriptorList[level].GetAttributeDescriptorList(); }
+      //LevelDescriptor::AttributeDescriptorListType& 
+      //GetAttributeDescriptorList(int level) 
+      //{ return mLevelDescriptorList[level].GetAttributeDescriptorList(); }
   
 
       /// Builds the key to value map of all the attributes of the tree
-      void BuildAttributeMap( std::map<std::string,std::string>&) const;
+      void BuildAttributeMap( AttributeMapType& ) const;
 
       /// The type of LevelDescriptor container
       typedef std::vector<LevelDescriptor> LevelDescriptorListType;