Newer
Older
if (lineSplit[0] == g_BIT_DEPTH_NAME && lineSplit[1] != "")
Federico Montesino Pouzols
committed
m_headerBitDepthKey = lineSplit[1];
if (lineSplit[0] == g_AXIS_NAMES_NAME && lineSplit[1] != "") {
Federico Montesino Pouzols
committed
m_headerAxisNameKeys.clear();
boost::split(m_headerAxisNameKeys, lineSplit[1],
boost::is_any_of(","));
if (lineSplit[0] == g_IMAGE_KEY_NAME && lineSplit[1] != "") {
Federico Montesino Pouzols
committed
m_headerImageKeyKey = lineSplit[1];
}
Federico Montesino Pouzols
committed
fStream.close();
} else {
throw std::runtime_error(
"Error while trying to read header keys mapping file: " + name);
Federico Montesino Pouzols
committed
} catch (...) {
g_log.error("Cannot load specified map file, using property values "
"and/or defaults.");
Federico Montesino Pouzols
committed
} // namespace DataHandling
} // namespace Mantid