mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 02:30:44 +00:00
Update to use SleepLib's edfParser
This commit is contained in:
parent
7f6128fe24
commit
5323a56186
@ -12,6 +12,8 @@ CONFIG -= debug_and_release
|
||||
|
||||
QT += core widgets
|
||||
|
||||
DEFINES+=DUMPSTR
|
||||
|
||||
TARGET = anotDump
|
||||
|
||||
TEMPLATE = app
|
||||
@ -27,6 +29,6 @@ SOURCES += \
|
||||
dumpSTR/edfparser.cpp \
|
||||
|
||||
HEADERS += \
|
||||
dumpSTR/common.h \
|
||||
dumpSTR/SleepLib/common.h \
|
||||
dumpSTR/edfparser.h \
|
||||
|
||||
|
@ -81,9 +81,14 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
EDFInfo edf;
|
||||
QByteArray * buffer = edf.Open(filename);
|
||||
if ( ! edf.Parse(buffer) )
|
||||
exit(-1);
|
||||
if ( ! edf.Open(filename) ) {
|
||||
qDebug() << "Failed to open" << filename;
|
||||
exit(-1);
|
||||
}
|
||||
if ( ! edf.Parse() ) {
|
||||
qDebug() << "Parsing failed on" << filename;
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
QDate d2 = edf.edfHdr.startdate_orig.date();
|
||||
if (d2.year() < 2000) {
|
||||
|
Loading…
Reference in New Issue
Block a user