16 class WAbstractItemModel;
17 class WStandardItemModel;
20extern void readFromCsv(std::istream& f, std::shared_ptr<WAbstractItemModel> model,
21 int numRows = -1,
bool firstLineIsHeaders =
true);
23extern std::shared_ptr<WStandardItemModel>
csvToModel(
const std::string& csvFile,
24 bool firstLineIsHeader =
true);
void readFromCsv(std::istream &f, Wt::WAbstractItemModel *model, int numRows=-1, bool firstLineIsHeaders=true)
Utility function that reads a model from a CSV file.
std::shared_ptr< WStandardItemModel > csvToModel(const std::string &csvFile, bool firstLineIsHeader=true)