|
From: <dhu...@us...> - 2007-01-05 16:06:14
|
Revision: 101
http://svn.sourceforge.net/qcell/?rev=101&view=rev
Author: dhubleizh
Date: 2007-01-05 08:06:12 -0800 (Fri, 05 Jan 2007)
Log Message:
-----------
- generic saving facilty (parsingOut)
- KI parsingOut implementation
Modified Paths:
--------------
trunk/qcell/basesources/GenericParserPlugin.cpp
trunk/qcell/parsers/KI/KIParserPlugin.cpp
Modified: trunk/qcell/basesources/GenericParserPlugin.cpp
===================================================================
--- trunk/qcell/basesources/GenericParserPlugin.cpp 2007-01-05 16:05:33 UTC (rev 100)
+++ trunk/qcell/basesources/GenericParserPlugin.cpp 2007-01-05 16:06:12 UTC (rev 101)
@@ -77,7 +77,7 @@
}
-void GenericParserPlugin::parseOut(const QByteArray content, const QString type, const QString subtype)
+QByteArray GenericParserPlugin::parseOut(const QString content, const QString type, const QString subtype)
{
if(!supported_parser_types.contains(type))
{
@@ -97,7 +97,7 @@
.toAscii()
);
- return;
+ return QByteArray();
}
else if(!supported_file_types.contains(subtype)){
@@ -117,10 +117,10 @@
.toAscii()
);
- return;
+ return QByteArray();
}
- return realParserOut(content, type, subtype);
+ return parseOut(content, type, subtype);
}
Modified: trunk/qcell/parsers/KI/KIParserPlugin.cpp
===================================================================
--- trunk/qcell/parsers/KI/KIParserPlugin.cpp 2007-01-05 16:05:33 UTC (rev 100)
+++ trunk/qcell/parsers/KI/KIParserPlugin.cpp 2007-01-05 16:06:12 UTC (rev 101)
@@ -142,8 +142,6 @@
QByteArray result;
// Generic type to parse XML request
CalculationData cd;
- // Number of dimensions we are dealing with
- int dimensions;
// Check if we can use the generic type from the XML string
if(!cd.setFromXmlString(&content))
@@ -151,11 +149,7 @@
qDebug(tr("Unable to parse out internal data!").toAscii());
}
- dimensions = cd.getDimension();
-
- /// @todo header
-
- switch (dimensions)
+ switch (cd.getDimension())
{
case 1:
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|