Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

fourier.cpp

Go to the documentation of this file.
00001 #include "fourier.h"
00002 #include <stdio.h>
00003 
00004 //----------------------------------------------------------------------------
00005 //------------------------- protected read() ---------------------------------
00006 //----------------------------------------------------------------------------
00007 
00008 bool vu17::read(FILE *file)
00009 {
00010     int ret = 0;
00011     int len = 0;
00012 
00013     bool success = vu1::read(file);
00014     if (!success) return false;
00015 
00016     //Read in the Dataset type, checking if it's fourier
00017     ret = fscanf(file,"DATASET FOURIER %n",&len);
00018     if (len < 16) return setInvalidFormatError();
00019 
00020     return true;
00021 }
00022 
00023 //----------------------------------------------------------------------------
00024 //------------------------- protected write() --------------------------------
00025 //----------------------------------------------------------------------------
00026 
00027 bool vu17::write(FILE *file)
00028 {
00029     int ret = 0;
00030 
00031     bool success = vu1::write(file);
00032     if (!success) return false;
00033 
00034     //Write the Dataset type
00035     ret = fprintf(file,"DATASET FOURIER\n");
00036     
00037     if (ret > 0)
00038         return true;
00039     else
00040         return setWriteError();
00041 }

Generated on Wed Dec 15 21:20:28 2004 for vuVolume by  doxygen 1.3.9.1