Subversion Repositories Projects

Rev

Rev 391 | Details | Compare with Previous | Last modification | View Log | RSS feed

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