Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

VectorDataSource.h

Go to the documentation of this file.
00001 #ifndef VECTORDATASOURCE_H
00002 #define VECTORDATASOURCE_H
00003 
00004 #include <qobject.h>
00005 #include <qstring.h>
00006 #include <qfile.h>
00007 #include <vector>
00008 
00009 #include "DataSource.h"
00010 
00011 using namespace std;
00012 
00013 class VectorDataSource : public DataSource
00014 {
00015     Q_OBJECT
00016 public:
00017     VectorDataSource(vector<double>* passedTime=0, vector<double>* passedData=0);
00018     
00019     QString cell(int row, int col) const;
00020     void setCell(int row, int col, const QString &text);
00021 
00022     int numRows() const {return nRows;}
00023     int numCols() const {return nCols;}
00024     void establishRowColNumbers();
00025     void connectToTable(bool conn);
00026 
00027 private:
00028     int nRows;
00029     int nCols;
00030     vector<double>* time;
00031     vector<double>* data;
00032     bool connectedToTable;
00033 };
00034 
00035 #endif
00036 

Generated on Fri Mar 25 19:47:03 2005 for LabPlot by doxygen 1.3.6