XMLReader paramtop(xml, path); read(paramtop, "nrow", param.nrow); read(paramtop, "boundary", param.boundary); read(paramtop, "InvertParam", param.invParam);
XMLReader inputtop(xml, path);   try {  read(inputtop, "Param", input.param);   read(inputtop, "Cfg", input.cfg);   { XMLReader xml_action(inputtop, "Action4D"); std::ostringstream os; xml_action.print(os); input.action_4d = os.str(); }   { XMLReader xml_action(inputtop, "Action5D"); std::ostringstream os; xml_action.print(os); input.action_5d = os.str(); } } catch (const string& e) { QDPIO::cerr << "Error reading test data: " << e << endl; throw; }
void read(XMLReader& xml, const string& path, Param_t& param){  XMLReader paramtop(xml, path);  read(paramtop, "nrow", param.nrow);  read(paramtop, "boundary", param.boundary);  read(paramtop, "InvertParam", param.invParam);}