]> Creatis software - creaImageIO.git/blob - src2/creaImageIOTreeLevelDescriptor.cpp
Validation changed and added number of children to the database.
[creaImageIO.git] / src2 / creaImageIOTreeLevelDescriptor.cpp
1 #include <creaImageIOTreeLevelDescriptor.h>
2 #include <creaImageIOSystem.h>
3
4 namespace creaImageIO
5 {
6   namespace tree
7   {
8     /// Adds the AttributeDescriptor to the list
9     void LevelDescriptor::Add(const AttributeDescriptor& a)
10     {
11       GimmickMessage(5,"Adding Attribute Descriptor '"<<a.GetKey()
12                      <<"' to LevelDescriptor"
13                      <<std::endl);
14       mAttributeDescriptorList.push_back(a);
15       if ( a.GetFlags() & AttributeDescriptor::IDENTIFIER )
16         {
17           GimmickMessage(6,"Is an IDENTIFIER"<<std::endl);
18           mIdentifierList.push_back(a.GetKey());
19         }
20       if ( a.GetFlags() & AttributeDescriptor::LABEL )
21         {
22           GimmickMessage(6,"Is a LABEL"<<std::endl);
23           mLabelList.push_back(a.GetKey());
24         }
25     }
26
27         
28
29   }
30 }
31