src/GamIO/XWinPSet.cc
/* These functions will read in all parameters from a Bruker XWinNMR parameter
   file. By design, the Bruker parameter file is simply read into a GAMMA
   parameter set so that ALL parameters in the file are stored in this class.
   Were the Bruker files in GAMMA format then this would be done exclusively
   with class ParamSet, but since they are not we must handle the file parsing
   explicitly.

      Function                               Purpose
   ____________________________________________________________________________

      readPSet          Read in parameter set for class object.  This is done
                        special since Bruker format is NOT in GAMMA parameter
                        format so it must be parsed appropriately.
      getPar            Returns parameter found in the parameter set herein  */
These functions will read in all parameters from a Bruker XWinNMR parameter
file. By design, the Bruker parameter file is simply read into a GAMMA
parameter set so that ALL parameters in the file are stored in this class.
Were the Bruker files in GAMMA format then this would be done exclusively
with class ParamSet, but since they are not we must handle the file parsing
explicitly.

Function                               Purpose

readPSet          Read in parameter set for class object.  This is done
special since Bruker format is NOT in GAMMA parameter
format so it must be parsed appropriately.
getPar            Returns parameter found in the parameter set herein
These functions will read in all parameters from a Bruker XWinNMR parameter file . By design the Bruker parameter file is simply read into a GAMMA parameter set so that ALL parameters in the file are stored in this class . Were the Bruker files in GAMMA format then this would be done exclusively with class ParamSet but since they are not we must handle the file parsing explicitly . Function Purpose readPSet Read in parameter set for class object . This is done special since Bruker format is NOT in GAMMA parameter format so it must be parsed appropriately . getPar Returns parameter found in the parameter set herein
bool XWinPSet::readPSet(const string& filein, int warn)
  {
  fname = filein;				
  bool TF = (readPSet(warn))?true:false;	
  if(!TF && warn)				
    {
    XWinPSeterror(1, filein, 1);               
    if(warn > 1) XWinPSeterror(3);             
    else         XWinPSeterror(3,1);
    }
  return TF;
  }
bool XWinPSet :: readPSet ( const string & filein , int warn ) { fname = filein ; bool TF = ( readPSet ( warn ) ) ? true : false ; if ( ! TF && warn ) { XWinPSeterror ( 1 , filein , 1 ) ; if ( warn > 1 ) XWinPSeterror ( 3 ) ; else XWinPSeterror ( 3 , 1 ) ; } return TF ; }
These functions will read in all parameters from a Bruker XWinNMR parameter
file.
These functions will read in all parameters from a Bruker XWinNMR parameter file .
// Set internal filename // Read in all parameters // Output errors if trouble // Problems with filein // Can't construct from pset