-
Notifications
You must be signed in to change notification settings - Fork 0
/
matfile.h
55 lines (40 loc) · 1.34 KB
/
matfile.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
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef MATFILE_H
#define MATFILE_H
#include "matio.h"
#include "matio_private.h"
#include "matvar.h"
#include <QList>
class MatFile
{
public:
MatFile();
~MatFile();
bool open(QString filepath, mat_acc access);
bool open(QString filepath);
bool isValid();
QString getHeaderString() const;
QString getFileName() const;
int getVersion() const;
mat_acc getAccessType() const;
int getDatasetCount() const;
private:
mat_t* matdata;
//mat_t* const pMatdata = &matdata;
QList<MatVar*> variables;
bool isvalid;
void iterateVariables();
};
//struct _mat_t {
// void *fp; /**< File pointer for the MAT file */
// char *header; /**< MAT File header string */
// char *subsys_offset; /**< offset */
// char *filename; /**< Filename of the MAT file */
// int version; /**< MAT File version */
// int byteswap; /**< 1 if byte swapping is required, 0 otherwise */
// int mode; /**< Access mode */
// long bof; /**< Beginning of file not including any header */
// long next_index; /**< Index/File position of next variable to read */
// long num_datasets; /**< Number of datasets in the file */
// hid_t refs_id; /**< Id of the /#refs# group in HDF5 */
//};
#endif // MATFILE_H