Subversion Repositories Projects

Rev

Rev 239 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 239 Rev 240
1
/***************************************************************************
1
/***************************************************************************
2
 *   Copyright (C) 2008 by Manuel Schrape                                  *
2
 *   Copyright (C) 2008 by Manuel Schrape                                  *
3
 *   manuel.schrape@gmx.de                                                 *
3
 *   manuel.schrape@gmx.de                                                 *
4
 *   and Andreas Bresser bresser@informatik.uni-bremen.de                  *
4
 *   and Andreas Bresser bresser@informatik.uni-bremen.de                  *
5
 *                                                                         *
5
 *                                                                         *
6
 *   This program is free software; you can redistribute it and/or modify  *
6
 *   This program is free software; you can redistribute it and/or modify  *
7
 *   it under the terms of the GNU General Public License as published by  *
7
 *   it under the terms of the GNU General Public License as published by  *
8
 *   the Free Software Foundation; either version 2 of the License.        *
8
 *   the Free Software Foundation; either version 2 of the License.        *
9
 *                                                                         *
9
 *                                                                         *
10
 *   This program is distributed in the hope that it will be useful,       *
10
 *   This program is distributed in the hope that it will be useful,       *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13
 *   GNU General Public License for more details.                          *
13
 *   GNU General Public License for more details.                          *
14
 *                                                                         *
14
 *                                                                         *
15
 *   You should have received a copy of the GNU General Public License     *
15
 *   You should have received a copy of the GNU General Public License     *
16
 *   along with this program; if not, write to the                         *
16
 *   along with this program; if not, write to the                         *
17
 *   Free Software Foundation, Inc.,                                       *
17
 *   Free Software Foundation, Inc.,                                       *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19
 ***************************************************************************/
19
 ***************************************************************************/
20
 
20
 
21
#ifndef CSVLOGGER_H
21
#ifndef CSVLOGGER_H
22
#define CSVLOGGER_H
22
#define CSVLOGGER_H
23
 
23
 
24
#include <QString>
24
#include <QString>
25
#include <QTextStream>
25
#include <QTextStream>
26
#include <QFile>
26
#include <QFile>
-
 
27
#include <QDate>
-
 
28
#include <QTime>
-
 
29
#include "../global.h"
27
#include "../Classes/cSettings.h"
30
#include "../Classes/cSettings.h"
28
#include "DefaultLogger.h"
31
#include "DefaultLogger.h"
29
 
32
 
30
class CSVLogger : public DefaultLogger
33
class CSVLogger : public DefaultLogger
31
{
34
{
32
private:
35
private:
33
    // Object für das Datenfile;
36
    // Object für das Datenfile;
34
    QFile * csvfile;
37
    QFile * csvfile;
35
    cSettings * settings;
38
    cSettings * settings;
-
 
39
    sMode * mode;
36
public:
40
public:
37
    CSVLogger(cSettings * settings);
41
    CSVLogger(cSettings * settings, sMode * mode);
38
    ~CSVLogger();
42
    ~CSVLogger();
39
 
43
 
40
    //schreibe log
44
    //schreibe log
41
    void write(int * analogData);
45
    void write(int * analogData);
42
 
46
 
43
    //erzeuge neue Log-Datei/neuen Datensatz
47
    //erzeuge neue Log-Datei/neuen Datensatz
44
    void newLog(QString name);
48
    void newLog();
45
 
49
 
46
    //alles bereit zum schreiben?
50
    //alles bereit zum schreiben?
47
    bool ready();
51
    bool ready();
48
 
52
 
49
    //alles schließen
53
    //alles schließen
50
    void close();
54
    void close();
51
};
55
};
52
 
56
 
53
#endif
57
#endif