]> Creatis software - creaImageIO.git/blob - src2/creaImageIOTreeLevelDescriptor.cpp
add SOURCE_GROUP command to reorganize files in folder for visual studio project
[creaImageIO.git] / src2 / creaImageIOTreeLevelDescriptor.cpp
1 #include <creaImageIOTreeLevelDescriptor.h>
2 #include <creaImageIOSystem.h>
3
4 #ifdef _DEBUG
5 #define new DEBUG_NEW
6 #endif
7
8 namespace creaImageIO
9 {
10   namespace tree
11   {
12     /// Adds the AttributeDescriptor to the list
13     void LevelDescriptor::Add(const AttributeDescriptor& a)
14     {
15       GimmickMessage(5,"Adding Attribute Descriptor '"<<a.GetKey()
16                      <<"' to LevelDescriptor"
17                      <<std::endl);
18       mAttributeDescriptorList.push_back(a);
19       if ( a.GetFlags() & AttributeDescriptor::IDENTIFIER )
20         {
21           GimmickMessage(6,"Is an IDENTIFIER"<<std::endl);
22           mIdentifierList.push_back(a.GetKey());
23         }
24       if ( a.GetFlags() & AttributeDescriptor::LABEL )
25         {
26           GimmickMessage(6,"Is a LABEL"<<std::endl);
27           mLabelList.push_back(a.GetKey());
28         }
29     }
30
31         
32
33   }
34 }
35