]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOTreeLevelDescriptor.cpp
*** empty log message ***
[creaImageIO.git] / src2 / creaImageIOTreeLevelDescriptor.cpp
index bd0feca7d9c612b0e16f26fb496e53f55e9a30a6..ebb3c2c770bb6a73a0fa3abf3f548be7b97e1d1f 100644 (file)
@@ -5,24 +5,24 @@ namespace creaImageIO
 {
   namespace tree
   {
-      /// Adds the AttributeDescriptor to the list
-      void LevelDescriptor::Add(AttributeDescriptor a)
-      {
-       GimmickMessage(5,"Adding Attribute Descriptor '"<<a.GetKey()
-                      <<"' to LevelDescriptor"
-                      <<std::endl);
-       mAttributeDescriptorList.push_back(a);
-       if ( a.GetFlags() & AttributeDescriptor::IDENTIFIER )
-         {
-           GimmickMessage(6,"Is an IDENTIFIER"<<std::endl);
-           mIdentifierList.push_back(a.GetKey());
-         }
-       if ( a.GetFlags() & AttributeDescriptor::LABEL )
-         {
-           GimmickMessage(6,"Is a LABEL"<<std::endl);
-           mLabelList.push_back(a.GetKey());
-         }
-      }
+    /// Adds the AttributeDescriptor to the list
+    void LevelDescriptor::Add(const AttributeDescriptor& a)
+    {
+      GimmickMessage(5,"Adding Attribute Descriptor '"<<a.GetKey()
+                    <<"' to LevelDescriptor"
+                    <<std::endl);
+      mAttributeDescriptorList.push_back(a);
+      if ( a.GetFlags() & AttributeDescriptor::IDENTIFIER )
+       {
+         GimmickMessage(6,"Is an IDENTIFIER"<<std::endl);
+         mIdentifierList.push_back(a.GetKey());
+       }
+      if ( a.GetFlags() & AttributeDescriptor::LABEL )
+       {
+         GimmickMessage(6,"Is a LABEL"<<std::endl);
+         mLabelList.push_back(a.GetKey());
+       }
+    }
 
   }
 }