void Foam::jplotGraph::write(const graph& g, Ostream& os) const { os << "# JPlot file" << endl << "# column 1: " << g.xName() << endl; label fieldI = 0; for (graph::const_iterator iter = g.begin(); iter != g.end(); ++iter) { os << "# column " << fieldI + 2 << ": " << (*iter()).name() << endl; fieldI++; } g.writeTable(os); }
void Foam::rawGraph::write(const graph& g, Ostream& os) const { g.writeTable(os); }