Wt examples
3.3.0
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
build
buildd
witty-3.3.0
examples
treeview-dragdrop
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 bvba, Kessel-Lo, 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
24
#endif // CSV_UTIL_H_
Generated on Fri May 31 2013 for
the C++ Web Toolkit (Wt)
by
1.8.3.1