Wt examples 3.3.12
|
#include <fstream>
#include <boost/tokenizer.hpp>
#include <boost/lexical_cast.hpp>
#include <Wt/WAbstractItemModel>
#include <Wt/WStandardItemModel>
#include <Wt/WStandardItem>
#include <Wt/WString>
#include "CsvUtil.h"
Go to the source code of this file.
Classes | |
class | NumericItem |
Functions | |
Wt::WStandardItemModel * | csvToModel (const std::string &csvFile, Wt::WObject *parent, bool firstLineIsHeaders) |
void | readFromCsv (std::istream &f, Wt::WAbstractItemModel *model, int numRows, bool firstLineIsHeaders) |
Utility function that reads a model from a CSV file. | |
Wt::WStandardItemModel * csvToModel | ( | const std::string & | csvFile, |
Wt::WObject * | parent, | ||
bool | firstLineIsHeaders | ||
) |
Definition at line 41 of file CsvUtil.C.
void readFromCsv | ( | std::istream & | f, |
Wt::WAbstractItemModel * | model, | ||
int | numRows, | ||
bool | firstLineIsHeaders | ||
) |
Utility function that reads a model from a CSV file.
Definition at line 56 of file CsvUtil.C.