src/IntRank2/FrameMap.cc
/* These functions are used to specify the coordinate frame from either a 
   working GAMMA parameter set or an external ASCII file (in parameter set
   format).  The functions do NOT allow for the suffix (#), since it is 
   used/reserved for specific object rotation indices. The functions do allow
   for the prefix [#] so that multiple coordinate frames may be defined in the
   same file by switching the prefix indices.

           Input                FrmMap    : Frame Mapping
                                file    : Input file name
                                pset    : Parameter set
                                argv    : Vector of argc arguments
                                argn    : Argument index
                                pfx     : Coordinate frame index (default -1->none)
           Output               none    : Coordinate frame is read in
                                          from parameters in file filename
                                file    : Name of file used to set frame    */
These functions are used to specify the coordinate frame from either a
working GAMMA parameter set or an external ASCII file (in parameter set
format).  The functions do NOT allow for the suffix (#), since it is
used/reserved for specific object rotation indices. The functions do allow
for the prefix [#] so that multiple coordinate frames may be defined in the
same file by switching the prefix indices.


These functions are used to specify the coordinate frame from either a working GAMMA parameter set or an external ASCII file ( in parameter set format ) . The functions do NOT allow for the suffix ( # ) since it is used / reserved for specific object rotation indices . The functions do allow for the prefix [ # ] so that multiple coordinate frames may be defined in the same file by switching the prefix indices .
bool FrameMap::read(const string& filename, int i, int j, int pfx, int warn)
  {
  ParameterSet pset;			
  if(!pset.read(filename, warn?1:0))	
    {
    FMerror(1, filename,1);		
    if(warn > 1) FMfatal(41);		
    else         FMerror(41);		
    return false;
    }
  if(!read(pset,i,j,pfx,warn?1:0))	
    {
    FMerror(1, filename,1);		
    if(warn > 1) FMfatal(42);		
    else         FMerror(42);		
    return false;
    }
  return true;
  }
bool FrameMap :: read ( const string & filename , int i , int j , int pfx , int warn ) { ParameterSet pset ; if ( ! pset . read ( filename , warn ? 1 : 0 ) ) { FMerror ( 1 , filename , 1 ) ; if ( warn > 1 ) FMfatal ( 41 ) ; else FMerror ( 41 ) ; return false ; } if ( ! read ( pset , i , j , pfx , warn ? 1 : 0 ) ) { FMerror ( 1 , filename , 1 ) ; if ( warn > 1 ) FMfatal ( 42 ) ; else FMerror ( 42 ) ; return false ; } return true ; }
These functions are used to specify the coordinate frame from either a
working GAMMA parameter set or an external ASCII file (in parameter set
format).
These functions are used to specify the coordinate frame from either a working GAMMA parameter set or an external ASCII file ( in parameter set format ) .
// Declare a parameter set // Read in pset from file // Filename problems // Cant read from file, fatal  // or non-fatal warning // User overloaded function // Filename problems // Cannot read file parameters // or non-fatal one