Wt examples: /home/koen/project/wt/public-git/wt/examples/treeview-dragdrop/CsvUtil.h Source File

Wt examples 3.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

/home/koen/project/wt/public-git/wt/examples/treeview-dragdrop/CsvUtil.h
Go to the documentation of this file.

    00001 // This may look like C code, but it's really -*- C++ -*-
    00002 /*
    00003  * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
    00004  *
    00005  * See the LICENSE file for terms of use.
    00006  */
    00007 #ifndef CSV_UTIL_H_
    00008 #define CSV_UTIL_H_
    00009
    00010 #include <iostream>
    00011
    00012 namespace Wt {
    00013   class WObject;
    00014   class WAbstractItemModel;
    00015   class WStandardItemModel;
    00016 }
    00017
    00018 extern void readFromCsv(std::istream& f, Wt::WAbstractItemModel *model,
    00019                         int numRows = -1, bool firstLineIsHeaders = true);
    00020
    00021 extern Wt::WStandardItemModel *csvToModel(const std::string& csvFile,
    00022                                           Wt::WObject *parent);
    00023
    00024 #endif // CSV_UTIL_H_