My Project
ReadTextFile.hh
00001 /*
00002 $Id: ReadTextFile.hh 2314 2011-12-06 12:57:31Z jisuzuki $
00003 */
00004 
00005 
00006 #ifndef READTEXTFILE
00007 #define READTEXTFILE
00008 
00009 #include "Header.hh"
00010 #include "SplitString.hh"
00011 #include "CppToPython.hh"
00012 
00013 
00014 class ReadTextFile
00015 /*
00016 The speed of reading text files with this class is slow, 
00017 because each line of targeted text-file will be 
00018 analyzed and processed in this class.
00019 */
00020 {
00021 private:
00022   vector< string > *StringBuffer;
00023   UInt4 CheckFile( string FileName );
00024   void  Read( string FileName );
00025   UInt4 Size;
00026   SplitString *split;
00027   
00028 public:
00029   ReadTextFile();
00031  ~ReadTextFile();
00034   void SetFileName( string TargetFileName );
00040   void Dump();
00042   UInt4 PutSize();
00045   string Put( UInt4 IndexNumber );
00048   vector<string> Put( UInt4 IndexNumber, string Delimiter );
00054 };
00055 
00056 #endif
 All Classes Functions Variables Friends