src/IntRank2/IntG.cc
/* These functions write the G interaction into an ASCII file in GAMMA
   Parameter Set format.  That is, the resulting ASCII file may be read into
   any GAMMA program to create a G interaction identical to that written.

        // Input                GI      : G factor interaction (this)
        //                      filename: Output file name
        //                  or  ofstr   : Output file stream
        //                      idx     : Interaction index (default -1)
        //                      pfx     : Interaction 2nd indx (def -1)
        //                      warn    : Warning level
        // Output               none    : Interaction is written as a
        //                                parameter set to file filename
        //                                or into output file stream ofstr   */
These functions write the G interaction into an ASCII file in GAMMA
Parameter Set format.  That is, the resulting ASCII file may be read into
any GAMMA program to create a G interaction identical to that written.


These functions write the G interaction into an ASCII file in GAMMA Parameter Set format . That is the resulting ASCII file may be read into any GAMMA program to create a G interaction identical to that written .
bool IntG::write(const string &filename, int idx, int warn) const
   {
   ofstream ofstr(filename.c_str());	
   if(!ofstr.good())                    
     {
     IGerror(1, filename);		
     IGfatal(20);			
     }
   bool TF = write(ofstr,idx,warn?1:0);	
   if(TF && warn)			
    {					
    IGerror(51, 1);			
    if (warn>1) IGfatal(53);		
    return false;
    }
   ofstr.close();
   return TF;
   }
bool IntG :: write ( const string & filename , int idx , int warn ) const { ofstream ofstr ( filename . c_str ( ) ) ; if ( ! ofstr . good ( ) ) { IGerror ( 1 , filename ) ; IGfatal ( 20 ) ; } bool TF = write ( ofstr , idx , warn ? 1 : 0 ) ; if ( TF && warn ) { IGerror ( 51 , 1 ) ; if ( warn > 1 ) IGfatal ( 53 ) ; return false ; } ofstr . close ( ) ; return TF ; }
These functions write the G interaction into an ASCII file in GAMMA
Parameter Set format.
These functions write the G interaction into an ASCII file in GAMMA Parameter Set format .
// Open filename for input // If file bad then exit // Filename problems // Fatal error // Use overload to write // If write failed & warnings desired // take the appropriate action // Problems writing to file // Fatal error