#include <iostream>
Go to the source code of this file.
◆ csvToModel()
Definition at line 40 of file CsvUtil.C.
42{
44
46 std::shared_ptr<WStandardItemModel>
result = std::make_shared<WStandardItemModel>(0, 0);
47 result->setItemPrototype(std::make_unique<NumericItem>());
50 } else
51 return nullptr;
52}
Wt::Auth::Dbo::UserDatabase< AuthInfo > UserDatabase
void readFromCsv(std::istream &f, std::shared_ptr< WAbstractItemModel > model, int numRows, bool firstLineIsHeaders)
◆ readFromCsv()
Definition at line 54 of file CsvUtil.C.
56{
58
62
64 typedef boost::tokenizer<boost::escaped_list_separator<char> >
67
69 for (CsvTokenizer::iterator
i =
tok.begin();
71
75
78 else {
80
82 return;
83
87
90 }
91 }
92 }
93
95 }
96}