Wt examples: charts/CsvUtil.h Source File

Wt examples 4.10.4

Loading...
Searching...
No Matches
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
12namespace Wt {
13 class WAbstractItemModel;
14}
15
20
23extern void readFromCsv(std::istream& f, Wt::WAbstractItemModel *model,
24 int numRows = -1, bool firstLineIsHeaders = true);
25
28#endif // CSV_UTIL_H_
readFromCsv
void readFromCsv(std::istream &f, Wt::WAbstractItemModel *model, int numRows=-1, bool firstLineIsHeaders=true)
Utility function that reads a model from a CSV file.
Definition CsvUtil.C:15
Wt
Definition AddresseeEdit.h:16