-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathuserFileSaver.h
43 lines (33 loc) · 894 Bytes
/
userFileSaver.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef USERFFILESAVER_H
#define USERFFILESAVER_H
#include <QObject>
#include <QFile>
#include <QTextStream>
#include <QList>
#include "userFileStructure.h"
/**
* @file userFileSaver.h
*
* Implementation of UserFileSaver class.
* Used to save user properties to the file.
* The first should be written information about DOFs,
* and after information aboud sensor-motor conformity.
*/
class UserFileSaver : public UserFileStructure
{
public:
UserFileSaver(const QString &fileName);
/// Writes one new DOF data to the file.
void writeDOFData(const int &min, const int &max);
/// Writes one new sensor-motor conformity list to the file.
void writeConformityData(const QList<int> &data);
void stopWriteFile();
protected:
void startWriteFile();
void writeConformityHeaders();
private:
bool mIsConformityDataStart;
QFile mFile;
QTextStream mStream;
};
#endif // USERFFILESAVER_H