#include <creaImageIOTreeDescriptor.h>
#include <boost/algorithm/string/split.hpp>
+#include <boost/algorithm/string/replace.hpp>
#include <creaImageIOSystem.h>
#include <boost/filesystem.hpp>
-
+#include <fstream>
namespace creaImageIO
// @param : file path //
// return : - //
//////////////////////////////////////////////////////////////
- void Descriptor::createDescriptorfromFile(std::string &i_name)
+ void Descriptor::createDescriptorfromFile(const std::string &i_name)
{
Clear();
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);
}
}