#include <DataFileReaderFactory.h>
Definition at line 24 of file DataFileReaderFactory.h.
Public Types | |
| enum | Exception { ImportCancelled } |
Static Public Member Functions | |
| static QString | getKnownExtensions () |
| Return the file extensions that we have data file readers for, in a format suitable for use with QFileDialog. | |
| static DataFileReader * | createReader (QString path, size_t mainModelSampleRate) |
| Return a data file reader initialised to the file at the given path, or NULL if no suitable reader for this path is available or the file cannot be opened. | |
| static Model * | load (QString path, size_t mainModelSampleRate) |
| Read the given path, if a suitable reader is available. | |
| QString DataFileReaderFactory::getKnownExtensions | ( | ) | [static] |
Return the file extensions that we have data file readers for, in a format suitable for use with QFileDialog.
For example, "*.csv *.xml".
Definition at line 25 of file DataFileReaderFactory.cpp.
Referenced by FileFinder::getOpenFileName().
| DataFileReader * DataFileReaderFactory::createReader | ( | QString | path, | |
| size_t | mainModelSampleRate | |||
| ) | [static] |
Return a data file reader initialised to the file at the given path, or NULL if no suitable reader for this path is available or the file cannot be opened.
Caller owns the returned object and must delete it after use.
Definition at line 31 of file DataFileReaderFactory.cpp.
References DataFileReader::getError(), and DataFileReader::isOK().
Referenced by load().
| Model * DataFileReaderFactory::load | ( | QString | path, | |
| size_t | mainModelSampleRate | |||
| ) | [static] |
Read the given path, if a suitable reader is available.
Return NULL if no reader succeeded in reading this file.
Definition at line 51 of file DataFileReaderFactory.cpp.
References createReader(), and DataFileReader::load().
Referenced by MainWindowBase::openLayer().
1.5.1