CsvUtil.h 542 B

1234567891011121314151617181920212223242526272829
  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. #include <iostream>
  10. namespace Wt {
  11. class WAbstractItemModel;
  12. }
  13. /**
  14. * @addtogroup chartsexample
  15. */
  16. /*@{*/
  17. /*! \brief Utility function that reads a model from a CSV file.
  18. */
  19. extern void readFromCsv(std::istream& f, Wt::WAbstractItemModel *model,
  20. int numRows = -1, bool firstLineIsHeaders = true);
  21. /*@}*/
  22. #endif // CSV_UTIL_H_