From: <dhu...@us...> - 2006-11-30 17:01:55
|
Revision: 41 http://svn.sourceforge.net/qcell/?rev=41&view=rev Author: dhubleizh Date: 2006-11-30 09:01:48 -0800 (Thu, 30 Nov 2006) Log Message: ----------- - random docs added during recheck Modified Paths: -------------- trunk/qcell/parsers/FQT/FQTParserPlugin.cpp Modified: trunk/qcell/parsers/FQT/FQTParserPlugin.cpp =================================================================== --- trunk/qcell/parsers/FQT/FQTParserPlugin.cpp 2006-11-30 16:53:48 UTC (rev 40) +++ trunk/qcell/parsers/FQT/FQTParserPlugin.cpp 2006-11-30 17:01:48 UTC (rev 41) @@ -7,6 +7,7 @@ */ #include "FQTParserPlugin.h" + QStringList FQTParserPlugin::parserTypes() const { return QStringList(FQT_PARSER_TYPE); @@ -29,6 +30,7 @@ } } +/// @todo Incorporate genreal Function file to output resulting XML QString FQTParserPlugin::parse(const QByteArray content, const QString type) { QStringList lines; @@ -174,7 +176,7 @@ ); } - // @todo Is there a way of determining the number of lines left for sanity check? + /// @todo Is there a way of determining the number of lines left for sanity check? // Main function parsing lines[0] = lines[0].trimmed(); @@ -197,6 +199,7 @@ // First splitting by ':' and parsing the left side tmp = line.split(':'); tmp_sum = tmp[0].toLong(); + // Sanity check if(tmp_sum > max_sum) { qDebug(tr("The sum in line %1 is bigger then the maximum possible according th the header.") @@ -228,9 +231,11 @@ // Collecting this lines values tmp_values.append(value.toAscii() - '0'); + // Keep track of current parsed value value_index++; } + // Double adding sanity check if(results.contains(tmp_sum)) { qDebug(tr("The sum %1 in line %2 already added.") @@ -242,8 +247,10 @@ return QString(); } + // Finally adding the parsed values results[tmp_sum] == new QVector<int>(tmp_values); + // To keep count of current line nr line_nr++; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |