X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeDescriptor.cpp;h=30c8b7aa8ba32fa15d9b81ba01d122bb23d7d485;hb=6685b940296e57d4e3803765b986a6fe18d9be41;hp=0d772866bcbecf28076556d780ccf446c6d79300;hpb=be812877eb9dfa9b921df4f6d88df98af73328c3;p=creaImageIO.git diff --git a/src2/creaImageIOTreeDescriptor.cpp b/src2/creaImageIOTreeDescriptor.cpp index 0d77286..30c8b7a 100644 --- a/src2/creaImageIOTreeDescriptor.cpp +++ b/src2/creaImageIOTreeDescriptor.cpp @@ -19,6 +19,9 @@ namespace creaImageIO const unsigned int AttributeDescriptor::PRIVATE = 1; /// The attribute enters in unique identifier constitution const unsigned int AttributeDescriptor::IDENTIFIER = 2; + /// The attribute can be edited + const unsigned int AttributeDescriptor::EDITABLE = 3; + /// the attribute describes the node const unsigned int AttributeDescriptor::LABEL = 4; //================================================================== @@ -206,7 +209,12 @@ namespace creaImageIO val2 >> std::hex >> element; Add(AttributeDescriptor( group,element,flag), ilevel); } - else // "O" means if user's own tag. + + else if(descriptors[0].find("#") != -1) + { + // commented line continue to next line + } + else { boost::algorithm::replace_all(descriptors[2],"_"," "); Add(AttributeDescriptor( descriptors[1].c_str(),descriptors[2].c_str(),flag), ilevel); }