Commit 152ac2a3 by Francois Gygi

loading of URI using http connection

git-svn-id: http://qboxcode.org/svn/qb/trunk@1363 cba15fb0-1239-40c8-b417-11db7ca47a34
parent ba933bc4
...@@ -75,16 +75,20 @@ void SampleReader::readSample (Sample& s, const string uri, bool serial) ...@@ -75,16 +75,20 @@ void SampleReader::readSample (Sample& s, const string uri, bool serial)
catch (const XMLException& toCatch) catch (const XMLException& toCatch)
{ {
cout << " Sample::readSample: Error during XML initialization :\n" cout << " SampleReader::readSample: Error during XML initialization :\n"
<< StrX(toCatch.getMessage()) << endl; << StrX(toCatch.getMessage()) << endl;
s.ctxt_.abort(1); return;
} }
string xmlcontent; string xmlcontent;
DoubleMatrix gfdata(ctxt_); DoubleMatrix gfdata(ctxt_);
XMLGFPreprocessor xmlgfp; XMLGFPreprocessor xmlgfp;
xmlgfp.process(uri.c_str(),gfdata,xmlcontent,serial); if ( xmlgfp.process(uri.c_str(),gfdata,xmlcontent,serial) )
{
cout << " SampleReader::readSample: Error in XMLGFPreprocessor" << endl;
return;
}
// Each task holds a copy of xmlcontent // Each task holds a copy of xmlcontent
// The distributed matrix gfdata contains the grid function data // The distributed matrix gfdata contains the grid function data
......
...@@ -36,6 +36,6 @@ class XMLGFPreprocessor ...@@ -36,6 +36,6 @@ class XMLGFPreprocessor
{ {
public: public:
void process(const char* const filename, int process(const char* const filename,
DoubleMatrix& gfdata, std::string& xmlcontent, bool serial); DoubleMatrix& gfdata, std::string& xmlcontent, bool serial);
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment