514 std::cerr <<
"DEBUG (DAST::read):" << std::endl;
517 std::getline(fis, theline);
518 if (debug) { std::cerr << theline << std::endl; }
520 std::string lineID=theline.substr(0,4);
521 if (debug) { std::cerr << lineID << std::endl; }
522 if (!helper::IDmatch<DAST>(lineID))
throw 523 GSE2::Terror(
"ERROR (DAST::read): missing DAST ID!");
525 this->
nchar=atoi(theline.substr(6,10).c_str());
526 this->
ampfac=atof(theline.substr(17,16).c_str());
528 std::string code=theline.substr(34,10);
531 std::cerr <<
"DEBUG (DAST): read nchar=" <<
nchar 532 <<
" ampfac=" <<
ampfac <<
" code=" << code << std::endl;
534 this->
hasinfo=(code.find(
'I')!=std::string::npos);
535 this->
hasfree=(code.find(
'F')!=std::string::npos);
536 this->
last=(code.find(
'D')==std::string::npos);