hi, all
I have written a utils class to create a model from vector<T> like the Wt's
readFromCsv() as below, but I have no idea to impl it, mainly because I have
no good way to traverse the struct, can anyone give me some suggestions?
thanks.
#ifndef MODEL_UTIL_H_
#define MODEL_UTIL_H_
#include <WAbstractItemModel>
using namespace Wt;
template <typename T>
extern void createModelFromStruct(std::vector<T>& struct_,
WAbstractItemModel *model);
template <typename T>
void createModelFromStruct(std::vector<T>& struct_, WAbstractItemModel
*model) {
}
#endif
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest