comparison transform/CSVFeatureWriter.cpp @ 1163:d094598f84bd

Better error reporting for transform load (from RDF and XML)
author Chris Cannam
date Thu, 25 Feb 2016 10:53:10 +0000
parents 870acd589a38
children 4a2bc07ec0fb
comparison
equal deleted inserted replaced
1162:1dd98a5432cf 1163:d094598f84bd
97 FileFeatureWriter::setParameters(params); 97 FileFeatureWriter::setParameters(params);
98 98
99 SVDEBUG << "CSVFeatureWriter::setParameters" << endl; 99 SVDEBUG << "CSVFeatureWriter::setParameters" << endl;
100 for (map<string, string>::iterator i = params.begin(); 100 for (map<string, string>::iterator i = params.begin();
101 i != params.end(); ++i) { 101 i != params.end(); ++i) {
102 cerr << i->first << " -> " << i->second << endl; 102 SVDEBUG << i->first << " -> " << i->second << endl;
103 if (i->first == "separator") { 103 if (i->first == "separator") {
104 m_separator = i->second.c_str(); 104 m_separator = i->second.c_str();
105 cerr << "m_separator = " << m_separator << endl; 105 SVDEBUG << "m_separator = " << m_separator << endl;
106 if (m_separator == "\\t") { 106 if (m_separator == "\\t") {
107 m_separator = QChar::Tabulation; 107 m_separator = QChar::Tabulation;
108 } 108 }
109 } else if (i->first == "sample-timing") { 109 } else if (i->first == "sample-timing") {
110 m_sampleTiming = true; 110 m_sampleTiming = true;