Mercurial > hg > svapp
comparison framework/SVFileReader.cpp @ 446:1c17a2c5e917 tonioni
Deactivate very verbose debug
author | Chris Cannam |
---|---|
date | Tue, 31 Mar 2015 17:27:28 +0100 |
parents | 72c662fe7ea3 |
children | da520a68595a |
comparison
equal
deleted
inserted
replaced
445:c48bc6ddfe17 | 446:1c17a2c5e917 |
---|---|
997 | 997 |
998 SparseTimeValueModel *stvm = dynamic_cast<SparseTimeValueModel *> | 998 SparseTimeValueModel *stvm = dynamic_cast<SparseTimeValueModel *> |
999 (m_currentDataset); | 999 (m_currentDataset); |
1000 | 1000 |
1001 if (stvm) { | 1001 if (stvm) { |
1002 cerr << "Current dataset is a sparse time-value model" << endl; | 1002 // cerr << "Current dataset is a sparse time-value model" << endl; |
1003 float value = 0.0; | 1003 float value = 0.0; |
1004 value = attributes.value("value").trimmed().toFloat(&ok); | 1004 value = attributes.value("value").trimmed().toFloat(&ok); |
1005 QString label = attributes.value("label"); | 1005 QString label = attributes.value("label"); |
1006 stvm->addPoint(SparseTimeValueModel::Point(frame, value, label)); | 1006 stvm->addPoint(SparseTimeValueModel::Point(frame, value, label)); |
1007 return ok; | 1007 return ok; |
1008 } | 1008 } |
1009 | 1009 |
1010 NoteModel *nm = dynamic_cast<NoteModel *>(m_currentDataset); | 1010 NoteModel *nm = dynamic_cast<NoteModel *>(m_currentDataset); |
1011 | 1011 |
1012 if (nm) { | 1012 if (nm) { |
1013 cerr << "Current dataset is a note model" << endl; | 1013 // cerr << "Current dataset is a note model" << endl; |
1014 float value = 0.0; | 1014 float value = 0.0; |
1015 value = attributes.value("value").trimmed().toFloat(&ok); | 1015 value = attributes.value("value").trimmed().toFloat(&ok); |
1016 int duration = 0; | 1016 int duration = 0; |
1017 duration = attributes.value("duration").trimmed().toInt(&ok); | 1017 duration = attributes.value("duration").trimmed().toInt(&ok); |
1018 QString label = attributes.value("label"); | 1018 QString label = attributes.value("label"); |
1026 } | 1026 } |
1027 | 1027 |
1028 FlexiNoteModel *fnm = dynamic_cast<FlexiNoteModel *>(m_currentDataset); | 1028 FlexiNoteModel *fnm = dynamic_cast<FlexiNoteModel *>(m_currentDataset); |
1029 | 1029 |
1030 if (fnm) { | 1030 if (fnm) { |
1031 cerr << "Current dataset is a flexinote model" << endl; | 1031 // cerr << "Current dataset is a flexinote model" << endl; |
1032 float value = 0.0; | 1032 float value = 0.0; |
1033 value = attributes.value("value").trimmed().toFloat(&ok); | 1033 value = attributes.value("value").trimmed().toFloat(&ok); |
1034 int duration = 0; | 1034 int duration = 0; |
1035 duration = attributes.value("duration").trimmed().toInt(&ok); | 1035 duration = attributes.value("duration").trimmed().toInt(&ok); |
1036 QString label = attributes.value("label"); | 1036 QString label = attributes.value("label"); |
1044 } | 1044 } |
1045 | 1045 |
1046 RegionModel *rm = dynamic_cast<RegionModel *>(m_currentDataset); | 1046 RegionModel *rm = dynamic_cast<RegionModel *>(m_currentDataset); |
1047 | 1047 |
1048 if (rm) { | 1048 if (rm) { |
1049 cerr << "Current dataset is a region model" << endl; | 1049 // cerr << "Current dataset is a region model" << endl; |
1050 float value = 0.0; | 1050 float value = 0.0; |
1051 value = attributes.value("value").trimmed().toFloat(&ok); | 1051 value = attributes.value("value").trimmed().toFloat(&ok); |
1052 int duration = 0; | 1052 int duration = 0; |
1053 duration = attributes.value("duration").trimmed().toInt(&ok); | 1053 duration = attributes.value("duration").trimmed().toInt(&ok); |
1054 QString label = attributes.value("label"); | 1054 QString label = attributes.value("label"); |