src/HSLib/GenOp.cc
/*              Input           Op   : Operator (this)
                                fn   : Input binary filename
                                fp   : File stream (pointing at Op)
                Return          void : Op is written to either the
                                       specified file or filestream.
                Note                 : Output format is partially set by
				       class matrix (matrix typing)  
		Note		     : NULL operators will NOT be output 
                Note                 : Only WBR representation is output     */
Input           Op   : Operator (this)
fn   : Input binary filename
fp   : File stream (pointing at Op)
Return          void : Op is written to either the
specified file or filestream.
Note                 : Output format is partially set by
class matrix (matrix typing)
Note                 : NULL operators will NOT be output
Note                 : Only WBR representation is output
Input Op : Operator ( this ) fn : Input binary filename fp : File stream ( pointing at Op ) Return void : Op is written to either the specified file or filestream . Note : Output format is partially set by class matrix ( matrix typing ) Note : NULL operators will NOT be output Note : Only WBR representation is output
void gen_op::write(const std::string& fn) const
  {
  std::ofstream fp;					
  fp.open(fn.c_str(),std::ios::out|std::ios::binary);	
  write(fp);					
  fp.close();					
  }
void gen_op :: write ( const std :: string & fn ) const { std :: ofstream fp ; fp . open ( fn . c_str ( ) , std :: ios :: out | std :: ios :: binary ) ; write ( fp ) ; fp . close ( ) ; }
Input           Op   : Operator (this)
fn   : Input binary filename
fp   : File stream (pointing at Op)
Return          void : Op is written to either the
specified file or filestream.
Input Op : Operator ( this ) fn : Input binary filename fp : File stream ( pointing at Op ) Return void : Op is written to either the specified file or filestream .
// Construct a file stream // Open the file for output // Write Op to file stream // Close file stream