linescanner.h

Go to the documentation of this file.
00001 #ifndef __linescanner_h
00002 #define __linescanner_h
00003 
00004 #include <fstream>
00005 #include <vector>
00006 #include  <string>
00007 
00008 /***************************************************/
00009 
00010 namespace Gascoigne
00011 {
00012 class LineScanner
00013 {
00014   std::ifstream fp;
00015 
00016 public:
00017 
00018   LineScanner(const std::string& filename);
00019   ~LineScanner();
00020 
00021   int NextLine(std::vector<double>& words);
00022   int NextLine(std::vector<std::string>& words);
00023   int NextLine(std::vector<std::string>& words, const std::vector<int>& w);
00024 
00025   void split(std::vector<std::string>& words, const char& c) const;
00026   void split(std::vector<std::string>& words, const std::vector<char>& c) const;
00027 };
00028 }
00029 
00030 /***************************************************/
00031 
00032 #endif

Generated on Thu Sep 14 10:34:35 2006 for Gascoigne by  doxygen 1.4.7