00001 #ifndef TCPARSER_H 00002 #define TCPARSER_H 00003 00004 #include <string> 00005 #include <fstream> 00006 #include <vector> 00007 00008 class TcParser 00009 { 00010 public: 00011 00012 TcParser(); 00013 ~TcParser(); 00014 00015 void set_file(std::string file_name); 00016 bool parse_line(std::string& name, std::vector<double>& tc); 00017 00018 00019 private: 00020 void cleanup(); 00021 00022 00023 std::ifstream* pInFile; 00024 std::size_t line_num; 00025 }; 00026 00027 #endif //TCPARSER_H