FileReader Class Reference

A file reader class. More...

#include <filereader.h>

List of all members.

Public Member Functions

 FileReader (const QString &filename="")
bool readFile (const QString &filename)
int fillData (QVector< QVector< double > > &pDest, int screennumber, int channel)
QPointF lineAxisBounds () const


Detailed Description

A file reader class.

FileReader is a class which reads a text formatted file. The format of the file must be values seperated by a new line.

Definition at line 33 of file filereader.h.


Constructor & Destructor Documentation

FileReader::FileReader ( const QString &  filename = ""  ) 

Constructor.

Parameters:
filename The file to read.

Definition at line 36 of file filereader.cpp.


Member Function Documentation

int FileReader::fillData ( QVector< QVector< double > > &  pDest,
int  screennumber,
int  channel 
)

Copy from the internal data structure to another data structure.

Parameters:
pDest Destination data structure.
screennumber Screen number used to fill the data structure.
channel Channel number used to fill the data structure. (UNUSED)
Returns:
The number of screens containted in the internal data structure.
See also:
DataHandler::Constants

Definition at line 60 of file filereader.cpp.

QPointF FileReader::lineAxisBounds (  )  const [inline]

Returns:
Y-axis scale.

Definition at line 68 of file filereader.h.

bool FileReader::readFile ( const QString &  filename  ) 

Read and parse a file into an internal data structure.

Parameters:
filename The file to read.

Definition at line 41 of file filereader.cpp.


The documentation for this class was generated from the following files:

Generated on Wed May 20 14:28:20 2009 for CardioCurves by  doxygen 1.5.9