Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

File.h

Go to the documentation of this file.
00001 #ifndef _FILE_H
00002 #define _FILE_H
00003 #include <fstream>
00004 #include <string>
00005 #include "defines.h"
00006 
00007 namespace annie
00008 {
00020 class File
00021 {
00022 private:
00023         std::string _filename;
00024         std::ifstream _file;
00025         bool _isOpen;
00026         void _next();
00027 public:
00029         File();
00030 
00032 
00037         File(std::string filename);
00038 
00040 
00046         void open(std::string filename);
00047         
00049         char readChar();
00050 
00052         int readInt();
00053 
00055         real readDouble();
00056 
00058         std::string readWord();
00059 
00061         void close();
00062 
00064         std::string readLine();
00065 
00067 
00068         bool eof();
00069 };
00070 
00071 }; //namespace annie
00072 #endif // define _FILE_H
00073 

Generated on Wed Apr 23 10:42:33 2003 for BioFilter by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002