source: mmcs/csv.h @ dfddb27

matrices
Last change on this file since dfddb27 was 44d1e60, checked in by Jose Ruiz <joseruiz@…>, 9 years ago

commit inicial

  • Property mode set to 100644
File size: 643 bytes
Line 
1/*dummy CSV reader for QT4*/
2/*version 0.1*/
3/*11.1.2009*/
4#ifndef CSV_H
5#define CSV_H
6
7//#include "myclass_api.h"
8
9#include <QObject>
10#include <QStringList>
11#include <QIODevice>
12#include <QTextCodec>
13#include <QRegExp>
14
15class /*MYCLASS_API*/ CSV /*: public QObject*/
16{
17        /*Q_OBJECT*/
18
19public:
20        CSV(QIODevice * device);
21        CSV(QString &string);
22        ~CSV();
23
24        QString readLine();
25        QStringList parseLine();
26        static QStringList parseLine(QString line);
27
28        void setCodec(const char* codecName);
29private:
30        QIODevice *m_device;
31        QTextCodec *m_codec;
32        QString m_string;
33        int m_pos;
34        QRegExp m_rx;
35       
36};
37
38#endif // CSV_H
Note: See TracBrowser for help on using the repository browser.