#include <creaImageIOTreeLevelDescriptor.h>
#include <creaImageIOSystem.h>
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
+
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());
+ }
+ }
+
+
}
}