DataFileReaderFactory Class Reference

#include <DataFileReaderFactory.h>

List of all members.


Detailed Description

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 DataFileReadercreateReader (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 Modelload (QString path, size_t mainModelSampleRate)
 Read the given path, if a suitable reader is available.


Member Enumeration Documentation

enum DataFileReaderFactory::Exception

Enumerator:
ImportCancelled 

Definition at line 27 of file DataFileReaderFactory.h.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 15:45:32 2008 for SonicVisualiser by  doxygen 1.5.1