Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class 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 Fri Jun 18 13:18:10 2004 for Annie by doxygen 1.3.5