00001 // Copyright (C) 2007 University of Louisiana at Lafayette 00002 // Authors: Christpher Vaughn 00003 00004 #ifndef CAJUN_CSV_PARSER_H 00005 #define CAJUN_CSV_PARSER_H 00006 00007 #include <string> 00008 00009 using namespace std; 00010 00011 namespace cajun 00012 { 00013 00014 class csv_parser_t { 00015 public: 00016 csv_parser_t(); 00017 const csv_parser_t & operator << (const string &sIn); 00018 const csv_parser_t & operator << (const char *sIn); 00019 csv_parser_t & operator >> (int &nOut); 00020 csv_parser_t & operator >> (double &nOut); 00021 csv_parser_t & operator >> (string &sOut); 00022 private: 00023 string m_Data; 00024 unsigned int m_Pos; 00025 void SkipSpaces(void); 00026 }; 00027 00028 }; 00029 #endif