src/IntRank2/CoordFrame.cc
/* These functions will construct an ASCII parameter file from a coordinate 
   frame.  Individual rotations will be placed into the file parameters as
   Euler angle in degrees.                                                   */
These functions will construct an ASCII parameter file from a coordinate
frame.  Individual rotations will be placed into the file parameters as
Euler angle in degrees.
These functions will construct an ASCII parameter file from a coordinate frame . Individual rotations will be placed into the file parameters as Euler angle in degrees .
void CoordFrame::write(const std::string& filename, int pfx) const
   {
   ofstream ofstr(filename.c_str());	
   if(!ofstr.good())                    
     {
     CFRerror(1, filename);		
     CFRfatal(40);			
     }
   ofstr.close();			
   ParameterSet pset;			
   PSetAdd(pset,pfx);			
   pset.write(filename);		
   return;
   }
void CoordFrame :: write ( const std :: string & filename , int pfx ) const { ofstream ofstr ( filename . c_str ( ) ) ; if ( ! ofstr . good ( ) ) { CFRerror ( 1 , filename ) ; CFRfatal ( 40 ) ; } ofstr . close ( ) ; ParameterSet pset ; PSetAdd ( pset , pfx ) ; pset . write ( filename ) ; return ; }
These functions will construct an ASCII parameter file from a coordinate
frame.
These functions will construct an ASCII parameter file from a coordinate frame .
// Open filename for input // If file bad then exit // Filename problems // Cannot write to file // Close it now // Declare a parameter set // Add ourself into parameter set // Write parameter set to filename