40 if (
param ==
"expansion") {
65 for (
auto val : boost::tokenizer<boost::char_separator<char>>(reader.
requireAttribute(
"k-list"),
66 boost::char_separator<char>(
" ,;\t\n"))) {
68 double val = boost::lexical_cast<double>(val);
70 }
catch (boost::bad_lexical_cast&) {
71 throw XMLException(reader, format(
"value '{0}' cannot be converted to float", val));
77 if (value.empty() || value ==
"auto")
80 kweights.reset(std::vector<double>());
82 for (
auto val : boost::tokenizer<boost::char_separator<char>>(value, boost::char_separator<char>(
" ,;\t\n"))) {
84 double val = boost::lexical_cast<double>(val);
86 }
catch (boost::bad_lexical_cast&) {
87 throw XMLException(reader, format(
"value '{0}' cannot be converted to float", val));
101 }
else if (
param ==
"mode") {
108 writelog(
LOG_WARNING,
"XML line {:d} in <mode>: Attribute 'wavelength' is obsolete, use 'lam' instead",
115 }
else if (
param ==
"pml") {
120 writelog(
LOG_WARNING,
"XML line {:d} in <pml>: Attribute 'order' is obsolete, use 'shape' instead",