X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src2%2FcreaImageIOTreeDescriptor.cpp;h=80244d0f41c9616a49bf880f9094c34f8d3408cc;hb=ecd7eb9aca5b98c06f3ce9072b3f73fe71f1e4b0;hp=6849b10bd6740f84cc36774381a551473c0c25ff;hpb=36a4ac578a165ab010663055b433aef6d9248e22;p=creaImageIO.git diff --git a/src2/creaImageIOTreeDescriptor.cpp b/src2/creaImageIOTreeDescriptor.cpp index 6849b10..80244d0 100644 --- a/src2/creaImageIOTreeDescriptor.cpp +++ b/src2/creaImageIOTreeDescriptor.cpp @@ -1,10 +1,11 @@ #include #include +#include #include #include - +#include namespace creaImageIO @@ -18,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; //================================================================== @@ -144,7 +148,7 @@ namespace creaImageIO // @param : file path // // return : - // ////////////////////////////////////////////////////////////// - void Descriptor::createDescriptorfromFile(std::string &i_name) + void Descriptor::createDescriptorfromFile(const std::string &i_name) { Clear(); @@ -206,7 +210,7 @@ namespace creaImageIO Add(AttributeDescriptor( group,element,flag), ilevel); } else // "O" means if user's own tag. - { + { boost::algorithm::replace_all(descriptors[2],"_"," "); Add(AttributeDescriptor( descriptors[1].c_str(),descriptors[2].c_str(),flag), ilevel); } }