00001 #ifndef CSVFieldMap_h 00002 #define CSVFieldMap_h 00003 #include <vector> 00004 //#include <map> 00005 #include <string> 00006 //#include <typeinfo> 00007 class CSVFieldMap{ 00008 public: 00009 CSVFieldMap(){} 00010 ~CSVFieldMap(){} 00011 void push_back(const std::string& fieldName, const std::string& fieldType); 00012 std::string fieldName( int idx ) const; 00013 const std::type_info& fieldType( int idx ) const; 00014 std::string fieldTypeName( int idx ) const; 00015 int size() const; 00016 private: 00017 std::vector< std::pair<std::string, std::string > > m_fieldMap; 00018 }; 00019 #endif