00001 // This may look like C code, but it's really -*- C++ -*- 00002 /* 00003 * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium. 00004 * 00005 * See the LICENSE file for terms of use. 00006 */ 00007 #ifndef CSV_UTIL_H_ 00008 #define CSV_UTIL_H_ 00009 00010 #include <iostream> 00011 00012 namespace Wt { 00013 class WAbstractItemModel; 00014 } 00015 00016 extern void readFromCsv(std::istream& f, Wt::WAbstractItemModel *model, 00017 int numRows = -1, bool firstLineIsHeaders = true); 00018 00019 #endif // CSV_UTIL_H_