WSL/SLF GitLab Repository

Commit 76a67163 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Temporary fix for the << operator and POPC: a par class can not have a...

Temporary fix for the << operator and POPC: a par class can not have a "friend" method... (so IOHandler can not redefine "<<" the way we used to do). Therefore, it has been disabled for popc
parent 9fb0a3b6
......@@ -343,7 +343,9 @@ std::ostream& operator<<(std::ostream& os, const BufferedIOHandler& data)
{
os << "<BufferedIOHandler>\n";
os << "Config cfg; (not expanded)\n";
#ifndef _POPC_ //HACK for POPC
os << data.iohandler;
#endif
os << data.meteoprocessor;
os << "Rebuffer if not found: " << data.always_rebuffer << "\n";
......
......@@ -285,6 +285,7 @@ void IOHandler::write2DGrid(const Grid2DObject& grid_in, const std::string& name
plugin->write2DGrid(grid_in, name);
}
#ifndef _POPC_
std::ostream& operator<<(std::ostream& os, const IOHandler& data)
{
os << "<IOHandler>\n";
......@@ -301,5 +302,6 @@ std::ostream& operator<<(std::ostream& os, const IOHandler& data)
return os;
}
#endif
} //end namespace
......@@ -67,7 +67,7 @@ parclass IOHandler {
virtual void readSpecialPoints([out,proc=marshal_vec_coords]std::vector<Coords>& pts);
virtual void write2DGrid([in]const Grid2DObject& grid_in, [in]const std::string& name);
friend std::ostream& operator<<(std::ostream& os, const IOHandler& data);
//friend std::ostream& operator<<(std::ostream& os, const IOHandler& data); //HACK for POPC
private:
void loadDynamicPlugins();
......
Supports Markdown
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