Wt examples  3.7.1
CsvUtil.h
Go to the documentation of this file.
1 // This may look like C code, but it's really -*- C++ -*-
2 /*
3  * Copyright (C) 2008 Emweb bv, Herent, Belgium.
4  *
5  * See the LICENSE file for terms of use.
6  */
7 #ifndef CSV_UTIL_H_
8 #define CSV_UTIL_H_
9 
10 #include <iostream>
11 
12 namespace Wt {
13  class WObject;
14  class WAbstractItemModel;
15  class WStandardItemModel;
16 }
17 
18 extern void readFromCsv(std::istream& f, Wt::WAbstractItemModel *model,
19  int numRows = -1, bool firstLineIsHeaders = true);
20 
21 extern Wt::WStandardItemModel *csvToModel(const std::string& csvFile,
22  Wt::WObject *parent,
23  bool firstLineIsHeader = true);
24 
25 #endif // CSV_UTIL_H_
Wt::WStandardItemModel * csvToModel(const std::string &csvFile, Wt::WObject *parent, bool firstLineIsHeader=true)
Definition: CsvUtil.C:41
void readFromCsv(std::istream &f, Wt::WAbstractItemModel *model, int numRows=-1, bool firstLineIsHeaders=true)
Definition: CsvUtil.C:56

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13