src/GamIO/XWinAcqPar.cc
/* These functions read in the acquisition parameters from an XWinNMR parameter
   file, typically named acqus or acqu2s.  By design, the Bruker parameter
   file is initially read into a GAMMA parameter set so that ALL parameters in
   the file are stored.  Subsequently, the parameters in the parameter set are
   parsed to obtain values of consequence to GAMMA and these are explicitly
   maintained variables in the class.                                        */
These functions read in the acquisition parameters from an XWinNMR parameter
file, typically named acqus or acqu2s.  By design, the Bruker parameter
file is initially read into a GAMMA parameter set so that ALL parameters in
the file are stored.  Subsequently, the parameters in the parameter set are
parsed to obtain values of consequence to GAMMA and these are explicitly
maintained variables in the class.
These functions read in the acquisition parameters from an XWinNMR parameter file typically named acqus or acqu2s . By design the Bruker parameter file is initially read into a GAMMA parameter set so that ALL parameters in the file are stored . Subsequently the parameters in the parameter set are parsed to obtain values of consequence to GAMMA and these are explicitly maintained variables in the class .
bool XWinAcqPar::readAPar(const string& filein, int warn)
  {
  parfile = filein;				
  bool TF = (readAPar(warn))?true:false;           
  if(!TF && warn)                               
    {
    XWinAcqParerror(1, filein, 1);              
    if(warn > 1) XWinAcqParerror(3);            
    else         XWinAcqParerror(3,1);
    }
  return TF;
  }
bool XWinAcqPar :: readAPar ( const string & filein , int warn ) { parfile = filein ; bool TF = ( readAPar ( warn ) ) ? true : false ; if ( ! TF && warn ) { XWinAcqParerror ( 1 , filein , 1 ) ; if ( warn > 1 ) XWinAcqParerror ( 3 ) ; else XWinAcqParerror ( 3 , 1 ) ; } return TF ; }
These functions read in the acquisition parameters from an XWinNMR parameter
file, typically named acqus or acqu2s.
These functions read in the acquisition parameters from an XWinNMR parameter file typically named acqus or acqu2s .
// Set internal filename // Read in all parameters // Output errors if trouble // Problems with filein // Can't construct from pset