src/GamIO/ML5Imags.cc
/* These are the functions which will input an Imags Array sub-element in MATLAB
   ".mat" binary format, version 5.  Note that in a valid MATLAB MAT file, a 
   "Imags Array Sub-Element" is a combination of Tag + Data
 
                Input           ML5Im	: MAT version 5 imags array (this)
                                fp      : Input file stream
                                warn    : Warning output level
                                                0 = no warnings
                                                1 = warnings
                                               >1 = fatal warnings
                Output          void    : ML5Im is set from values found
                                          in the input stream
                Note                    : No care is taken to insure the
                                          imags array is read from the top of a
                                          data element (as it should be in
					  MATLAB)                            */
These are the functions which will input an Imags Array sub-element in MATLAB
".mat" binary format, version 5.  Note that in a valid MATLAB MAT file, a
"Imags Array Sub-Element" is a combination of Tag + Data


These are the functions which will input an Imags Array sub - element in MATLAB " . mat " binary format version 5 . Note that in a valid MATLAB MAT file a " Imags Array Sub - Element " is a combination of Tag + Data
int MatLab5Im::fread(std::fstream& fp, int bigend, int warn)
  {
  if(!MLTag.read(fp, bigend, (warn)?1:0)) 	
    {                                           
    if(warn)                                    
      {                                         
      if(warn==1) MLIM5error(10, 1);
      else        MLIM5fatality(10);
      }  
    return 0;
    }
  if(!MLTag.Compressed)				
    fp.seekp(MLTag.Bytes(), std::ios::cur);		
  return 1;					
  }
int MatLab5Im :: fread ( std :: fstream & fp , int bigend , int warn ) { if ( ! MLTag . read ( fp , bigend , ( warn ) ? 1 : 0 ) ) { if ( warn ) { if ( warn == 1 ) MLIM5error ( 10 , 1 ) ; else MLIM5fatality ( 10 ) ; } return 0 ; } if ( ! MLTag . Compressed ) fp . seekp ( MLTag . Bytes ( ) , std :: ios :: cur ) ; return 1 ; }
These are the functions which will input an Imags Array sub-element in MATLAB
".mat" binary format, version 5.
These are the functions which will input an Imags Array sub - element in MATLAB " . mat " binary format version 5 .
// Read sub-element tag // If this has problems, then // we must deal with them // appropriately now // If the data element isn't // compressed, skip to data end // (if compressed, at end now)